Class AbstractDialogMultiColTable
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialog
org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialogMultiColTable
- All Implemented Interfaces:
StandardStrings
,org.eclipse.jface.window.IShellProvider
,org.eclipse.swt.widgets.Listener
- Direct Known Subclasses:
AddCapabilityFeatureDialog
,AddCapabilityTypeDialog
The Class AbstractDialogMultiColTable.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
The enable col 1.protected boolean
The enable col 2.protected int
The number checked.protected static final String
The Constant UNCHECKED.Fields inherited from class org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialog
dialogDescription, editor, errorMessageUI, okButton, section, stringArray0, title
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
Fields inherited from interface org.apache.uima.taeconfigurator.StandardStrings
S_, S_ADD, S_DESCRIPTION, S_DOWN, S_DOWN_TIP, S_EDIT, S_EDIT_TIP, S_EXPORT, S_EXPORT_TIP, S_REMOVE, S_REMOVE_TIP, S_UP, S_UP_TIP
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractDialogMultiColTable
(AbstractSection aSection, String title, String description) Instantiates a new abstract dialog multi col table. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
checkedIndicator
(int col) Checked indicator.void
enableOK()
Enable OK.void
handleEvent
(org.eclipse.swt.widgets.Event event) boolean
isValid()
Checks if is valid.protected void
setChecked
(org.eclipse.swt.widgets.TableItem item, int col, boolean value) Sets the checked.protected void
setChecked
(org.eclipse.swt.widgets.TreeItem item, int col, boolean value) Sets the checked.protected void
toggleValue
(org.eclipse.swt.widgets.TableItem item, int col) Toggle value.protected void
toggleValue
(org.eclipse.swt.widgets.TreeItem item, int col) Toggle value.Methods inherited from class org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialog
buttonPressed, configureShell, convertNull, copyValuesFromGUI, createButtonBar, createButtonsForButtonBar, createDialogArea, createDialogArea, createWideLabel, getAllTypesAsSortedArray, getHitColumn, getTypeSystemInfoList, new2ColumnComposite, newButton, newButtonContainer, newCCombo, newDescription, newErrorMessage, newErrorMessage, newLabeledCCombo, newLabeledText, newLabeledTypeInput, newPushButton, newTable, newText, newTree, newTypeInput, nullIf0lengthString, setErrorMessage, setMessage, setTextAndTip, setTextAndTip, setTextAndTip, setTextAndTip, setTitle, superButtonPressed, textModifyCallback, typeContainedInTypeSystemInfoList, useQualifiedTypes
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, 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, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Field Details
-
UNCHECKED
The Constant UNCHECKED.- See Also:
-
enableCol1
protected boolean enableCol1The enable col 1. -
enableCol2
protected boolean enableCol2The enable col 2. -
numberChecked
protected int numberCheckedThe number checked.
-
-
Constructor Details
-
AbstractDialogMultiColTable
Instantiates a new abstract dialog multi col table.- Parameters:
aSection
- the a sectiontitle
- the titledescription
- the description
-
-
Method Details
-
checkedIndicator
Checked indicator.- Parameters:
col
- the col- Returns:
- the string
-
handleEvent
public void handleEvent(org.eclipse.swt.widgets.Event event) - Specified by:
handleEvent
in interfaceorg.eclipse.swt.widgets.Listener
- Overrides:
handleEvent
in classAbstractDialog
-
toggleValue
protected void toggleValue(org.eclipse.swt.widgets.TableItem item, int col) Toggle value.- Parameters:
item
- the itemcol
- the col
-
toggleValue
protected void toggleValue(org.eclipse.swt.widgets.TreeItem item, int col) Toggle value.- Parameters:
item
- the itemcol
- the col
-
isValid
public boolean isValid()Description copied from class:AbstractDialog
Checks if is valid.- Specified by:
isValid
in classAbstractDialog
- Returns:
- true, if is valid
-
enableOK
public void enableOK()Description copied from class:AbstractDialog
Enable OK.- Specified by:
enableOK
in classAbstractDialog
-
setChecked
protected void setChecked(org.eclipse.swt.widgets.TableItem item, int col, boolean value) Sets the checked.- Parameters:
item
- the itemcol
- the colvalue
- the value
-
setChecked
protected void setChecked(org.eclipse.swt.widgets.TreeItem item, int col, boolean value) Sets the checked.- Parameters:
item
- the itemcol
- the colvalue
- the value
-