Oxygen XML Editor 12.2 Author API

ro.sync.ecss.extensions.commons.table.operations
Class ECTableCustomizerDialog

java.lang.Object
  extended by Dialog
      extended by ro.sync.ecss.extensions.commons.table.operations.ECTableCustomizerDialog
All Implemented Interfaces:
TableCustomizerConstants
Direct Known Subclasses:
ECDITARelTableCustomizerDialog, ECDITATableCustomizerDialog, ECDocbookTableCustomizerDialog, ECTEITableCustomizerDialog, ECXHTMLTableCustomizerDialog

public abstract class ECTableCustomizerDialog
extends Dialog
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 interface ro.sync.ecss.extensions.commons.table.operations.TableCustomizerConstants
TableCustomizerConstants.ColumnWidthsType
 
Field Summary
protected  TableCustomizerConstants.ColumnWidthsType selectedColWidthsType
          The selected column widths type
 
Fields inherited from interface ro.sync.ecss.extensions.commons.table.operations.TableCustomizerConstants
CALS_WIDTHS_SPECIFICATIONS, COLS_DYNAMIC, COLS_FIXED, COLS_PROPORTIONAL, FRAME_ABOVE, FRAME_ALL, FRAME_BELLOW, FRAME_BORDER, FRAME_BOTTOM, FRAME_BOX, FRAME_HSIDES, FRAME_LHS, FRAME_NONE, FRAME_RHS, FRAME_SIDES, FRAME_TOP, FRAME_TOPBOT, FRAME_VOID, FRAME_VSIDES, HTML_WIDTHS_SPECIFICATIONS, SIMPLE_WIDTHS_SPECIFICATIONS
 
Constructor Summary
ECTableCustomizerDialog(Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser)
          Constructor for TrangDialog.
ECTableCustomizerDialog(Shell parentShell, boolean hasFooter, boolean hasFrameAttribute, boolean showModelChooser, boolean showSimpleModel, boolean innerCalsTable)
          Constructor for TrangDialog.
 
Method Summary
protected  void configureShell(Shell newShell)
          Configure Shell.
protected  Control createDialogArea(Composite parent)
          Create Dialog area.
protected abstract  Button createTitleCheckbox(Composite parent)
          Create a checkbox with an implementation specific title.
protected abstract  java.util.List<TableCustomizerConstants.ColumnWidthsType> getColumnWidthsSpecifications(int tableModel)
          Compute the possible values for the column widths specifications.
protected abstract  java.lang.String getDefaultFrameValue(int tableModel)
          Get the default frame value.
protected abstract  java.lang.String[] getFrameValues(int tableModel)
          Compute the possible values for 'frame' attribute.
 TableInfo showDialog(TableInfo tableInfo)
          Show the dialog to customize the table attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectedColWidthsType

protected TableCustomizerConstants.ColumnWidthsType selectedColWidthsType
The selected column widths type

Constructor Detail

ECTableCustomizerDialog

public ECTableCustomizerDialog(Shell parentShell,
                               boolean hasFooter,
                               boolean hasFrameAttribute,
                               boolean showModelChooser)
Constructor for TrangDialog.

Parameters:
parentShell - The parent shell for the dialog.
hasFooter - If this table supports a footer.
hasFrameAttribute - If the table has a frame attribute.
showModelChooser - If true then show the dialog panel for choosing the table model, one of CALS or HTML.

ECTableCustomizerDialog

public ECTableCustomizerDialog(Shell parentShell,
                               boolean hasFooter,
                               boolean hasFrameAttribute,
                               boolean showModelChooser,
                               boolean showSimpleModel,
                               boolean innerCalsTable)
Constructor for TrangDialog.

Parameters:
parentShell - The parent shell for the dialog.
hasFooter - If this table supports a footer.
hasFrameAttribute - If the table has a frame attribute.
showModelChooser - If true then show the dialog panel for choosing the table model, one of CALS or HTML.
showSimpleModel - If true then show the simple model radio in the model chooser.
innerCalsTable - true if this is an inner calls table
Method Detail

configureShell

protected void configureShell(Shell newShell)
Configure Shell. Set a title to it.

Parameters:
newShell - The new shell.
See Also:
org.eclipse.jface.dialogs.Dialog#configureShell(org.eclipse.swt.widgets.Shell)

createDialogArea

protected Control createDialogArea(Composite parent)
Create Dialog area.

Parameters:
parent - The parent composite.
Returns:
The dialog control.

getFrameValues

protected abstract java.lang.String[] getFrameValues(int tableModel)
Compute the possible values for 'frame' attribute.

Parameters:
tableModel - The table model. One of the constants: TableInfo.TABLE_MODEL_CALS, TableInfo.TABLE_MODEL_CUSTOM, TableInfo.TABLE_MODEL_DITA_SIMPLE, TableInfo.TABLE_MODEL_HTML.
Returns:
Returns the possible values for 'frame' attribute.

getDefaultFrameValue

protected abstract java.lang.String getDefaultFrameValue(int tableModel)
Get the default frame value.

Parameters:
tableModel - The table model.
Returns:
The default frame value

getColumnWidthsSpecifications

protected abstract java.util.List<TableCustomizerConstants.ColumnWidthsType> getColumnWidthsSpecifications(int tableModel)
Compute the possible values for the column widths specifications.

Parameters:
tableModel - The table model. One of the constants: TableInfo.TABLE_MODEL_CALS, TableInfo.TABLE_MODEL_CUSTOM, TableInfo.TABLE_MODEL_DITA_SIMPLE, TableInfo.TABLE_MODEL_HTML.
Returns:
Returns the possible values for the column widths modifications.

createTitleCheckbox

protected abstract Button createTitleCheckbox(Composite parent)
Create a checkbox with an implementation specific title.

Parameters:
parent - The parent Composite.
Returns:
The title checkbox customized according to implementation.

showDialog

public TableInfo showDialog(TableInfo tableInfo)
Show the dialog to customize the table attributes.

Parameters:
tableInfo -
Returns:
The information about the table to be inserted, or null if the user canceled the table insertion.

Oxygen XML Editor 12.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.