Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,34 @@ public TableBorderPrecedence(int propId) {
*
* {@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
*

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
*
* @deprecated Use {@link #getNameId(PropertyList)} instead

* {@inheritDoc}
*/
@Deprecated
public Property make(PropertyList propertyList) throws PropertyException {
FObj fo = propertyList.getFObj();
switch (fo.getNameId()) {
Expand Down