@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, TYPE_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, VALIGN| Constructor and Description |
|---|
TablePropertiesHelperBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsFooter()
true if the current table allows footer element. |
void |
getChildElements(AuthorElement node,
int type,
java.util.List<AuthorElement> children)
Obtain a list of children with the given type.
|
AuthorElement |
getElementAncestor(AuthorNode node,
int type)
Search for an ancestor
AuthorNode with the specified type. |
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)
TablePropertiesHelperisTable in interface TablePropertiesHelpernode - The node to be checked.true if the given node is the table element.TablePropertiesHelper.isTable(ro.sync.ecss.extensions.api.node.AuthorElement)public boolean isTableGroup(AuthorElement node)
TablePropertiesHelperisTableGroup in interface TablePropertiesHelpernode - The node to be checked.true if the given node is the table group element.TablePropertiesHelper.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 AuthorElement getElementAncestor(AuthorNode node, int type)
TablePropertiesHelperAuthorNode with the specified type.getElementAncestor in interface TablePropertiesHelpernode - The starting node.type - The type of the ancestor.node or the node
itself if the type matches.TablePropertiesHelper.getElementAncestor(ro.sync.ecss.extensions.api.node.AuthorNode, int)public boolean isNodeOfType(AuthorElement node, int type)
TablePropertiesHelperAuthorNode is an element and it has one of the following types:
AuthorTableHelper.TYPE_CELL, AuthorTableHelper.TYPE_ROW or
AuthorTableHelper.TYPE_TABLE.isNodeOfType in interface TablePropertiesHelpernode - The node to be checked.type - The type to search for.true if the node is an element with the specified type.TablePropertiesHelper.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 void getChildElements(AuthorElement node, int type, java.util.List<AuthorElement> children)
TablePropertiesHelpergetChildElements in interface TablePropertiesHelpernode - The parent node.type - The type of the children.children - The list with collected children. Empty when the function is called.TablePropertiesHelper.getChildElements(ro.sync.ecss.extensions.api.node.AuthorElement, int, java.util.List)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)
TablePropertiesHelperTablePropertiesConstants.TYPE_TABLE,
TablePropertiesConstants.TYPE_GROUP, TablePropertiesConstants.TYPE_HEADER,
TablePropertiesConstants.TYPE_BODY, TablePropertiesConstants.TYPE_FOOTER,
TablePropertiesConstants.TYPE_ROW, TablePropertiesConstants.TYPE_CELL,
TablePropertiesConstants.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 - 2015. All rights reserved.