public class PageEvent
extends java.util.EventObject
EventObject
that adds support for AbstractPage
objects as the event source.Modifier and Type | Field and Description |
---|---|
static int |
PAGE_CLOSED
This event is delivered when the page is closed.
|
static int |
PAGE_CLOSING
This event is delivered when the page is about to close.
|
static int |
PAGE_EVENT_FIRST
The first number in the range of IDs used for
AbstractPage events. |
static int |
PAGE_EVENT_LAST
The last number in the range of IDs used for
AbstractPage events. |
static int |
PAGE_OPENED
This event is delivered when the the data becomes invalid.
|
Constructor and Description |
---|
PageEvent(java.lang.Object source,
int id)
Constructs an
AbstractPageEvent object. |
Modifier and Type | Method and Description |
---|---|
int |
getID()
Returns the event type.
|
java.lang.String |
paramString()
Returns a parameter string identifying this event.
|
void |
setID(int id)
Sets the event type.
|
java.lang.String |
toString() |
public static final int PAGE_EVENT_FIRST
AbstractPage
events.public static final int PAGE_EVENT_LAST
AbstractPage
events.public static final int PAGE_OPENED
public static final int PAGE_CLOSING
AbstractPage#setAllowClosing(false)
to stop the closing process. The source of the event will tell
you which button originated the page closing event. For example, in the Wizard, the next button, the previous
button, the cancel button or the finish button all can trigger page closing event. The event's source will be the
actual button. You can call button.getName() and compare it with the predefined button names defined in ButtonNames
to find out which button it is.public static final int PAGE_CLOSED
public PageEvent(java.lang.Object source, int id)
AbstractPageEvent
object.source
- the AbstractPage
object that originated the eventid
- an integer indicating the type of eventpublic int getID()
public void setID(int id)
id
- the new event type.public java.lang.String paramString()
public java.lang.String toString()
toString
in class java.util.EventObject