Class SATableCustomizerDialog

    • Field Detail

      • titleCheckbox

        protected javax.swing.JCheckBox titleCheckbox
        If selected the user can specify the table title.
      • titleTextField

        protected javax.swing.JTextField titleTextField
        Text field for specify the table title.
      • rowsSpinner

        protected javax.swing.JSpinner rowsSpinner
        Used to specify the number of rows.
      • columnsSpinner

        protected javax.swing.JSpinner columnsSpinner
        Used to specify the number of columns.
      • colWidthsCombobox

        protected javax.swing.JComboBox colWidthsCombobox
        Used to specify how the column widths are generated. The column widths values can be fixed or proportional.
      • headerCheckbox

        protected javax.swing.JCheckBox headerCheckbox
        If selected an empty table header will be generated.
      • footerCheckbox

        protected javax.swing.JCheckBox footerCheckbox
        If selected an empty table footer will be generated.
      • frameCombo

        protected javax.swing.JComboBox frameCombo
        Combo used to chose the table frame type.
      • rowsepCombo

        protected javax.swing.JComboBox rowsepCombo
        Combo used to chose the table row separator value.
      • colsepCombo

        protected javax.swing.JComboBox colsepCombo
        Combo used to chose the table column separator value.
      • alignCombo

        protected javax.swing.JComboBox alignCombo
        Combo used to chose the table align value.
      • calsModelRadio

        protected javax.swing.JRadioButton calsModelRadio
        Radio button used to choose CALS table model.
      • simpleOrHtmlModelRadio

        protected javax.swing.JRadioButton simpleOrHtmlModelRadio
        Either simple or HTML.
      • propertiesModelRadio

        protected javax.swing.JRadioButton propertiesModelRadio
        Properties model.
      • authorResourceBundle

        protected final AuthorResourceBundle authorResourceBundle
        Author resource bundle.
    • Constructor Detail

      • SATableCustomizerDialog

        public SATableCustomizerDialog​(java.awt.Frame parentFrame,
                                       boolean hasFooter,
                                       boolean hasFrameAttribute,
                                       boolean showModelChooser,
                                       AuthorResourceBundle authorResourceBundle,
                                       int predefinedRowsCount,
                                       int predefinedColumnsCount)
        Constructor.
        Parameters:
        parentFrame - The parent JFrame of the dialog.
        hasFooter - true if this table has a footer.
        hasFrameAttribute - true if this table has a frame attribute.
        showModelChooser - true to show the dialog panel for choosing the table model, one of CALS or HTML.
        authorResourceBundle - Author resource bundle.
        predefinedRowsCount - The predefined number of rows.
        predefinedColumnsCount - The predefined number of columns.
      • SATableCustomizerDialog

        public SATableCustomizerDialog​(java.awt.Frame parentFrame,
                                       boolean hasFooter,
                                       boolean hasFrameAttribute,
                                       boolean showModelChooser,
                                       boolean showSimpleModel,
                                       boolean innerCallsTable,
                                       boolean hasRowsepAttribute,
                                       boolean hasColsepAttribute,
                                       boolean hasAlignAttribute,
                                       AuthorResourceBundle authorResourceBundle,
                                       int predefinedRowsCount,
                                       int predefinedColumnsCount)
        Constructor.
        Parameters:
        parentFrame - The parent JFrame of the dialog.
        hasFooter - true if this table has a footer.
        hasFrameAttribute - true if the table has a frame attribute.
        showModelChooser - true to show the dialog panel for choosing the table model, one of CALS or HTML.
        showSimpleModel - true to use the simple table model radio button instead of the HTML model.
        innerCallsTable - true if this is an inner CALLS table.
        hasRowsepAttribute - true if the table has a row separator attribute. Flag used to add a corresponding combo box in the dialog.
        hasColsepAttribute - true if the table has a column separator attribute. Flag used to add a corresponding combo box in the dialog.
        hasAlignAttribute - true if the table has an align attribute. Flag used to add a corresponding combo box in the dialog.
        authorResourceBundle - Author resource bundle.
        predefinedRowsCount - The predefined number of rows.
        predefinedColumnsCount - The predefined number of columns.
      • SATableCustomizerDialog

        public SATableCustomizerDialog​(java.awt.Frame parentFrame,
                                       boolean hasFooter,
                                       boolean hasFrameAttribute,
                                       boolean showModelChooser,
                                       boolean showSimpleModel,
                                       boolean choiceTableModel,
                                       boolean innerCallsTable,
                                       boolean hasRowsepAttribute,
                                       boolean hasColsepAttribute,
                                       boolean hasAlignAttribute,
                                       AuthorResourceBundle authorResourceBundle,
                                       int predefinedRowsCount,
                                       int predefinedColumnsCount)
        Constructor.
        Parameters:
        parentFrame - The parent JFrame of the dialog.
        hasFooter - true if this table has a footer.
        hasFrameAttribute - true if the table has a frame attribute.
        showModelChooser - true to show the dialog panel for choosing the table model, one of CALS or HTML.
        showSimpleModel - true to use the simple table model radio button instead of the HTML model.
        choiceTableModel - true to use the choice table model.
        innerCallsTable - true if this is an inner CALLS table.
        hasRowsepAttribute - true if the table has a row separator attribute. Flag used to add a corresponding combo box in the dialog.
        hasColsepAttribute - true if the table has a column separator attribute. Flag used to add a corresponding combo box in the dialog.
        hasAlignAttribute - true if the table has an align attribute. Flag used to add a corresponding combo box in the dialog.
        authorResourceBundle - Author resource bundle.
        predefinedRowsCount - The predefined number of rows.
        predefinedColumnsCount - The predefined number of columns.
      • SATableCustomizerDialog

        public SATableCustomizerDialog​(java.awt.Frame parentFrame,
                                       boolean hasFooter,
                                       boolean hasFrameAttribute,
                                       boolean showModelChooser,
                                       boolean showSimpleModel,
                                       boolean choiceTableModel,
                                       boolean isCalsTable,
                                       boolean innerCallsTable,
                                       boolean hasRowsepAttribute,
                                       boolean hasColsepAttribute,
                                       boolean hasAlignAttribute,
                                       AuthorResourceBundle authorResourceBundle,
                                       int predefinedRowsCount,
                                       int predefinedColumnsCount)
        Constructor.
        Parameters:
        parentFrame - The parent JFrame of the dialog.
        hasFooter - true if this table has a footer.
        hasFrameAttribute - true if the table has a frame attribute.
        showModelChooser - true to show the dialog panel for choosing the table model, one of CALS or HTML.
        showSimpleModel - true to use the simple table model radio button instead of the HTML model.
        choiceTableModel - true to show the dialog for choice table.
        isCalsTable - true if the table model is CALS.
        innerCallsTable - true if this is an inner CALLS table.
        hasRowsepAttribute - true if the table has a row separator attribute. Flag used to add a corresponding combo box in the dialog.
        hasColsepAttribute - true if the table has a column separator attribute. Flag used to add a corresponding combo box in the dialog.
        hasAlignAttribute - true if the table has an align attribute. Flag used to add a corresponding combo box in the dialog.
        authorResourceBundle - Author resource bundle.
        predefinedRowsCount - The predefined number of rows.
        predefinedColumnsCount - The predefined number of columns.
      • SATableCustomizerDialog

        public SATableCustomizerDialog​(java.awt.Frame parentFrame,
                                       boolean hasFooter,
                                       boolean hasFrameAttribute,
                                       boolean showModelChooser,
                                       boolean showSimpleModel,
                                       boolean choiceTableModel,
                                       boolean isCalsTable,
                                       boolean isSimpleOrHtmlTable,
                                       boolean isPropertiesTableAccepted,
                                       boolean isPropertiesTable,
                                       boolean innerCallsTable,
                                       boolean hasRowsepAttribute,
                                       boolean hasColsepAttribute,
                                       boolean hasAlignAttribute,
                                       AuthorResourceBundle authorResourceBundle,
                                       int predefinedRowsCount,
                                       int predefinedColumnsCount)
        Constructor.
        Parameters:
        parentFrame - The parent JFrame of the dialog.
        hasFooter - true if this table has a footer.
        hasFrameAttribute - true if the table has a frame attribute.
        showModelChooser - true to show the dialog panel for choosing the table model, one of CALS or HTML.
        showSimpleModel - true to use the simple table model radio instead of the HTML model.
        choiceTableModel - true to show the dialog for choice table.
        isCalsTable - true if the table model is CALS.
        isSimpleOrHtmlTable - true if the model is for simple or HTML table, not CALS or properties.
        isPropertiesTableAccepted - true of a properties table is accepted.
        isPropertiesTable - true if the current table has a properties table model.
        innerCallsTable - true if this is an inner CALLS table.
        hasRowsepAttribute - true if the table has a row separator attribute. Flag used to add a corresponding combo box in the dialog.
        hasColsepAttribute - true if the table has a column separator attribute. Flag used to add a corresponding combo box in the dialog.
        hasAlignAttribute - true if the table has an align attribute. Flag used to add a corresponding combo box in the dialog.
        authorResourceBundle - Author resource bundle.
        predefinedRowsCount - The predefined number of rows.
        predefinedColumnsCount - The predefined number of columns.
    • Method Detail

      • updateColumnsWidthsCombo

        protected void updateColumnsWidthsCombo​(TableCustomizerConstants.ColumnWidthsType[] columnsWidthsSpecifications)
        Parameters:
        columnsWidthsSpecifications - The column widths specifications.
      • createTitleCheckbox

        protected abstract javax.swing.JCheckBox createTitleCheckbox()
        Creates the title checkbox with an implementation specific name.
        Returns:
        The title checkbox customized according to implementation.
      • showDialog

        public TableInfo showDialog​(TableInfo previousTableInfo)
        Show the dialog to customize the table attributes.
        Parameters:
        previousTableInfo - Table info to be used for initializing the controls.
        Returns:
        The TableInfo object with informations about the table to be inserted. If null then the user canceled the table insertion.
      • getTableModelType

        protected int getTableModelType()
        Obtain the table model type.
        Returns:
        The table model type.
      • getPropertiesModelRadio

        public javax.swing.JRadioButton getPropertiesModelRadio()
        Returns:
        Returns the propertiesModelRadio.
      • getColumnsSpinner

        public javax.swing.JSpinner getColumnsSpinner()
        Returns:
        Returns the columnsSpinner.
      • getHeaderCheckbox

        public javax.swing.JCheckBox getHeaderCheckbox()
        Returns:
        Returns the headerCheckbox.
      • getColWidthsCombobox

        public javax.swing.JComboBox getColWidthsCombobox()
        Returns:
        Returns the colWidthsCombobox.
      • getFrameCombo

        public javax.swing.JComboBox getFrameCombo()
        Returns:
        Returns the frameCombo.
      • getColsepCombo

        public javax.swing.JComboBox getColsepCombo()
        Returns:
        Returns the colsepCombo.
      • getRowsepCombo

        public javax.swing.JComboBox getRowsepCombo()
        Returns:
        Returns the rowsepCombo.
      • getAlignCombo

        public javax.swing.JComboBox getAlignCombo()
        Returns:
        Returns the alignCombo.
      • getTitleCheckbox

        public javax.swing.JCheckBox getTitleCheckbox()
        Returns:
        Returns the titleCheckbox.
      • getTitleTextField

        public javax.swing.JTextField getTitleTextField()
        Returns:
        Returns the titleTextField.
      • getRowsSpinner

        public javax.swing.JSpinner getRowsSpinner()
        Returns:
        Returns the rowsSpinner.
      • getCalsModelRadio

        public javax.swing.JRadioButton getCalsModelRadio()
        Returns:
        Returns the calsModelRadio.
      • getSimpleOrHtmlModelRadio

        public javax.swing.JRadioButton getSimpleOrHtmlModelRadio()
        Returns:
        Returns the simpleOrHtmlModelRadio.
      • getFooterCheckbox

        public javax.swing.JCheckBox getFooterCheckbox()
        Returns:
        Returns the footer Checkbox.