Class TableCustomizer

    • Field Detail

      • tableInfo

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

      • TableCustomizer

        public TableCustomizer()
    • Method Detail

      • 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.