|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.aptana.ide.ui.editors.preferences.formatter.ModifyDialogTabPage.Preference
public abstract class ModifyDialogTabPage.Preference
The base class of all Preference classes. A preference class provides a wrapper around one or more SWT widgets and handles the input of values for some key. On each change, the new value is written to the map and the listeners are notified.
| Constructor Summary | |
|---|---|
ModifyDialogTabPage.Preference(java.util.Map preferences,
java.lang.String key)
Create a new Preference. |
|
| Method Summary | |
|---|---|
abstract org.eclipse.swt.widgets.Control |
getControl()
Returns the main control of a preference, which is mainly used to manage the focus. |
boolean |
getEnabled()
|
java.lang.String |
getKey()
|
protected java.util.Map |
getPreferences()
|
void |
setEnabled(boolean enabled)
Set the enabled state of all SWT widgets of this preference. |
void |
setKey(java.lang.String key)
Set the key which is used to store the value. |
protected abstract 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 |
| Constructor Detail |
|---|
public ModifyDialogTabPage.Preference(java.util.Map preferences,
java.lang.String key)
preferences - The map where the value is written.key - The key for which a value is managed.| Method Detail |
|---|
protected final java.util.Map getPreferences()
public final void setEnabled(boolean enabled)
enabled - new valuepublic final boolean getEnabled()
public final void setKey(java.lang.String key)
key - New valuepublic final java.lang.String getKey()
public abstract org.eclipse.swt.widgets.Control getControl()
null if the preference doesn't
have a control which is able to have the focus.
protected abstract void updateWidget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||