Class DocbookCALSTableHelper
- java.lang.Object
-
- ro.sync.ecss.extensions.commons.table.properties.TablePropertiesHelperBase
-
- ro.sync.ecss.extensions.docbook.table.properties.DocbookCALSTableHelper
-
- All Implemented Interfaces:
TableHelper
,TableHelperConstants
,TablePropertiesConstants
,TablePropertiesHelper
- Direct Known Subclasses:
Docbook5CALSTableHelper
,DocbookHTMLTableHelper
@API(type=INTERNAL, src=PUBLIC) public class DocbookCALSTableHelper extends TablePropertiesHelperBase
Docbook CALS table helper.
-
-
Field Summary
-
Fields inherited from interface ro.sync.ecss.extensions.commons.table.properties.TableHelperConstants
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
-
Fields inherited from interface ro.sync.ecss.extensions.commons.table.properties.TablePropertiesConstants
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, TITLE_ELEMENT, TOP, VALIGN
-
-
Constructor Summary
Constructors Constructor Description DocbookCALSTableHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowsFooter()
true
if the current table allows footer element.java.lang.String
getElementTag(int elementType)
Obtain the element name.boolean
isTable(AuthorElement element)
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 element)
Checks if the given node represents a table cell element.boolean
isTableColspec(AuthorElement element)
Checks if the given node represents a table colspec element.boolean
isTableFoot(AuthorElement element)
Checks if the given node represents a table foot element.boolean
isTableGroup(AuthorElement element)
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.-
Methods inherited from class ro.sync.ecss.extensions.commons.table.properties.TablePropertiesHelperBase
getElementName, getElementType, getFirstChildOfTypeFromParentWithType, isNodeOfType
-
-
-
-
Method Detail
-
isTableBody
public boolean isTableBody(AuthorElement node)
Description copied from interface:TablePropertiesHelper
Checks if the given node represents a table body element.- Specified by:
isTableBody
in interfaceTablePropertiesHelper
- Overrides:
isTableBody
in classTablePropertiesHelperBase
- Parameters:
node
- The node to be checked.- Returns:
true
if the given node is a table body element.- See Also:
TablePropertiesHelper.isTableBody(ro.sync.ecss.extensions.api.node.AuthorElement)
-
isTableRow
public boolean isTableRow(AuthorElement node)
Description copied from interface:TablePropertiesHelper
Checks if the given node represents a table row element.- Specified by:
isTableRow
in interfaceTablePropertiesHelper
- Overrides:
isTableRow
in classTablePropertiesHelperBase
- Parameters:
node
- The node to be checked.- Returns:
true
if the given node is a table row element.- See Also:
TablePropertiesHelper.isTableRow(ro.sync.ecss.extensions.api.node.AuthorElement)
-
isTableHead
public boolean isTableHead(AuthorElement node)
Description copied from interface:TablePropertiesHelper
Checks if the given node represents a table head element.- Specified by:
isTableHead
in interfaceTablePropertiesHelper
- Overrides:
isTableHead
in classTablePropertiesHelperBase
- Parameters:
node
- The node to be checked.- Returns:
true
if the given node is a table head element.- See Also:
TablePropertiesHelper.isTableHead(ro.sync.ecss.extensions.api.node.AuthorElement)
-
isTableFoot
public boolean isTableFoot(AuthorElement element)
Description copied from interface:TablePropertiesHelper
Checks if the given node represents a table foot element.- Specified by:
isTableFoot
in interfaceTablePropertiesHelper
- Overrides:
isTableFoot
in classTablePropertiesHelperBase
- Parameters:
element
- The node to be checked.- Returns:
true
if the given node is a table foot element.- See Also:
TablePropertiesHelper.isTableHead(ro.sync.ecss.extensions.api.node.AuthorElement)
-
isTable
public boolean isTable(AuthorElement element)
Description copied from interface:TableHelper
Checks if the given node represents the table element.- Specified by:
isTable
in interfaceTableHelper
- Overrides:
isTable
in classTablePropertiesHelperBase
- Parameters:
element
- The node to be checked.- Returns:
true
if the given node is the table element.- See Also:
TablePropertiesHelper.isTableHead(ro.sync.ecss.extensions.api.node.AuthorElement)
-
isTableGroup
public boolean isTableGroup(AuthorElement element)
Description copied from interface:TableHelper
Checks if the given node represents a table group element.- Specified by:
isTableGroup
in interfaceTableHelper
- Overrides:
isTableGroup
in classTablePropertiesHelperBase
- Parameters:
element
- The node to be checked.- Returns:
true
if the given node is the table group element.- See Also:
TablePropertiesHelper.isTableHead(ro.sync.ecss.extensions.api.node.AuthorElement)
-
isTableColspec
public boolean isTableColspec(AuthorElement element)
Description copied from interface:TablePropertiesHelper
Checks if the given node represents a table colspec element.- Specified by:
isTableColspec
in interfaceTablePropertiesHelper
- Overrides:
isTableColspec
in classTablePropertiesHelperBase
- Parameters:
element
- The node to be checked.- Returns:
true
if the given node is a table colspec element.- See Also:
TablePropertiesHelper.isTableColspec(ro.sync.ecss.extensions.api.node.AuthorElement)
-
isTableCell
public boolean isTableCell(AuthorElement element)
Description copied from interface:TablePropertiesHelper
Checks if the given node represents a table cell element.- Specified by:
isTableCell
in interfaceTablePropertiesHelper
- Overrides:
isTableCell
in classTablePropertiesHelperBase
- Parameters:
element
- The node to be checked.- Returns:
true
if the given node is a table cell element.- See Also:
TablePropertiesHelperBase.isTableCell(ro.sync.ecss.extensions.api.node.AuthorElement)
-
getElementTag
public java.lang.String getElementTag(int elementType)
Description copied from interface:TablePropertiesHelper
Obtain the element name.- Specified by:
getElementTag
in interfaceTablePropertiesHelper
- Overrides:
getElementTag
in classTablePropertiesHelperBase
- Parameters:
elementType
- The type of the element.- Returns:
- the element tag.
- See Also:
TablePropertiesHelperBase.getElementTag(int)
-
allowsFooter
public boolean allowsFooter()
Description copied from interface:TablePropertiesHelper
true
if the current table allows footer element.- Specified by:
allowsFooter
in interfaceTablePropertiesHelper
- Overrides:
allowsFooter
in classTablePropertiesHelperBase
- Returns:
true
if the table allows footer.- See Also:
TablePropertiesHelperBase.allowsFooter()
-
-