public class WindowLifecycleEvent extends WindowEvent
cause
indicates the cause ot the state change. The state diagram for theWindow LifecycleStates
is
+-----------load---------------+ | | ---expire--- V /---unload----\ | / \The new LifecycleStates can be retrieved by calling---open--->OPEN----- ----->UNLOADED-- -->CLOSED | \--navigate---/ ^ \ / | | ---close---- +---------closing--------------+
getLifecycleState
on the
source Window or by calling the getNewLifecycleState
convenience function
on the WindowLifecycleEventWindow
,
Window.LifecycleState
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
WindowLifecycleEvent.Cause
What caused the delivery of the WindowLifecycleEvent.
|
source
Constructor and Description |
---|
WindowLifecycleEvent(Window source,
WindowLifecycleEvent.Cause cause)
Creates a WindowOpenEvent event for the specified Window and cause.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
WindowLifecycleEvent.Cause |
getCause() |
Window.LifecycleState |
getNewLifecycleState()
Returns the new LifecycleState that the Window has moved to.
|
int |
hashCode() |
protected boolean |
subclassEquals(WindowLifecycleEvent e)
Called by subclass
equals implementation to check the WindowEvent
portion of equivalence. |
String |
toString() |
getSource, subclassEquals
public WindowLifecycleEvent(Window source, WindowLifecycleEvent.Cause cause)
public WindowLifecycleEvent.Cause getCause()
public final Window.LifecycleState getNewLifecycleState()
public String toString()
toString
in class EventObject
protected final boolean subclassEquals(WindowLifecycleEvent e)
equals
implementation to check the WindowEvent
portion of equivalence.e
- Non-null WindowEvent to compare for equalitytrue
if the the WindowEvent satisfies the WindowEvent portion
of equivalence.Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.