Class TEITableCellSpanProvider
java.lang.Object
ro.sync.ecss.extensions.commons.table.spansupport.TEITableCellSpanProvider
- All Implemented Interfaces:
AuthorTableCellSpanProvider,Extension
@API(type=INTERNAL,
src=PUBLIC)
public class TEITableCellSpanProvider
extends Object
implements AuthorTableCellSpanProvider
Provides cell spanning information about TEI tables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColSpan(AuthorElement cellElement) Compute the number of columns the cell spans across by looking at the 'cols' attribute.getRowSpan(AuthorElement cellElement) Compute the number of rows the cell spans across by looking at the 'rows' attribute.booleanhasColumnSpecifications(AuthorElement tableElement) This method tells if the table contains column specifications.voidinit(AuthorElement tableElement) Nothing to do.
-
Constructor Details
-
TEITableCellSpanProvider
public TEITableCellSpanProvider()
-
-
Method Details
-
getColSpan
Compute the number of columns the cell spans across by looking at the 'cols' attribute.- Specified by:
getColSpanin interfaceAuthorTableCellSpanProvider- Parameters:
cellElement- The node that represents a table cell in CSS.- Returns:
- The number of columns this cell spans across (the minimum returned value must be 1)
or
nullif not specified. - See Also:
-
getRowSpan
Compute the number of rows the cell spans across by looking at the 'rows' attribute.- Specified by:
getRowSpanin interfaceAuthorTableCellSpanProvider- Parameters:
cellElement- TheAuthorElementthat represents a table cell in CSS.- Returns:
- The number of rows this cell spans across (the minimum returned value must be 1)
or
nullif not specified. - See Also:
-
init
Nothing to do. Cell spanning information in a TEI table is given through the attributes of the cell element.- Specified by:
initin interfaceAuthorTableCellSpanProvider- Parameters:
tableElement- TheAuthorElementrepresenting a table (it has the CSS display property set on 'table').- See Also:
-
getDescription
- Specified by:
getDescriptionin interfaceExtension- Returns:
- The description of the extension.
- See Also:
-
hasColumnSpecifications
Description copied from interface:AuthorTableCellSpanProviderThis method tells if the table contains column specifications. For example the CALS table model requirescolspecelements to be present.- Specified by:
hasColumnSpecificationsin interfaceAuthorTableCellSpanProvider- Parameters:
tableElement- TheAuthorElementthat is rendered as a table.- Returns:
trueif some column specification info is present or if the table doesn't require any column specification info.- See Also:
-