Package ca.cgjennings.ui.wizard
Class WizardEvent
- java.lang.Object
-
- ca.cgjennings.ui.wizard.WizardEvent
-
public class WizardEvent extends java.lang.ObjectDescribes events that are fired by aWizardModelto aWizardListener.- Since:
- 3.0
- Author:
- Chris Jennings
-
-
Constructor Summary
Constructors Constructor Description WizardEvent(WizardModel source)WizardEvent(WizardModel source, int index, javax.swing.JComponent page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponentgetPage()Returns the page component referred to by the event, ornullif no page is relevant.intgetPageIndex()Returns the index of the page referred to by the event, or -1 if no page index is relevant.WizardModelgetSource()Returns the model that fired the event.
-
-
-
Constructor Detail
-
WizardEvent
public WizardEvent(WizardModel source)
-
WizardEvent
public WizardEvent(WizardModel source, int index, javax.swing.JComponent page)
-
-
Method Detail
-
getSource
public WizardModel getSource()
Returns the model that fired the event.- Returns:
- the source of the event
-
getPageIndex
public int getPageIndex()
Returns the index of the page referred to by the event, or -1 if no page index is relevant.- Returns:
- the index of the page involved in the event, or -1
-
getPage
public javax.swing.JComponent getPage()
Returns the page component referred to by the event, ornullif no page is relevant.- Returns:
- the page involved in the event, or
null
-
-