|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.persistent.wizard.JWizardPageTraversal
com.persistent.wizard.JWizard
This is to Create a Dialog to show the wizard.
Field Summary | |
java.lang.String |
presentPage
|
Constructor Summary | |
JWizard(javax.swing.JFrame frame,
java.lang.String wizardName)
|
|
JWizard(javax.swing.JFrame frame,
java.lang.String wizardName,
java.awt.Dimension dimension)
User is allowed to specify his dimentions to resize Wizard. |
|
JWizard(java.lang.String wizardName)
This is used to create default frame whose size dimentions are 600px X 600 px. |
|
JWizard(java.lang.String wizardName,
java.awt.Dimension dimension)
Creates default JFrame object but allows user to set dimentions of Wizard. |
Method Summary | |
boolean |
addPage(JPage pageToAdd,
java.lang.String name)
This is to add pages to wizard. |
boolean |
canFinish()
|
JPage |
getNextPage()
returns the Next page to be displayed. |
JPage |
getPageByNumber(int number)
Returns the page with the provided page number. |
JPage |
getPresentPage()
This returns the present page displayed in the Wizard. |
java.lang.String |
getPresentPageName()
Return the name of the page which is displayed in wizard. |
JPage |
getPreviousPage()
Returns the previous page . |
void |
performCancel()
|
void |
performFinish()
|
void |
showDialog()
Once you have added all pages you want to display to the wizard you have to call this to make the wizard visible. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String presentPage
Constructor Detail |
public JWizard(javax.swing.JFrame frame, java.lang.String wizardName)
frame
- any JFrame object with whatever properties you want to set for this frame.wizardName
- Name of the wizard. This is displayed as the frame/dialog name.public JWizard(java.lang.String wizardName)
wizardName
- Name of the wizard. This is displayed as the frame/dialog name.public JWizard(java.lang.String wizardName, java.awt.Dimension dimension)
wizardName
- Name of the wizard. This is displayed as the frame/dialog name.dimension
- Dimentions of the wizard. eg(600pixel X 600pixel)public JWizard(javax.swing.JFrame frame, java.lang.String wizardName, java.awt.Dimension dimension)
frame
- JFrame object on which you want this wizard to be shown.wizardName
- Name of the wizard. This is displayed as the frame/dialog name.dimension
- Dimentions of the wizard. eg(600pixel X 600pixel)Method Detail |
public void showDialog()
public boolean addPage(JPage pageToAdd, java.lang.String name)
pageToAdd
- This is object of class extending JPage. This is a page to add to wizard.name
- provide a name to a page to be added.
public JPage getNextPage()
getNextPage
in interface com.persistent.wizard.WizardFunction
public JPage getPreviousPage()
getPreviousPage
in interface com.persistent.wizard.WizardFunction
public JPage getPageByNumber(int number)
number
-
public JPage getPresentPage()
public java.lang.String getPresentPageName()
public boolean canFinish()
public void performFinish()
public void performCancel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |