Class ECTableCustomizerDialog

java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
ro.sync.ecss.extensions.commons.table.operations.ECTableCustomizerDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider, TableCustomizerConstants
Direct Known Subclasses:
ECDITARelTableCustomizerDialog, ECDITATableCustomizerDialog, ECDocbookTableCustomizerDialog, ECTEITableCustomizerDialog, ECXHTMLTableCustomizerDialog

@API(type=INTERNAL, src=PUBLIC) public abstract class ECTableCustomizerDialog extends org.eclipse.jface.dialogs.TrayDialog implements TableCustomizerConstants
Dialog used to customize the insertion of a generic table (number of rows, columns, table caption). It is used on Eclipse platform implementation.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jface.window.Window

    org.eclipse.jface.window.Window.IExceptionHandler

    Nested classes/interfaces inherited from interface ro.sync.ecss.extensions.commons.table.operations.TableCustomizerConstants

    TableCustomizerConstants.ColumnWidthsType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final AuthorResourceBundle
    Author resource bundle.
    The selected column widths type

    Fields inherited from class org.eclipse.jface.dialogs.Dialog

    blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS

    Fields inherited from class org.eclipse.jface.window.Window

    CANCEL, OK, resizeHasOccurred
  • Constructor Summary

    Constructors
    Constructor
    Description
    ECTableCustomizerDialog(AuthorAccess authorAccess, org.eclipse.swt.widgets.Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, boolean showSimpleModelRadio, boolean showChoiceTableDialog, boolean isCalsTable, boolean isSimpleOrHtmlTable, boolean innerCalsTable, boolean isPropertiesTableAccepted, boolean isPropertiesTableModel, boolean hasRowsep, boolean hasColsep, boolean hasAlign, AuthorResourceBundle authorResourceBundle, int predefinedRowsCount, int predefinedColumnsCount)
    Constructor.
    ECTableCustomizerDialog(AuthorAccess authorAccess, org.eclipse.swt.widgets.Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, boolean showSimpleModelRadio, boolean showChoiceTableDialog, boolean isCalsTable, boolean innerCalsTable, boolean hasRowsep, boolean hasColsep, boolean hasAlign, AuthorResourceBundle authorResourceBundle, int predefinedRowsCount, int predefinedColumnsCount)
    Constructor.
    ECTableCustomizerDialog(AuthorAccess authorAccess, org.eclipse.swt.widgets.Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, boolean showSimpleModelRadio, boolean showChoiceTableDialog, boolean innerCalsTable, boolean hasRowsep, boolean hasColsep, boolean hasAlign, AuthorResourceBundle authorResourceBundle, int predefinedRowsCount, int predefinedColumnsCount)
    Constructor for TrangDialog.
    ECTableCustomizerDialog(AuthorAccess authorAccess, org.eclipse.swt.widgets.Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, boolean showSimpleModelRadio, boolean innerCalsTable, boolean hasRowsep, boolean hasColsep, boolean hasAlign, AuthorResourceBundle authorResourceBundle, int predefinedRowsCount, int predefinedColumnsCount)
    Constructor.
    ECTableCustomizerDialog(AuthorAccess authorAccess, org.eclipse.swt.widgets.Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, AuthorResourceBundle authorResourceBundle, int predefinedRowsCount, int predefinedColumnsCount)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    configureShell(org.eclipse.swt.widgets.Shell newShell)
    Configure Shell.
    protected void
    createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
     
    protected org.eclipse.swt.widgets.Control
    createDialogArea(org.eclipse.swt.widgets.Composite parent)
    Create Dialog area.
    protected abstract org.eclipse.swt.widgets.Button
    createTitleCheckbox(org.eclipse.swt.widgets.Composite parent)
    Create a checkbox with an implementation specific title.
    protected abstract String[]
    getAlignValues(int tableModelType)
    Compute the possible values for 'align' attribute.
    protected abstract String[]
    getColsepValues(int tableModelType)
    Compute the possible values for 'colsep' attribute.
    getColumnWidthsSpecifications(int tableModelType)
    Compute the possible values for the column widths specifications.
    protected abstract String
    getDefaultAlignValue(int tableModelType)
    Get the default align value.
    protected abstract String
    getDefaultColsepValue(int tableModelType)
    Get the default column separator value.
    protected abstract String
    getDefaultFrameValue(int tableModelType)
    Get the default frame value.
    protected abstract String
    getDefaultRowsepValue(int tableModelType)
    Get the default row separator value.
    protected abstract String[]
    getFrameValues(int tableModelType)
    Compute the possible values for 'frame' attribute.
    protected String
    Get the ID of the help page which will be called by the end user.
    protected abstract String[]
    getRowsepValues(int tableModelType)
    Compute the possible values for 'rowsep' attribute.
    showDialog(TableInfo tableInfo)
    Show the dialog to customize the table attributes.

    Methods inherited from class org.eclipse.jface.dialogs.TrayDialog

    closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable

    Methods inherited from class org.eclipse.jface.dialogs.Dialog

    applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText

    Methods inherited from class org.eclipse.jface.window.Window

    canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ECTableCustomizerDialog

      public ECTableCustomizerDialog(AuthorAccess authorAccess, org.eclipse.swt.widgets.Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, AuthorResourceBundle authorResourceBundle, int predefinedRowsCount, int predefinedColumnsCount)
      Constructor.
      Parameters:
      authorAccess - The Author access.
      parentShell - The parent shell for the dialog.
      hasFooter - true if this table supports 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.
      authorResourceBundle - The author resource bundle.
      predefinedRowsCount - The predefined number of rows.
      predefinedColumnsCount - The predefined number of columns.
    • ECTableCustomizerDialog

      public ECTableCustomizerDialog(AuthorAccess authorAccess, org.eclipse.swt.widgets.Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, boolean showSimpleModelRadio, boolean innerCalsTable, boolean hasRowsep, boolean hasColsep, boolean hasAlign, AuthorResourceBundle authorResourceBundle, int predefinedRowsCount, int predefinedColumnsCount)
      Constructor.
      Parameters:
      authorAccess - The Author access.
      parentShell - The parent shell for the dialog.
      hasFooter - true if this table supports 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.
      showSimpleModelRadio - true to show the simple model radio in the model chooser.
      innerCalsTable - true if this is an inner calls table.
      hasRowsep - true if the table has rowsep attribute. Flag used to add a corresponding combo box in the dialog.
      hasColsep - true if the table has colsep attribute. Flag used to add a corresponding combo box in the dialog.
      hasAlign - true if the table has align attribute. Flag used to add a corresponding combo box in the dialog.
      authorResourceBundle - The author resource bundle.
      predefinedRowsCount - The predefined number of rows.
      predefinedColumnsCount - The predefined number of columns.
    • ECTableCustomizerDialog

      public ECTableCustomizerDialog(AuthorAccess authorAccess, org.eclipse.swt.widgets.Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, boolean showSimpleModelRadio, boolean showChoiceTableDialog, boolean innerCalsTable, boolean hasRowsep, boolean hasColsep, boolean hasAlign, AuthorResourceBundle authorResourceBundle, int predefinedRowsCount, int predefinedColumnsCount)
      Constructor for TrangDialog.
      Parameters:
      authorAccess - The Author access.
      parentShell - The parent shell for the dialog.
      hasFooter - true if this table supports 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.
      showSimpleModelRadio - true to show the simple model radio in the model chooser.
      showChoiceTableDialog - true to show the dialog for choice table.
      innerCalsTable - true if this is an inner calls table.
      hasRowsep - true if the table has rowsep attribute. Flag used to add a corresponding combo box in the dialog.
      hasColsep - true if the table has colsep attribute. Flag used to add a corresponding combo box in the dialog.
      hasAlign - true if the table has align attribute. Flag used to add a corresponding combo box in the dialog.
      authorResourceBundle - The author resource bundle.
      predefinedRowsCount - The predefined number of rows.
      predefinedColumnsCount - The predefined number of columns.
    • ECTableCustomizerDialog

      public ECTableCustomizerDialog(AuthorAccess authorAccess, org.eclipse.swt.widgets.Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, boolean showSimpleModelRadio, boolean showChoiceTableDialog, boolean isCalsTable, boolean innerCalsTable, boolean hasRowsep, boolean hasColsep, boolean hasAlign, AuthorResourceBundle authorResourceBundle, int predefinedRowsCount, int predefinedColumnsCount)
      Constructor.
      Parameters:
      authorAccess - The Author access.
      parentShell - The parent shell for the dialog.
      hasFooter - true if this table supports 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.
      showSimpleModelRadio - true to show the simple model radio in the model chooser.
      showChoiceTableDialog - true to show the dialog for choice table.
      isCalsTable - true if the table model is CALS.
      innerCalsTable - true if this is an inner calls table.
      hasRowsep - true if the table has rowsep attribute. Flag used to add a corresponding combo box in the dialog.
      hasColsep - true if the table has colsep attribute. Flag used to add a corresponding combo box in the dialog.
      hasAlign - true if the table has align attribute. Flag used to add a corresponding combo box in the dialog.
      authorResourceBundle - The author resource bundle.
      predefinedRowsCount - The predefined number of rows.
      predefinedColumnsCount - The predefined number of columns.
    • ECTableCustomizerDialog

      public ECTableCustomizerDialog(AuthorAccess authorAccess, org.eclipse.swt.widgets.Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, boolean showSimpleModelRadio, boolean showChoiceTableDialog, boolean isCalsTable, boolean isSimpleOrHtmlTable, boolean innerCalsTable, boolean isPropertiesTableAccepted, boolean isPropertiesTableModel, boolean hasRowsep, boolean hasColsep, boolean hasAlign, AuthorResourceBundle authorResourceBundle, int predefinedRowsCount, int predefinedColumnsCount)
      Constructor.
      Parameters:
      authorAccess - The Author access.
      parentShell - The parent shell for the dialog.
      hasFooter - true if this table supports 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.
      showSimpleModelRadio - true to show the simple model radio in the model chooser.
      showChoiceTableDialog - true to show the dialog for choice table.
      isCalsTable - true if the table model is CALS.
      isSimpleOrHtmlTable - true if the table model is simple or HTML.
      innerCalsTable - true if this is an inner calls table.
      isPropertiesTableAccepted - true of a properties table is accepted.
      isPropertiesTableModel - true if the current table has a properties table model.
      hasRowsep - true if the table has rowsep attribute. Flag used to add a corresponding combo box in the dialog.
      hasColsep - true if the table has colsep attribute. Flag used to add a corresponding combo box in the dialog.
      hasAlign - true if the table has align attribute. Flag used to add a corresponding combo box in the dialog.
      authorResourceBundle - The author resource bundle.
      predefinedRowsCount - The predefined number of rows.
      predefinedColumnsCount - The predefined number of columns.
  • Method Details