|
|||||||||
| 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
verinec.gui.core.ConfigPanel
public abstract class ConfigPanel
Config panels are placed inside the configuration dialog panels.
| Nested Class Summary |
|---|
| 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 Document |
config
The configuration for this module in XML format. |
private Document |
defConfig
The default configuration. |
private String |
dispname
Name to display in the dialog tab. |
protected IConfigurable |
parent
The module this config panel is to configure. |
| 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 | |
|---|---|
ConfigPanel(String name,
IConfigurable parent,
Document config)
Instantiate the panel. |
|
ConfigPanel(String dispname,
IConfigurable parent,
Document config,
LayoutManager layout)
Instantiate the panel. |
|
| Method Summary | |
|---|---|
String |
getName()
Get the name to display in the config dialog tab. |
void |
reset()
Reset the configuration display to what has been in the module. |
void |
save()
Save the displayed configuration into the module. |
abstract void |
updateConfig()
Update the config document from new dialog settings. |
abstract void |
updateDialog()
Update the dialog fields with the config document. |
| 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 |
|---|
private String dispname
protected IConfigurable parent
protected Document config
private final Document defConfig
| Constructor Detail |
|---|
public ConfigPanel(String dispname,
IConfigurable parent,
Document config,
LayoutManager layout)
dispname - The name to display in the dialog tab.parent - Module this config panel is for.config - The default configuration XML data.layout - Layout to pass to the JPanel.
public ConfigPanel(String name,
IConfigurable parent,
Document config)
name - The name to display in the dialog tab.parent - Module this config panel is for.config - The default configuration XML data.| Method Detail |
|---|
public String getName()
getName in class Componentpublic void save()
updateConfig() to update the config document and then
calls IConfigurable.saveConfiguration(Document).
public void reset()
updateDialog() to display the config.
todo: How to reset to system default?
public abstract void updateConfig()
config document from new dialog settings.
If a setting is invalid, should display a query dialog. If the issue
can not be solved, do not update the configuration.
public abstract void updateDialog()
config member variable.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||