|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.app.context.UIContextService
public final class UIContextService
Beans supporting the IContextListener interface are registered against this class. Then Beans which wish to indicate that the UI should refresh itself i.e. dump all cached data and settings, call the UIContextService.notifyBeans() to inform all registered instances of the change.
Registered beans will also be informed of changes in location, for example when the current space changes or when the user has changed area i.e. from company home to my home.
Method Summary | |
---|---|
void |
areaChanged()
Call to notify all register beans that the area i.e. |
static UIContextService |
getInstance(javax.faces.context.FacesContext fc)
Returns a Session local instance of the UIContextService |
void |
notifyBeans()
Call to notify all register beans that the UI context has changed and they should refresh themselves as appropriate. |
void |
registerBean(IContextListener bean)
Register a bean to be informed of context events |
void |
spaceChanged()
Call to notify all register beans that the current space has changed and they should refresh themselves as appropriate. |
void |
unregisterBean(IContextListener bean)
Remove a bean reference from those notified of changes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UIContextService getInstance(javax.faces.context.FacesContext fc)
public void registerBean(IContextListener bean)
bean
- Conforming to the IContextListener interfacepublic void unregisterBean(IContextListener bean)
bean
- Conforming to the IContextListener interfacepublic void notifyBeans()
public void spaceChanged()
public void areaChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |