|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shale.dialog.base.AbstractDialogContextManager
public abstract class AbstractDialogContextManager
Abstract base class for DialogContextManager implementations.
Provides listener registration and event firing convenience methods.
Subclasses are expected to be serializable.
| Constructor Summary | |
|---|---|
AbstractDialogContextManager()
|
|
| Method Summary | |
|---|---|
void |
addDialogContextManagerListener(DialogContextManagerListener listener)
Register a new DialogContextManagerListener instance. |
protected void |
fireOnCreate(DialogContext context)
Fire an onCreate() event to all registered listeners. |
protected void |
fireOnRemove(DialogContext context)
Fire an onRemove() event to all registered listeners. |
DialogContext |
getActiveDialogContext(javax.faces.context.FacesContext context)
Return the currently active DialogContext instance for the
current request, if there is one; otherwise, return null. |
DialogContextManagerListener[] |
getDialogContextManagerListeners()
Return the set of currently registered DialogContextManagerListeners. |
void |
removeDialogContextManagerListener(DialogContextManagerListener listener)
Deregister an existing DialogContextManagerListener instance. |
void |
valueBound(HttpSessionBindingEvent event)
Handle an instance of this class being bound into an HttpSession. |
void |
valueUnbound(HttpSessionBindingEvent event)
Handle an instance of this class being unbound from an HttpSession. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.shale.dialog.DialogContextManager |
|---|
create, create, get, remove |
| Constructor Detail |
|---|
public AbstractDialogContextManager()
| Method Detail |
|---|
public void valueBound(HttpSessionBindingEvent event)
Handle an instance of this class being bound into an HttpSession.
valueBound in interface HttpSessionBindingListenerevent - HttpSessionBindingEvent to be handledpublic void valueUnbound(HttpSessionBindingEvent event)
Handle an instance of this class being unbound from an HttpSession.
valueUnbound in interface HttpSessionBindingListenerevent - HttpSessionBindingEvent to be handledpublic DialogContext getActiveDialogContext(javax.faces.context.FacesContext context)
Return the currently active DialogContext instance for the
current request, if there is one; otherwise, return null.
getActiveDialogContext in interface DialogContextManagercontext - FacesContext for the current requestpublic void addDialogContextManagerListener(DialogContextManagerListener listener)
Register a new DialogContextManagerListener instance.
addDialogContextManagerListener in interface DialogContextManagerlistener - The new listener instance to be registeredpublic DialogContextManagerListener[] getDialogContextManagerListeners()
Return the set of currently registered DialogContextManagerListeners.
If there are no registered listeners, a zero-length array is returned.
getDialogContextManagerListeners in interface DialogContextManagerpublic void removeDialogContextManagerListener(DialogContextManagerListener listener)
Deregister an existing DialogContextManagerListener instance.
removeDialogContextManagerListener in interface DialogContextManagerlistener - The existing listener to be deregisteredprotected void fireOnCreate(DialogContext context)
Fire an onCreate() event to all registered listeners.
context - The DialogContext instance that has been createdprotected void fireOnRemove(DialogContext context)
Fire an onRemove() event to all registered listeners.
context - The DialogContext instance that has been removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||