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
protected final class ModifyDialogTabPage.StringPreference extends ModifyDialogTabPage.Preference
Wrapper around a text field which requests a string input.- Since:
- 3.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classModifyDialogTabPage.StringPreference.ValidatorValidates the input.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringfOldSelectedprotected java.lang.StringfSelected
-
Constructor Summary
Constructors Constructor Description StringPreference(org.eclipse.swt.widgets.Composite composite, int numColumns, java.util.Map<java.lang.String,java.lang.String> preferences, java.lang.String key, java.lang.String text, org.eclipse.jface.dialogs.IInputValidator inputValidator)Creates a newStringPreference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfieldModified()protected voidfocusGained()protected voidfocusLost()org.eclipse.swt.widgets.ControlgetControl()Returns the main control of a preference, which is mainly used to manage the focus.protected voidupdateWidget()To be implemented in subclasses.-
Methods inherited from class org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage.Preference
getEnabled, getKey, getPreferences, setEnabled, setKey
-
-
-
-
Constructor Detail
-
StringPreference
public StringPreference(org.eclipse.swt.widgets.Composite composite, int numColumns, java.util.Map<java.lang.String,java.lang.String> preferences, java.lang.String key, java.lang.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'sGridLayoutpreferences- the map to store the values.key- the key to store the values.text- the label text for this Preference.inputValidator- the input validator ornullif none
-
-
Method Detail
-
focusGained
protected void focusGained()
-
focusLost
protected void focusLost()
-
fieldModified
protected void fieldModified()
-
updateWidget
protected void updateWidget()
Description copied from class:ModifyDialogTabPage.PreferenceTo be implemented in subclasses. Update the SWT widgets when the state of this object has changed (enabled, key, ...).- Specified by:
updateWidgetin classModifyDialogTabPage.Preference
-
getControl
public org.eclipse.swt.widgets.Control getControl()
Description copied from class:ModifyDialogTabPage.PreferenceReturns the main control of a preference, which is mainly used to manage the focus. This may benullif the preference doesn't have a control which is able to have the focus.- Specified by:
getControlin classModifyDialogTabPage.Preference- Returns:
- The main control
-
-