com.bws42.wizard.example
Class ExampleWizardFactory

java.lang.Object
  extended bycom.bws42.wizard.example.ExampleWizardFactory
All Implemented Interfaces:
Multilingual, WizardFactory

public final class ExampleWizardFactory
extends Object
implements WizardFactory

An example WizardFactory that supplies only one panel.

Version:
1.0, October 4, 2006
Author:
William P. Roberts, IV

Constructor Summary
ExampleWizardFactory()
          Creates a new ExampleWizardFactory.
 
Method Summary
 WizardPanel getPanel(WizardObject obj)
          Returns the appropriate panel given the Wizard's current position.
 WizardPanel getStartPanel()
          Returns the start panel for this wizard.
 void setLanguageLoader(LanguageLoader lang)
          This method allows your program to change the language of all the panels in the wizard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleWizardFactory

public ExampleWizardFactory()
Creates a new ExampleWizardFactory.

Method Detail

getPanel

public WizardPanel getPanel(WizardObject obj)
Returns the appropriate panel given the Wizard's current position.

Specified by:
getPanel in interface WizardFactory
Parameters:
obj - the WizardObject used to find the appropriate panel
Returns:
the appropriate panel given the Wizard's current position

getStartPanel

public WizardPanel getStartPanel()
Returns the start panel for this wizard.

Specified by:
getStartPanel in interface WizardFactory
Returns:
the start panel for this wizard

setLanguageLoader

public void setLanguageLoader(LanguageLoader lang)
This method allows your program to change the language of all the panels in the wizard. Simply calling this with a different Language Loader will cause panels to be displayed with that language if available.

Specified by:
setLanguageLoader in interface Multilingual
Parameters:
lang - the new LanguageLoader