com.aptana.ide.ui.editors.preferences.formatter
Class ModifyDialogTabPage.NumberPreference
java.lang.Object
java.util.Observable
com.aptana.ide.ui.editors.preferences.formatter.ModifyDialogTabPage.Preference
com.aptana.ide.ui.editors.preferences.formatter.ModifyDialogTabPage.NumberPreference
- Enclosing class:
- ModifyDialogTabPage
public final class ModifyDialogTabPage.NumberPreference
- extends ModifyDialogTabPage.Preference
Wrapper around a textfied which requests an integer input of a given range.
|
Constructor Summary |
ModifyDialogTabPage.NumberPreference(org.eclipse.swt.widgets.Composite composite,
int numColumns,
java.util.Map preferences,
java.lang.String key,
int minValue,
int maxValue,
java.lang.String text)
Create a new NumberPreference. |
|
Method Summary |
protected void |
fieldModified()
|
protected void |
focusGained()
|
protected void |
focusLost()
|
org.eclipse.swt.widgets.Control |
getControl()
Returns the main control of a preference, which is mainly used to
manage the focus. |
void |
updateWidget()
To be implemented in subclasses. |
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fSelected
protected int fSelected
fOldSelected
protected int fOldSelected
ModifyDialogTabPage.NumberPreference
public ModifyDialogTabPage.NumberPreference(org.eclipse.swt.widgets.Composite composite,
int numColumns,
java.util.Map preferences,
java.lang.String key,
int minValue,
int maxValue,
java.lang.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.
focusGained
protected void focusGained()
focusLost
protected void focusLost()
fieldModified
protected void fieldModified()
updateWidget
public 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 class ModifyDialogTabPage.Preference
- See Also:
ModifyDialogTabPage.Preference.updateWidget()
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 be
null if the preference doesn't
have a control which is able to have the focus.
- Specified by:
getControl in class ModifyDialogTabPage.Preference
- Returns:
- The main control
- See Also:
ModifyDialogTabPage.Preference.getControl()