Class TableCustomizer

java.lang.Object
ro.sync.ecss.extensions.commons.table.operations.TableCustomizer
Direct Known Subclasses:
ECDITARelTableCustomizer, ECDITATableCustomizer, ECDocbookInnerTableCustomizer, ECDocbookTableCustomizer, ECTEITableCustomizer, ECXHTMLTableCustomizerInvoker, SADITARelTableCustomizer, SADITATableCustomizer, SADocbookInnerTableCustomizer, SADocbookTableCustomizer, SATEITableCustomizer, SAXHTMLTableCustomizerInvoker

@API(type=INTERNAL, src=PUBLIC) public abstract class TableCustomizer extends Object
Base for frameworks table customizers. It is used on standalone implementation.
  • Field Details

    • tableInfo

      protected TableInfo tableInfo
      The last table info specified by the user. Session level persistence.
  • Constructor Details

    • TableCustomizer

      public TableCustomizer()
  • Method Details

    • customizeTable

      public TableInfo customizeTable(AuthorAccess authorAccess)
      Customize a table.
      A table customizer dialog is shown, giving the possibility to choose the properties of a new table to be inserted in the document. An object containing the new table information is returned.
      Parameters:
      authorAccess - Access to Author operations.
      Returns:
      The table information provided by the user or null if customization operation is canceled.
    • customizeTable

      public TableInfo customizeTable(AuthorAccess authorAccess, int predefinedRowsCount, int predefinedColumnsCount)
      Customize a table.
      A table customizer dialog is shown, giving the possibility to choose the properties of a new table to be inserted in the document. An object containing the new table information is returned.
      Parameters:
      authorAccess - Access to Author operations.
      predefinedRowsCount - The predefined number of rows, -1 if the user can control the number of inserted column.
      predefinedColumnsCount - The predefined number of columns, -1 if the user can control the number of inserted column. If predefined columns count and predefined rows count values are positive then the dialog will not contain any field for defining the table columns and rows count and the inserted table will use the predefined values.
      Returns:
      The table information provided by the user or null if customization operation is canceled.
    • showCustomizeTableDialog

      protected abstract TableInfo showCustomizeTableDialog(AuthorAccess authorAccess, int predefinedRowsCount, int predefinedColumnsCount, int defaultTableModel)
      Show table customizer dialog and return new table information.
      Parameters:
      authorAccess - The Author access.
      predefinedRowsCount - Predefined number of rows.
      predefinedColumnsCount - Predefined number of columns.
      defaultTableModel - The default model of the table that will be inserted.
      Returns:
      The table information provided by the user or null if customization operation is canceled.
    • customizeTable

      public TableInfo customizeTable(AuthorAccess authorAccess, int predefinedRowsCount, int predefinedColumnsCount, int defaultTableModel)
      Customize a table.
      A table customizer dialog is shown, giving the possibility to choose the properties of a new table to be inserted in the document. An object containing the new table information is returned.
      Parameters:
      authorAccess - Access to Author operations.
      predefinedRowsCount - The predefined number of rows, -1 if the user can control the number of inserted column.
      predefinedColumnsCount - The predefined number of columns, -1 if the user can control the number of inserted column. If predefined columns count and predefined rows count values are positive then the dialog will not contain any field for defining the table columns and rows count and the inserted table will use the predefined values.
      defaultTableModel - The default model of the table that will be inserted.
      Returns:
      The table information provided by the user or null if customization operation is canceled.