|
||||||||||
| 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
ecologylab.appframework.types.prefs.gui.PrefsEditor
public class PrefsEditor
Create the GUI for preference editing; also responsible for all actions associated with the GUI.
| Field Summary |
|---|
| Fields inherited from class ecologylab.appframework.types.prefs.gui.PrefEditorWidgets |
|---|
IDENTIFIER_SPINNER, jCatComponentsMap, jContentPane, metaPrefSet, prefSet, RIGHT_GUI_INSET, savePrefsPURL, TEXT_FIELD_PADDING |
| Constructor Summary | |
|---|---|
PrefsEditor(MetaPrefSet metaPrefSet,
PrefSet prefSet,
ParsedURL savePrefsPURL,
boolean createJFrame,
boolean isStandalone)
The base function that you call to construct the prefs editor GUI. |
|
| Method Summary | |
|---|---|
protected javax.swing.JRadioButton |
createRadio(javax.swing.JPanel panel,
MetaPref mp,
javax.swing.ButtonGroup buttonGroup,
boolean initialValue,
java.lang.String label,
java.lang.String name,
int row,
int col)
Creates a radio button. |
static void |
setupColorChooser(javax.swing.JPanel jPanel,
MetaPref mp)
Creates a color chooser dialog for a color chooser metapref and places it on the panel. |
java.awt.Container |
setupContainer(boolean createJFrame,
boolean isStandalone)
Calls createJFrame |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
Altered behavior: print that we are closing save our window location |
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| Methods inherited from class ecologylab.appframework.types.prefs.gui.PrefEditorWidgets |
|---|
actionSavePreferences, createCheckBox, createDropDown, createSlider, createSpinner, createTextField, getJContentPane, jCatComponentsMap, lookupComponent, registerComponent, savePrefs, stateChanged, updatePrefsFromWidgets |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrefsEditor(MetaPrefSet metaPrefSet,
PrefSet prefSet,
ParsedURL savePrefsPURL,
boolean createJFrame,
boolean isStandalone)
metaPrefSet - Set of MetaPrefsprefSet - Set of PrefssavePrefsPURL - ParsedURL to save prefs.xml toisStandalone - Whether or not we're calling this standalone| Method Detail |
|---|
public java.awt.Container setupContainer(boolean createJFrame,
boolean isStandalone)
#createJFrame()
public static void setupColorChooser(javax.swing.JPanel jPanel,
MetaPref mp)
jPanel - panel the dialog will be associated withmp - metapref the chooser is being created forpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListener
protected javax.swing.JRadioButton createRadio(javax.swing.JPanel panel,
MetaPref mp,
javax.swing.ButtonGroup buttonGroup,
boolean initialValue,
java.lang.String label,
java.lang.String name,
int row,
int col)
panel - JPanel this button will be associated with.mp - MetaPref this button is being created for.buttonGroup - ButtonGroup this button is a member of.initialValue - boolean; true=selected. false=not selected.label - Text label for buttonname - Name of buttonrow - Row this button is in for GridBagLayoutcol - Column this button is in for GridBagLayout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||