|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.appframework.types.prefs.gui.PrefEditorWidgets
public class PrefEditorWidgets
Contains methods for creating widgets associated with Prefs.
| Field Summary | |
|---|---|
static java.lang.String |
IDENTIFIER_SPINNER
The string that will be added to the metapref's id, to create a unique identifier for a jComponent. |
| Constructor Summary | |
|---|---|
PrefEditorWidgets(MetaPrefSet metaPrefSet,
PrefSet prefSet,
ParsedURL savePrefsPURL)
The base function that you call to construct the prefs editor GUI. |
|
| Method Summary | |
|---|---|
void |
actionSavePreferences()
Save the preferences; called by #createApplyButton()
and #createSaveButton(). |
javax.swing.JPanel |
getJContentPane()
Get the jContentPane for the editor. |
void |
registerComponent(MetaPref mp,
java.lang.String labelAndName,
javax.swing.JComponent jComponent)
Registers a JComponent with the ObjectRegistry |
void |
stateChanged(javax.swing.event.ChangeEvent e)
This is for sliders; when we move the slider, we need to update the tooltip and force it to display. |
void |
updatePrefsFromWidgets()
Queries all widgets and updates their associated Prefs; this will cascade and cause each Pref to notify all PrefChangedListeners associated with Pref. |
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String IDENTIFIER_SPINNER
| Constructor Detail |
|---|
public PrefEditorWidgets(MetaPrefSet metaPrefSet,
PrefSet prefSet,
ParsedURL savePrefsPURL)
metaPrefSet - Set of MetaPrefsprefSet - Set of PrefssavePrefsPURL - ParsedURL to save prefs.xml toisStandalone - Whether or not we're calling this standalone| Method Detail |
|---|
public void registerComponent(MetaPref mp,
java.lang.String labelAndName,
javax.swing.JComponent jComponent)
mp - metapref we want to registerlabelAndName - label/name to add to the metapref's id to identify a
particular jComponent. must be UNIQUE.jComponent - jComponent to registerpublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenerpublic void updatePrefsFromWidgets()
public void actionSavePreferences()
#createApplyButton()
and #createSaveButton().
Saves the prefs to savePrefsPURL.
public javax.swing.JPanel getJContentPane()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||