|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
org.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. |
boolean |
beginRequest(javax.faces.context.ExternalContext externalContext)Performs any necessary action at the very beginning of the request |
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 availablepublic 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 outputIOException - if an output exception occurs
public boolean beginRequest(javax.faces.context.ExternalContext externalContext)
throws IOException
externalContext - ExternalContext instanceIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.