Skip navigation links
org.apache.myfaces.trinidad.event
Class WindowLifecycleEvent
java.lang.Object
java.util.EventObject
org.apache.myfaces.trinidad.event.WindowEvent
org.apache.myfaces.trinidad.event.WindowLifecycleEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- WindowLifecycleNavigateEvent
-
public class WindowLifecycleEvent
- extends WindowEvent
Event delivered when the LifecycleState of a Window changes. The cause indicates the cause ot the state change. The state diagram for theWindow LifecycleStates is
+-----------load---------------+
| | ---expire---
V /---unload----\ | / \
<start> ---open--->OPEN----- ----->UNLOADED-- -->CLOSED
| \--navigate---/ ^ \ /
| | ---close----
+---------closing--------------+
The new LifecycleStates can be retrieved by calling getLifecycleState on the source Window or by calling the getNewLifecycleState convenience function on the WindowLifecycleEvent
- See Also:
Window, Window.LifecycleState, Serialized Form
| Fields inherited from class java.util.EventObject |
source |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
WindowLifecycleEvent
public WindowLifecycleEvent(Window source,
WindowLifecycleEvent.Cause cause)
- Creates a WindowOpenEvent event for the specified Window and cause.
getCause
public WindowLifecycleEvent.Cause getCause()
-
- Returns:
- the cause of the WindowOpen event.
getNewLifecycleState
public final Window.LifecycleState getNewLifecycleState()
- Returns the new LifecycleState that the Window has moved to.
hashCode
public int hashCode()
-
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
-
- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
-
- Overrides:
toString in class java.util.EventObject
subclassEquals
protected final boolean subclassEquals(WindowLifecycleEvent e)
- Called by subclass
equals implementation to check the WindowEvent portion of equivalence.
-
- Parameters:
e - Non-null WindowEvent to compare for equality
- Returns:
true if the the WindowEvent satisfies the WindowEvent portion of equivalence.
Skip navigation links
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.