@API(type=INTERNAL,
src=PUBLIC)
public abstract class TablePropertiesHelperBase
extends java.lang.Object
implements TablePropertiesHelper
ALIGN, ATTR_NOT_SET, BOTTOM, CENTER, CHAR, COLSEP, EMPTY_ICON, FRAME, ICON_ALIGN_CENTER, ICON_ALIGN_JUSTIFY, ICON_ALIGN_LEFT, ICON_ALIGN_RIGHT, ICON_COL_ROW_SEP, ICON_COLSEP, ICON_FRAME_ALL, ICON_FRAME_BOTTOM, ICON_FRAME_LHS, ICON_FRAME_RHS, ICON_FRAME_SIDES, ICON_FRAME_TOP, ICON_FRAME_TOPBOT, ICON_ROW_TYPE_BODY, ICON_ROW_TYPE_FOOTER, ICON_ROW_TYPE_HEADER, ICON_ROWSEP, ICON_VALIGN_BOTTOM, ICON_VALIGN_MIDDLE, ICON_VALIGN_TOP, JUSTIFY, LEFT, MIDDLE, NOT_COMPUTED, PRESERVE, RIGHT, ROW_TYPE, ROW_TYPE_BODY, ROW_TYPE_FOOTER, ROW_TYPE_HEADER, ROW_TYPE_PROPERTY, ROWSEP, TOP, VALIGNTYPE_BODY, TYPE_BODY_DESC_CELL, TYPE_CELL, TYPE_COLSPEC, TYPE_FOOTER, TYPE_GROUP, TYPE_HEADER, TYPE_HEADER_CELL, TYPE_HEADER_DESC_CELL, TYPE_ROW, TYPE_TABLE| Constructor and Description |
|---|
TablePropertiesHelperBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsFooter()
true if the current table allows footer element. |
java.lang.String |
getElementName(int elementType) |
java.lang.String |
getElementTag(int elementType)
Obtain the element name.
|
int |
getElementType(AuthorElement node)
Obtain the type of the given node.
|
AuthorElement |
getFirstChildOfTypeFromParentWithType(AuthorElement currentRow,
int childType,
int parentType)
Obtain the first row child of the parent which has the given type.
|
boolean |
isNodeOfType(AuthorElement node,
int type)
Test if an
AuthorNode is an element and it has one of the following types:
AuthorTableHelper.TYPE_CELL, AuthorTableHelper.TYPE_ROW or
AuthorTableHelper.TYPE_TABLE. |
boolean |
isTable(AuthorElement node)
Checks if the given node represents the table element.
|
boolean |
isTableBody(AuthorElement node)
Checks if the given node represents a table body element.
|
boolean |
isTableCell(AuthorElement node)
Checks if the given node represents a table cell element.
|
boolean |
isTableColspec(AuthorElement node)
Checks if the given node represents a table colspec element.
|
boolean |
isTableFoot(AuthorElement node)
Checks if the given node represents a table foot element.
|
boolean |
isTableGroup(AuthorElement node)
Checks if the given node represents a table group element.
|
boolean |
isTableHead(AuthorElement node)
Checks if the given node represents a table head element.
|
boolean |
isTableRow(AuthorElement node)
Checks if the given node represents a table row element.
|
public boolean isTable(AuthorElement node)
TableHelperisTable in interface TableHelpernode - The node to be checked.true if the given node is the table element.TableHelper.isTable(ro.sync.ecss.extensions.api.node.AuthorElement)public boolean isTableGroup(AuthorElement node)
TableHelperisTableGroup in interface TableHelpernode - The node to be checked.true if the given node is the table group element.TableHelper.isTableGroup(ro.sync.ecss.extensions.api.node.AuthorElement)public boolean isTableBody(AuthorElement node)
TablePropertiesHelperisTableBody in interface TablePropertiesHelpernode - The node to be checked.true if the given node is a table body element.TablePropertiesHelper.isTableBody(ro.sync.ecss.extensions.api.node.AuthorElement)public boolean isTableHead(AuthorElement node)
TablePropertiesHelperisTableHead in interface TablePropertiesHelpernode - The node to be checked.true if the given node is a table head element.TablePropertiesHelper.isTableHead(ro.sync.ecss.extensions.api.node.AuthorElement)public boolean isTableFoot(AuthorElement node)
TablePropertiesHelperisTableFoot in interface TablePropertiesHelpernode - The node to be checked.true if the given node is a table foot element.TablePropertiesHelper.isTableFoot(ro.sync.ecss.extensions.api.node.AuthorElement)public boolean isTableRow(AuthorElement node)
TablePropertiesHelperisTableRow in interface TablePropertiesHelpernode - The node to be checked.true if the given node is a table row element.TablePropertiesHelper.isTableRow(ro.sync.ecss.extensions.api.node.AuthorElement)public boolean isTableCell(AuthorElement node)
TablePropertiesHelperisTableCell in interface TablePropertiesHelpernode - The node to be checked.true if the given node is a table cell element.TablePropertiesHelper.isTableCell(ro.sync.ecss.extensions.api.node.AuthorElement)public boolean isTableColspec(AuthorElement node)
TablePropertiesHelperisTableColspec in interface TablePropertiesHelpernode - The node to be checked.true if the given node is a table colspec element.TablePropertiesHelper.isTableColspec(ro.sync.ecss.extensions.api.node.AuthorElement)public boolean isNodeOfType(AuthorElement node, int type)
TableHelperAuthorNode is an element and it has one of the following types:
AuthorTableHelper.TYPE_CELL, AuthorTableHelper.TYPE_ROW or
AuthorTableHelper.TYPE_TABLE.isNodeOfType in interface TableHelpernode - The node to be checked.type - The type to search for.true if the node is an element with the specified type.TableHelper.isNodeOfType(ro.sync.ecss.extensions.api.node.AuthorElement, int)public boolean allowsFooter()
TablePropertiesHelpertrue if the current table allows footer element.allowsFooter in interface TablePropertiesHelpertrue if the table allows footer.TablePropertiesHelper.allowsFooter()public AuthorElement getFirstChildOfTypeFromParentWithType(AuthorElement currentRow, int childType, int parentType)
TablePropertiesHelpergetFirstChildOfTypeFromParentWithType in interface TablePropertiesHelpercurrentRow - The current row element.childType - The type of the child that is needed.parentType - The type for the parent which will contain the returned row element.TablePropertiesHelper.isTableHead(ro.sync.ecss.extensions.api.node.AuthorElement)public int getElementType(AuthorElement node)
TablePropertiesHelperTableHelperConstants.TYPE_TABLE,
TableHelperConstants.TYPE_GROUP, TableHelperConstants.TYPE_HEADER,
TableHelperConstants.TYPE_BODY, TableHelperConstants.TYPE_FOOTER,
TableHelperConstants.TYPE_ROW, TableHelperConstants.TYPE_CELL,
TableHelperConstants.TYPE_COLSPEC.getElementType in interface TablePropertiesHelpernode - The node to compute type for.TablePropertiesHelper.getElementType(ro.sync.ecss.extensions.api.node.AuthorElement)public java.lang.String getElementTag(int elementType)
TablePropertiesHelpergetElementTag in interface TablePropertiesHelperelementType - The type of the element.TablePropertiesHelper.getElementTag(int)public java.lang.String getElementName(int elementType)
getElementName in interface TablePropertiesHelperelementType - The element type.TablePropertiesHelper.getElementName(int)© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.