Enhydra 5.1 API

org.enhydra.tool.common.wizard
Class TBWizard

java.lang.Object
  |
  +--org.enhydra.tool.common.DialogHandler
        |
        +--org.enhydra.tool.common.wizard.TBWizard
All Implemented Interfaces:
java.util.EventListener, FirstFocusListener
Direct Known Subclasses:
ArchiveWizard, CodeGenWizard

public abstract class TBWizard
extends DialogHandler
implements FirstFocusListener

The TBWizardDialog defines a default container for presenting wizards. To use this class you need to a create one or more TBWizardPage 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.


Field Summary
 
Fields inherited from class org.enhydra.tool.common.DialogHandler
res
 
Constructor Summary
TBWizard()
          Create a wizard dialog as a child of another dialog.
 
Method Summary
 void addWizardPage(TBWizardPage page)
          Add a page to the wizard.
 void back()
           
 void cancel()
           
protected  void clearAll()
          Clear all object references.
 java.awt.event.ActionListener createButtonListener()
           
 void finish()
           
 ButtonPanel getButtonPanel()
           
 TBWizardDeck getDeck()
           
 InnerPanel getInnerPanel()
           
 javax.swing.Icon getLargeIcon()
           
 void next()
           
 void onFirstFocus(FirstFocusEvent event)
           
 void refreshButtons()
           
 void setDeck(TBWizardDeck d)
           
 void setLargeIcon(javax.swing.Icon icon)
           
 
Methods inherited from class org.enhydra.tool.common.DialogHandler
addHelpListener, closeWindow, getOption, getProgressMeter, getProgressTitle, getTitle, notifyHelpListeners, openProgress, removeHelpListener, setOption, showAbout, showDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TBWizard

public TBWizard()
Create a wizard dialog as a child of another dialog.

Method Detail

onFirstFocus

public void onFirstFocus(FirstFocusEvent event)
Specified by:
onFirstFocus in interface FirstFocusListener

clearAll

protected void clearAll()
Clear all object references.

Overrides:
clearAll in class DialogHandler

getDeck

public TBWizardDeck getDeck()

setDeck

public void setDeck(TBWizardDeck d)

createButtonListener

public java.awt.event.ActionListener createButtonListener()
Specified by:
createButtonListener in class DialogHandler

getButtonPanel

public ButtonPanel getButtonPanel()
Specified by:
getButtonPanel in class DialogHandler

getInnerPanel

public InnerPanel getInnerPanel()
Specified by:
getInnerPanel in class DialogHandler

setLargeIcon

public void setLargeIcon(javax.swing.Icon icon)

getLargeIcon

public javax.swing.Icon getLargeIcon()

addWizardPage

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

Parameters:
page - A panel that contains swing controls that are specific to the current wizard.

back

public void back()

next

public void next()

finish

public void finish()

cancel

public void cancel()

refreshButtons

public void refreshButtons()

Enhydra 5.1 API