|
||||||||||
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
org.crosswire.common.config.swing.WizardConfigEditor
public class WizardConfigEditor
A mutable view of Fields setting array.
A few of the ideas in this code came from an article in the JDJ about configuration. However the Config package has a number of huge differences, the biggest being what it does with its config info. The JDJ article assumed that you'd only ever want to edit a properties file and that the rest of the app didn't care much, and that the tree style view was the only one you would ever need. This package is a re-write that addresses these shortcomings and others.
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence
,
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 | |
---|---|
private ActionFactory |
actions
|
private static String |
BACK
|
private static String |
CANCEL
|
private JPanel |
deck
Contains the configuration panels |
private JButton |
finish
The Ok button |
private static String |
FINISH
|
private static String |
HELP
|
private CardLayout |
layout
Layout for the config panels |
private static Logger |
log
The log stream |
private List |
names
The list of path names |
private JButton |
next
The next button |
private static String |
NEXT
|
private int |
posn
The current position |
private static long |
serialVersionUID
Serialization ID |
private JLabel |
title
The title for the config panels |
private int |
wcards
The number of cards |
Fields inherited from class org.crosswire.common.config.swing.AbstractConfigEditor |
---|
al, cards, config, decks, dialog, fields, TASK_ICON_LARGE, TASK_ICON_SMALL |
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 | |
---|---|
WizardConfigEditor()
|
Method Summary | |
---|---|
void |
doWizardBack()
|
void |
doWizardCancel()
|
void |
doWizardFinish(ActionEvent ev)
|
void |
doWizardHelp()
|
void |
doWizardNext()
|
private JComponent |
getButtonPane()
A Config panel does not have buttons. |
protected void |
initializeGUI()
Danger - this method is not called by the TreeConfigEditor constructor, it is called by the AbstractConfigEditor constructor so any field initializers will be called AFTER THIS METHOD EXECUTES so don't use field initializers. |
private void |
move(int dirn)
Set a new card to be visible |
void |
showDialog(Component parent)
Create a dialog to house a TreeConfig component using the default set of Fields. |
protected void |
updateTree()
Now this wasn't created with JBuilder but maybe just maybe by calling my method this, JBuilder may grok it. |
Methods inherited from class org.crosswire.common.config.swing.AbstractConfigEditor |
---|
addChoice, applyPressed, cancelPressed, construct, hideDialog, localToScreen, okPressed, removeChoice, screenToLocal, showDialog |
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 String NEXT
private static final String CANCEL
private static final String FINISH
private static final String HELP
private static final String BACK
private ActionFactory actions
private int posn
private int wcards
private List names
private JLabel title
private JPanel deck
private CardLayout layout
private JButton finish
private JButton next
private static final Logger log
private static final long serialVersionUID
Constructor Detail |
---|
public WizardConfigEditor()
Method Detail |
---|
protected void initializeGUI()
initializeGUI
in class AbstractConfigEditor
protected void updateTree()
updateTree
in class AbstractConfigEditor
private JComponent getButtonPane()
public void doWizardCancel()
public void doWizardHelp()
public void doWizardBack()
public void doWizardNext()
public void doWizardFinish(ActionEvent ev)
private void move(int dirn)
public void showDialog(Component parent)
parent
- A component to use to find a frame to use as a dialog parent
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |