Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enhydra.tool.common
Class TBWizardDialog  view TBWizardDialog download TBWizardDialog.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byjavax.swing.JDialog
                      extended byorg.enhydra.tool.common.TBWizardDialog
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class TBWizardDialog
extends javax.swing.JDialog

The CodeGenDialog defines a default container for presenting wizards. To use this class you need to a create one or more CodeGenPage objects and add them to this dialog. This dialog supplies action buttons for the Previous, Next, Finish, Cancel and Help.

This class is used when creating a standalone wizard. Use the OpenTools BasicWizard when developing JBuilder add-ins.


Nested Class Summary
private  class TBWizardDialog.LocalButtonListener
          This inner class defines the actions for buttons in the wizard.
 
Nested classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.border.Border border
           
private  javax.swing.JButton buttonBack
           
private  javax.swing.JButton buttonCancel
           
private  javax.swing.JButton buttonFinish
           
private  javax.swing.JButton buttonHelp
           
private  TBWizardDialog.LocalButtonListener buttonListener
           
private  javax.swing.JButton buttonNext
           
private  int choice
           
static int CHOICE_CANCEL
          Indicates user choose to close the dialog with the Cancel button.
static int CHOICE_FINISH
          Indicates user choose to close the dialog with the Finish button.
private  TBWizardDeck deck
           
private  java.lang.String FILE_WIZARD_JPG
           
private  javax.swing.JLabel labelImage
           
private  java.awt.GridBagLayout layoutConstant
           
private  java.awt.BorderLayout layoutImage
           
private  java.awt.GridBagLayout layoutMain
           
private  javax.swing.JPanel panelConstant
           
private  javax.swing.JPanel panelFiller
           
private  javax.swing.JPanel panelImage
           
private  javax.swing.JPanel panelLine
           
private  javax.swing.JPanel panelMain
           
(package private) static java.util.ResourceBundle res
           
private static java.lang.String TITLE
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
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, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TBWizardDialog()
          Create a wizard dialog without a parent.
TBWizardDialog(java.awt.Dialog owner)
          Create a wizard dialog as a child of another dialog.
TBWizardDialog(java.awt.Frame owner)
          Create a wizard dialog as a child of a frame.
 
Method Summary
 void addWizardPage(TBWizardPage page)
          Add a page to the wizard.
 void clearAll()
          Clear all object references.
private  void closeDialog()
          Close the dialog and release swing references.
protected  void construct()
          Construct the object for either constructor.
protected  void finish()
          Method declaration
 int getChoice()
          Get the button choice that was used to close the dialog.
 TBWizardDeck getDeck()
           
 java.lang.String getWizardTitle()
          Get the title used for the caption bar.
protected  void help()
           
 boolean isHelpEnabled()
           
private  void jbInit()
          UI code generated by JBuilder.
protected  void next()
          Method declaration
private  void pmInit()
          Add listeners and other items that are not generated by the JBuilder designer.
 void setDeck(TBWizardDeck d)
           
 void setHelpEnabled(boolean b)
           
 void setWizardTitle(java.lang.String s)
          Set the title to use in the caption bar.
 void show()
          Overrides JDialog.show() to open the dialog in the center of the screen.
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getPreferredSize, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

res

static java.util.ResourceBundle res

FILE_WIZARD_JPG

private final java.lang.String FILE_WIZARD_JPG
See Also:
Constant Field Values

CHOICE_FINISH

public static final int CHOICE_FINISH
Indicates user choose to close the dialog with the Finish button.

See Also:
Constant Field Values

CHOICE_CANCEL

public static final int CHOICE_CANCEL
Indicates user choose to close the dialog with the Cancel button.

See Also:
Constant Field Values

TITLE

private static final java.lang.String TITLE

border

private transient javax.swing.border.Border border

buttonBack

private transient javax.swing.JButton buttonBack

buttonCancel

private transient javax.swing.JButton buttonCancel

buttonFinish

private transient javax.swing.JButton buttonFinish

buttonHelp

private transient javax.swing.JButton buttonHelp

buttonNext

private transient javax.swing.JButton buttonNext

deck

private transient TBWizardDeck deck

layoutImage

private transient java.awt.BorderLayout layoutImage

layoutConstant

private transient java.awt.GridBagLayout layoutConstant

layoutMain

private transient java.awt.GridBagLayout layoutMain

labelImage

private transient javax.swing.JLabel labelImage

panelConstant

private transient javax.swing.JPanel panelConstant

panelFiller

private transient javax.swing.JPanel panelFiller

panelImage

private transient javax.swing.JPanel panelImage

panelLine

private transient javax.swing.JPanel panelLine

panelMain

private transient javax.swing.JPanel panelMain

buttonListener

private transient TBWizardDialog.LocalButtonListener buttonListener

choice

private transient int choice
Constructor Detail

TBWizardDialog

public TBWizardDialog(java.awt.Dialog owner)
Create a wizard dialog as a child of another dialog.


TBWizardDialog

public TBWizardDialog(java.awt.Frame owner)
Create a wizard dialog as a child of a frame.


TBWizardDialog

public TBWizardDialog()
Create a wizard dialog without a parent.

Method Detail

show

public void show()
Overrides JDialog.show() to open the dialog in the center of the screen.


clearAll

public void clearAll()
Clear all object references.


getChoice

public int getChoice()
Get the button choice that was used to close the dialog.


getDeck

public TBWizardDeck getDeck()

setDeck

public void setDeck(TBWizardDeck d)

isHelpEnabled

public boolean isHelpEnabled()

setHelpEnabled

public void setHelpEnabled(boolean b)

getWizardTitle

public java.lang.String getWizardTitle()
Get the title used for the caption bar.


setWizardTitle

public void setWizardTitle(java.lang.String s)
Set the title to use in the caption bar.


addWizardPage

public void addWizardPage(TBWizardPage page)
Add a page to the wizard.


construct

protected void construct()
Construct the object for either constructor.


finish

protected void finish()
Method declaration


next

protected void next()
Method declaration


help

protected void help()

closeDialog

private void closeDialog()
Close the dialog and release swing references.


pmInit

private void pmInit()
             throws java.lang.Exception
Add listeners and other items that are not generated by the JBuilder designer.


jbInit

private void jbInit()
             throws java.lang.Exception
UI code generated by JBuilder.

Do not modify the signature of this method.