|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCombo
eu.geclipse.ui.widgets.StoredCombo
public class StoredCombo
The StoredCombo is a extension of the org.eclipse.swt.widgets.Combo
that provides functionality for storing the entered values in a preference store
and restoring these values the next time a StoredCombo is initialized with the same
preference ID.
| Constructor Summary | |
|---|---|
StoredCombo(Composite parent,
int style)
Construct a new StoredCombo. |
|
| Method Summary | |
|---|---|
void |
addUnique(java.lang.String newEntry)
Adds the given entry to the combo list if it doesn't exist yet. |
void |
purgeAll()
Removes all entries form the combo list and empties the IPreferenceStore. |
boolean |
setDefaultItem(java.lang.String defaultItem)
Set the item that is displayed as default. |
void |
setPreferences(IPreferenceStore preferenceStore,
java.lang.String preferenceID)
Set the preferences of this StoredCombo. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StoredCombo(Composite parent,
int style)
StoredCombo.
parent - The parent of this StoredCombo.style - The style of this StoredCombo.| Method Detail |
|---|
public void setPreferences(IPreferenceStore preferenceStore,
java.lang.String preferenceID)
StoredCombo. This method initialises the
Combo with the values that were found in the specified preference store with the
help of the specified ID.
preferenceStore - The preference store to query for the initial settings. This preference
store is also used to store the values when the combo is disposed.preferenceID - public boolean setDefaultItem(java.lang.String defaultItem)
defaultItem - The item that should be set as default.
public void addUnique(java.lang.String newEntry)
newEntry - the new entry to add to the combo list.public void purgeAll()
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||