JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

org.jpedal.examples.simpleviewer.gui.popups
Interface WizardPanelModel

All Known Implementing Classes:
SignWizardModel

public interface WizardPanelModel

In order to use the Wizard class you need to implement this interface. The implemented class will contain the contents of the user defined panels and add listeners to components that effect the ability to go to the next panel. See SignWizardModel.java for an example.


Method Summary
 boolean canAdvance()
           
 void close()
          This method can contain any housekeeping you require when the Wizard is exited.
 java.util.Map getJPanels()
          In order to use the Card Layout in the wizard class each JPanel must have a unique String identifier.
 java.lang.String getStartPanelID()
           
 boolean hasPrevious()
           
 boolean isFinishPanel()
           
 java.lang.String next()
           
 java.lang.String previous()
           
 void registerNextChangeListeners(javax.swing.event.ChangeListener e)
          A component that is registered will alert the Wizard class that it should check whether the advance button should be enabled.
 void registerNextKeyListeners(java.awt.event.KeyListener e)
          The same effect as registerNextChangeListeners(ChangeListener e) except applied to keys.
 

Method Detail

isFinishPanel

boolean isFinishPanel()
Returns:
true if the currently displayed panel requires a Finish box instead of a next box.

getStartPanelID

java.lang.String getStartPanelID()
Returns:
The unique ID String of the first JPanel to be shown

next

java.lang.String next()
Returns:
The ID of the JPanel that should be displayed if next is clicked.

previous

java.lang.String previous()
Returns:
The ID of the JPanel that should be displayed if previous is clicked.

close

void close()
This method can contain any housekeeping you require when the Wizard is exited.


hasPrevious

boolean hasPrevious()
Returns:
true if the current panel has a previous panel

canAdvance

boolean canAdvance()
Returns:
true if the current panel is able to advance.

getJPanels

java.util.Map getJPanels()
In order to use the Card Layout in the wizard class each JPanel must have a unique String identifier. ie HashMap

Returns:
A mapping of ID Strings to JPanels.

registerNextChangeListeners

void registerNextChangeListeners(javax.swing.event.ChangeListener e)
A component that is registered will alert the Wizard class that it should check whether the advance button should be enabled.

Parameters:
Alerts - Wizard that the registered component effects the Next button enable/disable status

registerNextKeyListeners

void registerNextKeyListeners(java.awt.event.KeyListener e)
The same effect as registerNextChangeListeners(ChangeListener e) except applied to keys.

Parameters:
Alerts - Wizard that the registered component effects the Next button enable/disable status

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support