Browse Source

Update TableBorderPrecedence.java

pull/66/head
Shangwen Wang 3 years ago
parent
commit
0927bf0dc9
No account linked to committer's email address

+ 28
- 0
fop-core/src/main/java/org/apache/fop/fo/properties/TableBorderPrecedence.java View File

@@ -50,6 +50,34 @@ public class TableBorderPrecedence extends NumberProperty.Maker {
*
* {@inheritDoc}
*/
public Property getNameId(PropertyList propertyList) throws PropertyException {
FObj fo = propertyList.getFObj();
switch (fo.getNameId()) {
case Constants.FO_TABLE:
return num6;
case Constants.FO_TABLE_CELL:
return num5;
case Constants.FO_TABLE_COLUMN:
return num4;
case Constants.FO_TABLE_ROW:
return num3;
case Constants.FO_TABLE_BODY:
return num2;
case Constants.FO_TABLE_HEADER:
return num1;
case Constants.FO_TABLE_FOOTER:
return num0;
default:
return null;
}
}
/**
* Set default precedence according to the parent FObj
*
* {@inheritDoc}
*/
@Deprecated
public Property make(PropertyList propertyList) throws PropertyException {
FObj fo = propertyList.getFObj();
switch (fo.getNameId()) {

Loading…
Cancel
Save