Class CommonInputDialog
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.AbstractDialogKeyVerify
org.apache.uima.taeconfigurator.editors.ui.dialogs.CommonInputDialog
- All Implemented Interfaces:
EventListener
,StandardStrings
,org.eclipse.jface.window.IShellProvider
,org.eclipse.swt.custom.VerifyKeyListener
,org.eclipse.swt.internal.SWTEventListener
,org.eclipse.swt.widgets.Listener
The Class CommonInputDialog.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The Constant ALLOK.static final int
The Constant DOTTED_NAME.static final int
The Constant FLOAT.static final int
The Constant GROUP_NAMES.static final int
The Constant INTEGER.static final int
The Constant LANGUAGE.static final int
The Constant PLAIN_NAME.static final int
The Constant SPACED_NAMES.static final int
The Constant TRUE_FALSE.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
ConstructorDescriptionCommonInputDialog
(AbstractSection aSection, String title, String dialogDescription, int aKind) Instantiates a new common input dialog.CommonInputDialog
(AbstractSection aSection, String title, String dialogDescription, int aKind, String aExisting) Instantiates a new common input dialog. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Copy values from GUI.protected org.eclipse.swt.widgets.Control
createDialogArea
(org.eclipse.swt.widgets.Composite parent) void
enableOK()
Enable OK.getValue()
Gets the value.boolean
isValid()
Checks if is valid.boolean
verifyKeyChecks
(org.eclipse.swt.events.VerifyEvent event) Default verify key checks.Methods inherited from class org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialogKeyVerify
newLabeledSingleLineStyledText, newSingleLineStyledText, verifyKey
Methods inherited from class org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialog
buttonPressed, configureShell, convertNull, createButtonBar, createButtonsForButtonBar, createDialogArea, createWideLabel, getAllTypesAsSortedArray, getHitColumn, getTypeSystemInfoList, handleEvent, 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
-
PLAIN_NAME
public static final int PLAIN_NAMEThe Constant PLAIN_NAME.- See Also:
-
DOTTED_NAME
public static final int DOTTED_NAMEThe Constant DOTTED_NAME.- See Also:
-
SPACED_NAMES
public static final int SPACED_NAMESThe Constant SPACED_NAMES.- See Also:
-
LANGUAGE
public static final int LANGUAGEThe Constant LANGUAGE.- See Also:
-
ALLOK
public static final int ALLOKThe Constant ALLOK.- See Also:
-
TRUE_FALSE
public static final int TRUE_FALSEThe Constant TRUE_FALSE.- See Also:
-
INTEGER
public static final int INTEGERThe Constant INTEGER.- See Also:
-
FLOAT
public static final int FLOATThe Constant FLOAT.- See Also:
-
GROUP_NAMES
public static final int GROUP_NAMESThe Constant GROUP_NAMES.- See Also:
-
-
Constructor Details
-
CommonInputDialog
public CommonInputDialog(AbstractSection aSection, String title, String dialogDescription, int aKind) Instantiates a new common input dialog.- Parameters:
aSection
- the a sectiontitle
- the titledialogDescription
- the dialog descriptionaKind
- the a kind
-
CommonInputDialog
public CommonInputDialog(AbstractSection aSection, String title, String dialogDescription, int aKind, String aExisting) Instantiates a new common input dialog.- Parameters:
aSection
- the a sectiontitle
- the titledialogDescription
- the dialog descriptionaKind
- the a kindaExisting
- the a existing
-
-
Method Details
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogArea
in classAbstractDialog
-
verifyKeyChecks
public boolean verifyKeyChecks(org.eclipse.swt.events.VerifyEvent event) Description copied from class:AbstractDialogKeyVerify
Default verify key checks.- Overrides:
verifyKeyChecks
in classAbstractDialogKeyVerify
- Parameters:
event
- the event- Returns:
- true, if successful
-
getValue
Gets the value.- Returns:
- the value
-
enableOK
public void enableOK()Description copied from class:AbstractDialog
Enable OK.- Specified by:
enableOK
in classAbstractDialog
-
copyValuesFromGUI
public void copyValuesFromGUI()Description copied from class:AbstractDialog
Copy values from GUI.- Specified by:
copyValuesFromGUI
in classAbstractDialog
-
isValid
public boolean isValid()Description copied from class:AbstractDialog
Checks if is valid.- Specified by:
isValid
in classAbstractDialog
- Returns:
- true, if is valid
-