Package org.tn5250j.event
Class WizardEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.tn5250j.event.WizardEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class WizardEvent extends java.util.EventObjectThe event object for Wizard pages.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanallowChangeprotected java.awt.ComponentcurrentPageprotected booleanisLastPageprotected java.awt.ComponentnewPage
-
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 booleangetAllowChange()Returns whether the event should be allowed to finish processing.java.awt.ComponentgetCurrentPage()Returns the current page on which theJCWizardEventoccured.java.awt.ComponentgetNewPage()Returns the next page.booleanisLastPage()Returns whether the page is the last page.voidsetAllowChange(boolean v)Sets whether the event should be allowed to finish processing.voidsetNewPage(java.awt.Component p)Sets the next page.
-
-
-
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 theJCWizardEventoccured.- Returns:
- component
-
-