Class WizardEvent


  • public class WizardEvent
    extends java.lang.Object
    Describes events that are fired by a WizardModel to a WizardListener.
    Since:
    3.0
    Author:
    Chris Jennings
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.JComponent getPage()
      Returns the page component referred to by the event, or null if no page is relevant.
      int getPageIndex()
      Returns the index of the page referred to by the event, or -1 if no page index is relevant.
      WizardModel getSource()
      Returns the model that fired the event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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, or null if no page is relevant.
        Returns:
        the page involved in the event, or null