Class DocbookTableCellSepInfoProvider
- java.lang.Object
-
- ro.sync.ecss.extensions.api.AuthorTableColumnWidthProviderBase
-
- ro.sync.ecss.extensions.commons.table.support.CALSTableCellInfoProvider
-
- ro.sync.ecss.extensions.docbook.table.DocbookTableCellSepInfoProvider
-
- All Implemented Interfaces:
AuthorTableCellSepProvider
,AuthorTableCellSpanProvider
,AuthorTableColumnWidthProvider
,Extension
,CALSConstants
@API(type=INTERNAL, src=PUBLIC) public class DocbookTableCellSepInfoProvider 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, spanspecInfos
-
Fields inherited from class ro.sync.ecss.extensions.api.AuthorTableColumnWidthProviderBase
errorsListener
-
Fields 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
Constructors Constructor Description DocbookTableCellSepInfoProvider()
The default in DITA is not to present the separators.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getColSep(AuthorElement cellElement, int columnIndex)
Special case for the topic/simpletable.boolean
getRowSep(AuthorElement cellElement, int columnIndex)
Special case for the topic/simpletable.-
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, isTableCell, isTableElement, isTgroupElement
-
Methods inherited from class ro.sync.ecss.extensions.api.AuthorTableColumnWidthProviderBase
getErrorsListener, isPreferPercentageColumnWidths, setErrorsListener
-
-
-
-
Method Detail
-
getColSep
public boolean getColSep(AuthorElement cellElement, int columnIndex)
Special case for the topic/simpletable. Always returntrue
for them.- Specified by:
getColSep
in interfaceAuthorTableCellSepProvider
- Overrides:
getColSep
in 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:
true
if a separator should be placed at its right,false
otherwise.- See Also:
AuthorTableCellSepProvider.getColSep(ro.sync.ecss.extensions.api.node.AuthorElement, int)
-
getRowSep
public boolean getRowSep(AuthorElement cellElement, int columnIndex)
Special case for the topic/simpletable. Always returntrue
for them.- Specified by:
getRowSep
in interfaceAuthorTableCellSepProvider
- Overrides:
getRowSep
in 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:
true
if a separator should be placed at its right,false
otherwise.- See Also:
AuthorTableCellSepProvider.getRowSep(ro.sync.ecss.extensions.api.node.AuthorElement, int)
-
-