Class WizardEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class WizardEvent
    extends java.util.EventObject
    The event object for Wizard pages.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean allowChange  
      protected java.awt.Component currentPage  
      protected boolean isLastPage  
      protected java.awt.Component newPage  
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      WizardEvent​(java.lang.Object source, java.awt.Component current_page, java.awt.Component new_page, boolean is_last_page, boolean allow_change)  
    • Method Summary

      Modifier and Type Method Description
      boolean getAllowChange()
      Returns whether the event should be allowed to finish processing.
      java.awt.Component getCurrentPage()
      Returns the current page on which the JCWizardEvent occured.
      java.awt.Component getNewPage()
      Returns the next page.
      boolean isLastPage()
      Returns whether the page is the last page.
      void setAllowChange​(boolean v)
      Sets whether the event should be allowed to finish processing.
      void setNewPage​(java.awt.Component p)
      Sets the next page.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • currentPage

        protected java.awt.Component currentPage
      • newPage

        protected java.awt.Component newPage
      • isLastPage

        protected boolean isLastPage
      • allowChange

        protected boolean allowChange
    • Constructor Detail

      • WizardEvent

        public WizardEvent​(java.lang.Object source,
                           java.awt.Component current_page,
                           java.awt.Component new_page,
                           boolean is_last_page,
                           boolean allow_change)
    • Method Detail

      • isLastPage

        public boolean isLastPage()
        Returns whether the page is the last page.
        Returns:
        true if page is the last one
      • getAllowChange

        public boolean getAllowChange()
        Returns whether the event should be allowed to finish processing.
        Returns:
        true if the vent can finish the process
      • setAllowChange

        public void setAllowChange​(boolean v)
        Sets whether the event should be allowed to finish processing.
        Parameters:
        v - flag
      • getNewPage

        public java.awt.Component getNewPage()
        Returns the next page.
        Returns:
        component
      • setNewPage

        public void setNewPage​(java.awt.Component p)
        Sets the next page.
        Parameters:
        p - component
      • getCurrentPage

        public java.awt.Component getCurrentPage()
        Returns the current page on which the JCWizardEvent occured.
        Returns:
        component