org.jfree.ui
public class WizardDialog extends JDialog implements ActionListener
When the user backs up by one or more steps, the dialog keeps the completed steps so that they can be reused if the user doesn't change anything - this handles the cases where the user backs up a few steps just to review what has been completed.
But if the user changes some options in an earlier step, then the dialog may have to discard the later steps and have them repeated.
THIS CLASS IS NOT WORKING CORRECTLY YET.
Constructor Summary | |
---|---|
WizardDialog(JDialog owner, boolean modal, String title, WizardPanel firstPanel)
Standard constructor - builds and returns a new WizardDialog.
| |
WizardDialog(JFrame owner, boolean modal, String title, WizardPanel firstPanel)
Standard constructor - builds a new WizardDialog owned by the specified JFrame.
|
Method Summary | |
---|---|
void | actionPerformed(ActionEvent event)
Handles events.
|
boolean | canDoNextPanel()
Returns true if there is a 'next' panel, and false otherwise.
|
boolean | canDoPreviousPanel()
Returns true if it is possible to back up to the previous panel, and false otherwise.
|
boolean | canFinish()
Returns true if it is possible to finish the sequence at this point (possibly with defaults
for the remaining entries).
|
JPanel | createContent()
Creates a panel containing the user interface for the dialog.
|
void | finish()
Finishes the wizard. |
Object | getResult()
Returns the result of the wizard sequence.
|
int | getStepCount()
Returns the total number of steps in the wizard sequence, if this number is known. |
WizardPanel | getWizardPanel(int step)
Returns the panel for the specified step (steps are numbered from zero).
|
boolean | isCancelled()
Checks, whether the user cancelled the dialog.
|
void | next()
Displays the next step in the wizard sequence. |
void | previous()
Handles a click on the "previous" button, by displaying the previous panel in the sequence. |
Parameters: owner the owner. modal modal? title the title. firstPanel the first panel.
Parameters: owner the owner. modal modal? title the title. firstPanel the first panel.
Parameters: event the event.
Returns: boolean.
Returns: boolean.
Returns: boolean.
Returns: the panel.
Returns: the result.
Returns: the number of steps.
Parameters: step the current step.
Returns: the panel.
Returns: false.