net.sourceforge.gandalf
Class WizardFrame

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--net.sourceforge.gandalf.WizardFrame
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants, Wizard

public abstract class WizardFrame
extends javax.swing.JFrame
implements Wizard

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Inner classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Inner classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
protected  javax.swing.JPanel bottomPane
           
protected  javax.swing.JButton cancelButton
           
protected  boolean cancelFlag
           
protected  javax.swing.JPanel centerPane
           
protected static WizardData data
           
protected  javax.swing.JButton finishButton
           
protected  boolean finishFlag
           
protected static java.util.Stack frames
           
protected  java.awt.Dimension frameSize
           
protected  javax.swing.JLabel label1
           
protected  javax.swing.JLabel label2
           
protected  javax.swing.JButton nextButton
           
protected  boolean nextFlag
           
protected  javax.swing.JButton previousButton
           
protected  boolean previousFlag
           
protected  javax.swing.JPanel topPane
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
WizardFrame()
           
 
Method Summary
 void cancelAction()
           
abstract  void customize()
           
 void finishAction()
           
 WizardData getData()
           
 void nextAction()
           
 Wizard popFrame()
           
 void previousAction()
           
 void purgeFrames()
           
 void pushFrame(Wizard frame)
           
 void putData(java.lang.String key, java.lang.Object value)
           
 void setFrameLabel1(java.lang.String newLabel)
           
 void setFrameLabel1(java.lang.String newLabel, java.awt.Font font)
           
 void setFrameLabel2(java.lang.String newLabel)
           
 void setFrameLabel2(java.lang.String newLabel, java.awt.Font font)
           
 void setFrameSize(java.awt.Dimension d)
           
 void showCancelButton(boolean show)
           
 void showFinishButton(boolean show)
           
 void showNextButton(boolean show)
           
 void showPreviousButton(boolean show)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle
 
Methods inherited from class java.awt.Window
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, removeWindowListener, setCursor, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

data

protected static WizardData data

frames

protected static java.util.Stack frames

cancelFlag

protected boolean cancelFlag

nextFlag

protected boolean nextFlag

previousFlag

protected boolean previousFlag

finishFlag

protected boolean finishFlag

centerPane

protected javax.swing.JPanel centerPane

topPane

protected javax.swing.JPanel topPane

bottomPane

protected javax.swing.JPanel bottomPane

nextButton

protected javax.swing.JButton nextButton

cancelButton

protected javax.swing.JButton cancelButton

previousButton

protected javax.swing.JButton previousButton

finishButton

protected javax.swing.JButton finishButton

frameSize

protected java.awt.Dimension frameSize

label1

protected javax.swing.JLabel label1

label2

protected javax.swing.JLabel label2
Constructor Detail

WizardFrame

public WizardFrame()
Method Detail

getData

public WizardData getData()
Specified by:
getData in interface Wizard

putData

public void putData(java.lang.String key,
                    java.lang.Object value)
Specified by:
putData in interface Wizard

showCancelButton

public void showCancelButton(boolean show)
Specified by:
showCancelButton in interface Wizard

showNextButton

public void showNextButton(boolean show)
Specified by:
showNextButton in interface Wizard

showPreviousButton

public void showPreviousButton(boolean show)
Specified by:
showPreviousButton in interface Wizard

showFinishButton

public void showFinishButton(boolean show)
Specified by:
showFinishButton in interface Wizard

setFrameLabel1

public void setFrameLabel1(java.lang.String newLabel)
Specified by:
setFrameLabel1 in interface Wizard

setFrameLabel1

public void setFrameLabel1(java.lang.String newLabel,
                           java.awt.Font font)

setFrameLabel2

public void setFrameLabel2(java.lang.String newLabel)
Specified by:
setFrameLabel2 in interface Wizard

setFrameLabel2

public void setFrameLabel2(java.lang.String newLabel,
                           java.awt.Font font)

setFrameSize

public void setFrameSize(java.awt.Dimension d)

pushFrame

public void pushFrame(Wizard frame)
Specified by:
pushFrame in interface Wizard

popFrame

public Wizard popFrame()
Specified by:
popFrame in interface Wizard

purgeFrames

public void purgeFrames()
Specified by:
purgeFrames in interface Wizard

cancelAction

public void cancelAction()
Specified by:
cancelAction in interface Wizard

nextAction

public void nextAction()
Specified by:
nextAction in interface Wizard

previousAction

public void previousAction()
Specified by:
previousAction in interface Wizard

finishAction

public void finishAction()
Specified by:
finishAction in interface Wizard

customize

public abstract void customize()
Specified by:
customize in interface Wizard