|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.ceryle.ui.prefs.PreferencePanel
public abstract class PreferencePanel
An abstract class extending JPanel to provide a base class for preferences panels. The panel uses a BorderLayout whose north region is devoted to title information, with the south region used for a button panel, so all preference components should appear in the center region.
| Nested Class Summary | |
|---|---|
class |
PreferencePanel.RadioListener
The listener class to handle radio button events. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected String |
m_desc
|
protected PreferencesDialog |
m_pd
|
protected PreferencePanel |
m_this
|
protected String |
m_title
|
protected MessageHandler |
mh
|
protected PropertyManager |
pm
|
protected Services |
srvs
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PreferencePanel(PreferencesDialog prefDialog,
String title)
Constructor for an PreferencePanel, with reference to the parent PreferencesDialog prefDlog and a String title. |
|
PreferencePanel(PreferencesDialog prefDialog,
String title,
String description)
Constructor for an PreferencePanel, with reference to the parent PreferencesDialog prefDlog, a String title, and an optional String description. |
|
| Method Summary | |
|---|---|
protected PreferencesDialog |
getPrefsDialog()
Return the parent PreferencesDialog. |
protected void |
initialize()
Initializes this PreferencePanel. |
boolean |
isDirty()
Returns true if an unsaved change has been made to a preference managed by this PreferencePanel. |
protected boolean |
isInitialized()
Returns true if initialized. |
void |
refresh()
Refresh any components upon displaying this panel. |
protected void |
savePreference()
Saves any changes in this PreferencePanel to the properties file. |
protected void |
setDirty(boolean dirty)
When true, indicates that an unsaved change has been made to one of the preferences managed by this PreferencePanel. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String m_title
protected String m_desc
protected PreferencesDialog m_pd
protected Services srvs
protected MessageHandler mh
protected PropertyManager pm
protected PreferencePanel m_this
| Constructor Detail |
|---|
public PreferencePanel(PreferencesDialog prefDialog,
String title)
prefDialog - the parent PreferencesDialog.title - the title of the preference or preference group.
public PreferencePanel(PreferencesDialog prefDialog,
String title,
String description)
Generally, content should be added to this Panel's center region, rather than using its east or west regions.
prefDialog - the parent PreferencesDialog.title - the title of the preference or preference group.description - the optional description for this panel.| Method Detail |
|---|
protected void initialize()
protected PreferencesDialog getPrefsDialog()
protected final boolean isInitialized()
initialize() and
then call super.initialize() when done.
public void refresh()
public boolean isDirty()
protected final void setDirty(boolean dirty)
protected void savePreference()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||