Package ro.sync.ecss.extensions.api
Class AuthorTableColumnWidthProviderBase
- java.lang.Object
-
- ro.sync.ecss.extensions.api.AuthorTableColumnWidthProviderBase
-
- All Implemented Interfaces:
AuthorTableColumnWidthProvider
,Extension
- Direct Known Subclasses:
CALSandHTMLTableCellInfoProvider
,CALSTableCellInfoProvider
,DITATableCellInfoProvider
,HTMLTableCellInfoProvider
@API(type=EXTENDABLE, src=PUBLIC) public abstract class AuthorTableColumnWidthProviderBase extends java.lang.Object implements AuthorTableColumnWidthProvider
This is an interface for classes which are responsible for providing information and handling modifications regarding table and column widths. It should be implemented when the author extension being developed offers support for editing data in tabular form.
-
-
Field Summary
Fields Modifier and Type Field Description protected TableLayoutErrorsListener
errorsListener
Table layout errors listener.
-
Constructor Summary
Constructors Constructor Description AuthorTableColumnWidthProviderBase()
ConstructorAuthorTableColumnWidthProviderBase(TableLayoutErrorsListener errorsListener)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.List<WidthRepresentation>
getAllColspecWidthRepresentations()
Get all with representations defined in all colspecs.TableLayoutErrorsListener
getErrorsListener()
Get table layout error listenerboolean
isPreferPercentageColumnWidths(java.lang.String tableCellsTagName)
Check if percentage column widths are preferred.void
setErrorsListener(TableLayoutErrorsListener errorsListener)
Set a table layout error listener.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ro.sync.ecss.extensions.api.AuthorTableColumnWidthProvider
commitColumnWidthModifications, commitTableWidthModification, getCellWidth, getTableWidth, init, isAcceptingFixedColumnWidths, isAcceptingPercentageColumnWidths, isAcceptingProportionalColumnWidths, isTableAcceptingWidth, isTableAndColumnsResizable
-
Methods inherited from interface ro.sync.ecss.extensions.api.Extension
getDescription
-
-
-
-
Field Detail
-
errorsListener
protected TableLayoutErrorsListener errorsListener
Table layout errors listener.
-
-
Constructor Detail
-
AuthorTableColumnWidthProviderBase
public AuthorTableColumnWidthProviderBase()
Constructor
-
AuthorTableColumnWidthProviderBase
public AuthorTableColumnWidthProviderBase(TableLayoutErrorsListener errorsListener)
Constructor- Parameters:
errorsListener
- Table layout errors listener- Since:
- 18
-
-
Method Detail
-
setErrorsListener
public void setErrorsListener(TableLayoutErrorsListener errorsListener)
Set a table layout error listener.- Parameters:
errorsListener
- The table layout errors listener.- Since:
- 18
-
getAllColspecWidthRepresentations
public abstract java.util.List<WidthRepresentation> getAllColspecWidthRepresentations()
Get all with representations defined in all colspecs. If a colspec does not specify a width, it is supposed to be 1*. If the table group specifies more columns than colspecs, those widths are supposed to be 1*.- Returns:
- All width representations from the defined colspecs.
-
getErrorsListener
public TableLayoutErrorsListener getErrorsListener()
Get table layout error listener- Returns:
- Returns the table layout errors listener .
-
isPreferPercentageColumnWidths
public boolean isPreferPercentageColumnWidths(java.lang.String tableCellsTagName)
Check if percentage column widths are preferred.- Parameters:
tableCellsTagName
- The cell tag name- Returns:
false
by default.- Since:
- 20
-
-