|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.context.WindowManager
public abstract class WindowManager
Manages the set of Windows currently in the Session and allows listeners on the Windows' lifecycles to be registered.
RequestContext.getWindowManager()
Constructor Summary | |
---|---|
WindowManager()
|
Method Summary | |
---|---|
abstract void |
addWindowLifecycleListener(javax.faces.context.ExternalContext extContext,
WindowLifecycleListener windowListener)
Registers a listener that will be informed of changes to the Lifecylce state of any of the known Windows. |
abstract Window |
getCurrentWindow(javax.faces.context.ExternalContext extContext)
|
abstract Map<String,? extends Window> |
getWindows(javax.faces.context.ExternalContext extContext)
|
abstract void |
removeWindowLifecycleListener(javax.faces.context.ExternalContext extContext,
WindowLifecycleListener windowListener)
Removes a listener that will be informed of changes to the Lifecylce state of any of the known Windows |
abstract void |
writeState(javax.faces.context.FacesContext context)
Performs any necessary action to embed the current window identifier into the output |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WindowManager()
Method Detail |
---|
public abstract Window getCurrentWindow(javax.faces.context.ExternalContext extContext)
extContext
- ExternalContext so that the WindowManager may be called before the
FacesContext is available
public abstract Map<String,? extends Window> getWindows(javax.faces.context.ExternalContext extContext)
extContext
- ExternalContext so that the WindowManager may be called before the
FacesContext is available
public abstract void addWindowLifecycleListener(javax.faces.context.ExternalContext extContext, WindowLifecycleListener windowListener)
Registers a listener that will be informed of changes to the Lifecylce state of any of the known Windows.
WindowLifecycleListener may be registered automatically by adding a file
containing the names of the classes implementing the WindowListener in a file named
org.apache.myfaces.trinidad.event.WindowListener
inside of
the META_INF/services
directory.
extContext
- ExternalContext so that the WindowManager may be called before the
FacesContext is availablewindowListener
- public abstract void removeWindowLifecycleListener(javax.faces.context.ExternalContext extContext, WindowLifecycleListener windowListener)
extContext
- ExternalContext so that the WindowManager may be called before the
FacesContext is availablewindowListener
- public abstract void writeState(javax.faces.context.FacesContext context) throws IOException
context
- FacesContext to use to write the output
IOException
- if an output exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |