Class ModifyDialogTabPage.NumberPreference
java.lang.Object
java.util.Observable
org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage.Preference
org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage.NumberPreference
- Enclosing class:
ModifyDialogTabPage
Wrapper around a textfied which requests an integer input of a given range.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidorg.eclipse.swt.widgets.ControlReturns the main control of a preference, which is mainly used to manage the focus.protected voidTo be implemented in subclasses.Methods inherited from class org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage.Preference
getEnabled, getKey, getPreferences, setEnabled, setKeyMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
fSelected
protected int fSelected -
fOldSelected
protected int fOldSelected
-
-
Constructor Details
-
NumberPreference
public NumberPreference(org.eclipse.swt.widgets.Composite composite, int numColumns, Map<String, String> preferences, String key, int minValue, int maxValue, String text) Create a new NumberPreference.- Parameters:
composite- The composite on which the SWT widgets are added.numColumns- The number of columns in the composite's GridLayout.preferences- The map to store the values.key- The key to store the values.minValue- The minimum value which is valid input.maxValue- The maximum value which is valid input.text- The label text for this Preference.
-
-
Method Details
-
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
-