Class DITATableCellSepInfoProvider
java.lang.Object
ro.sync.ecss.extensions.api.AuthorTableColumnWidthProviderBase
ro.sync.ecss.extensions.commons.table.support.CALSTableCellInfoProvider
ro.sync.ecss.extensions.commons.table.support.DITATableCellSepInfoProvider
- All Implemented Interfaces:
AuthorTableCellSepProvider,AuthorTableCellSpanProvider,AuthorTableColumnWidthProvider,Extension,CALSConstants
@API(type=INTERNAL,
src=PUBLIC)
public class DITATableCellSepInfoProvider
extends CALSTableCellInfoProvider
A DITA cell separators provider. The same as a CALS one, but also knows about the simple table.
-
Field Summary
Fields inherited from class ro.sync.ecss.extensions.commons.table.support.CALSTableCellInfoProvider
DEFAULT_WIDTH_REPRESENTATION, spanspecInfosFields inherited from class ro.sync.ecss.extensions.api.AuthorTableColumnWidthProviderBase
errorsListenerFields inherited from interface ro.sync.ecss.extensions.commons.table.operations.cals.CALSConstants
ATTRIBUTE_NAME_ALIGN, ATTRIBUTE_NAME_COLNAME, ATTRIBUTE_NAME_COLNUM, ATTRIBUTE_NAME_COLS, ATTRIBUTE_NAME_COLSEP, ATTRIBUTE_NAME_COLWIDTH, ATTRIBUTE_NAME_ID, ATTRIBUTE_NAME_MOREROWS, ATTRIBUTE_NAME_NAMEEND, ATTRIBUTE_NAME_NAMEST, ATTRIBUTE_NAME_ROWSEP, ATTRIBUTE_NAME_SPANNAME, ATTRIBUTE_NAME_TABLE_WIDTH, ATTRIBUTE_NAME_XML_ID, ELEMENT_NAME_COLSPEC, ELEMENT_NAME_ENTRY, ELEMENT_NAME_INFORMALTABLE, ELEMENT_NAME_ROW, ELEMENT_NAME_SPANSPEC, ELEMENT_NAME_TABLE, ELEMENT_NAME_TGROUP -
Constructor Summary
ConstructorsConstructorDescriptionThe default in DITA is not to present the separators. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetColSep(AuthorElement cellElement, int columnIndex) Special case for the topic/simpletable.booleangetRowSep(AuthorElement cellElement, int columnIndex) Special case for the topic/simpletable.protected booleanisTableElement(AuthorElement element) Check if this element is atableelement.protected booleanisTgroupElement(AuthorElement element) Check if this element is atgroupelement.Methods inherited from class ro.sync.ecss.extensions.commons.table.support.CALSTableCellInfoProvider
commitColumnWidthModifications, commitTableWidthModification, getAllColspecWidthRepresentations, getCellSpanSpec, getCellWidth, getColSpan, getColSpanInterval, getColSpec, getColSpec, getColSpecElement, getColSpecs, getDescription, getRowSpan, getTableWidth, hasColumnSpecifications, init, isAcceptingFixedColumnWidths, isAcceptingPercentageColumnWidths, isAcceptingProportionalColumnWidths, isColspec, isTableAcceptingWidth, isTableAndColumnsResizable, isTableCellMethods inherited from class ro.sync.ecss.extensions.api.AuthorTableColumnWidthProviderBase
getErrorsListener, isPreferPercentageColumnWidths, setErrorsListener
-
Constructor Details
-
DITATableCellSepInfoProvider
public DITATableCellSepInfoProvider()The default in DITA is not to present the separators.
-
-
Method Details
-
getColSep
Special case for the topic/simpletable. Always returntruefor them.- Specified by:
getColSepin interfaceAuthorTableCellSepProvider- Overrides:
getColSepin classCALSTableCellInfoProvider- Parameters:
cellElement- The node that represents a table cell in CSS.columnIndex- The index of the column, used to identify the colspec associated to the cell. The colspec can give information about the colsep. 1 based.- Returns:
trueif a separator should be placed at its right,falseotherwise.- See Also:
-
getRowSep
Special case for the topic/simpletable. Always returntruefor them.- Specified by:
getRowSepin interfaceAuthorTableCellSepProvider- Overrides:
getRowSepin classCALSTableCellInfoProvider- Parameters:
cellElement- The node that represents a table cell in CSS.columnIndex- The index of the column, used to identify the rowspec associated to the cell. The rowspec can give information about the colsep. 1 based.- Returns:
trueif a separator should be placed at its right,falseotherwise.- See Also:
-
isTableElement
Description copied from class:CALSTableCellInfoProviderCheck if this element is atableelement.- Overrides:
isTableElementin classCALSTableCellInfoProvider- Parameters:
element- The analyzed element.- Returns:
trueif this element is a CALStableelement.- See Also:
-
isTgroupElement
Description copied from class:CALSTableCellInfoProviderCheck if this element is atgroupelement.- Overrides:
isTgroupElementin classCALSTableCellInfoProvider- Parameters:
element- The analyzed element.- Returns:
trueif this element is a CALStgroupelement.- See Also:
-