Class ModifyDialogTabPage.StringPreference
java.lang.Object
java.util.Observable
org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage.Preference
org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage.StringPreference
- Enclosing class:
- ModifyDialogTabPage
Wrapper around a text field which requests a string input.
- Since:
- 3.6
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Validates the input. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
org.eclipse.swt.widgets.Control
Returns the main control of a preference, which is mainly used to manage the focus.protected void
To be implemented in subclasses.Methods inherited from class org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage.Preference
getEnabled, getKey, getPreferences, setEnabled, setKey
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
fSelected
-
fOldSelected
-
-
Constructor Details
-
StringPreference
public StringPreference(org.eclipse.swt.widgets.Composite composite, int numColumns, Map<String, String> preferences, String key, String text, org.eclipse.jface.dialogs.IInputValidator inputValidator) Creates a newStringPreference
.- Parameters:
composite
- the composite on which the SWT widgets are added.numColumns
- the number of columns in the composite'sGridLayout
preferences
- the map to store the values.key
- the key to store the values.text
- the label text for this Preference.inputValidator
- the input validator ornull
if none
-
-
Method Details
-
focusGained
protected void focusGained() -
focusLost
protected void focusLost() -
fieldModified
protected void fieldModified() -
updateWidget
protected void updateWidget()Description copied from class:ModifyDialogTabPage.Preference
To be implemented in subclasses. Update the SWT widgets when the state of this object has changed (enabled, key, ...).- Specified by:
updateWidget
in classModifyDialogTabPage.Preference
-
getControl
public org.eclipse.swt.widgets.Control getControl()Description copied from class:ModifyDialogTabPage.Preference
Returns the main control of a preference, which is mainly used to manage the focus. This may benull
if the preference doesn't have a control which is able to have the focus.- Specified by:
getControl
in classModifyDialogTabPage.Preference
- Returns:
- The main control
-