|
||||||||||
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.crosswire.common.config.swing.AbstractConfigEditor
public abstract class AbstractConfigEditor
Page of a Config.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormNested 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 ActionListener |
al
Action when the user clicks on accept |
protected int |
cards
How many cards have we created - we only need a tree if there are 2 or more cards |
protected Config |
config
The class that represents the Fields that we display |
protected Map |
decks
A fast way to get at the configuration panels |
protected JDialog |
dialog
The dialog that we are displayed in |
protected Map |
fields
The set of fields that we are displaying |
private static Logger |
log
The log stream |
protected static ImageIcon |
TASK_ICON_LARGE
The large task icon |
protected static ImageIcon |
TASK_ICON_SMALL
The small task icon |
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 | |
---|---|
AbstractConfigEditor()
|
Method Summary | |
---|---|
protected void |
addChoice(String key,
Choice model)
Add a Choice to our set of panels |
void |
applyPressed(ActionEvent ev)
Someone has pressed apply |
void |
cancelPressed(ActionEvent ev)
Someone has pressed cancel |
void |
construct(Config aConfig)
The equivalent of a constructor, create a Config base with the set of Fields that it will display. |
protected void |
hideDialog()
Close any open dialogs |
protected abstract void |
initializeGUI()
Create the GUI |
protected void |
localToScreen()
Take the data in the local storage area and copy it on screen. |
void |
okPressed(ActionEvent ev)
Someone has pressed OK |
protected void |
removeChoice(String key,
Choice model)
Add a Choice to our set of panels |
protected void |
screenToLocal()
Take the data displayed on screen an copy it to the local storage area. |
void |
showDialog(Component parent,
ActionListener newal)
Create a dialog to house a TreeConfig component using the default set of Fields |
protected abstract void |
updateTree()
Update the tree structure |
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 static final Logger log
protected int cards
protected ActionListener al
protected Config config
protected JDialog dialog
protected Map decks
protected Map fields
protected static final ImageIcon TASK_ICON_LARGE
protected static final ImageIcon TASK_ICON_SMALL
Constructor Detail |
---|
public AbstractConfigEditor()
Method Detail |
---|
public void construct(Config aConfig)
ConfigEditor
construct
in interface ConfigEditor
aConfig
- The configurable settingspublic void showDialog(Component parent, ActionListener newal)
ConfigEditor
showDialog
in interface ConfigEditor
parent
- A component to use to find a frame to use as a dialog parentprotected abstract void initializeGUI()
protected abstract void updateTree()
public void okPressed(ActionEvent ev)
ButtonPaneListener
okPressed
in interface ButtonPaneListener
ev
- The button press eventpublic void cancelPressed(ActionEvent ev)
ButtonPaneListener
cancelPressed
in interface ButtonPaneListener
ev
- The button press eventpublic void applyPressed(ActionEvent ev)
ButtonPaneListener
applyPressed
in interface ButtonPaneListener
ev
- The button press eventprotected void addChoice(String key, Choice model)
protected void removeChoice(String key, Choice model)
protected void hideDialog()
protected void screenToLocal()
protected void localToScreen()
|
Copyright ? 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |