public class RecentSpacesBean extends java.lang.Object implements IContextListener
Registers itself as a UI Context Listener so it is informed as to when the current Node ID has changed in the NavigationBeans. This is used to keep the list of spaces up-to-date.
| Modifier and Type | Field and Description |
|---|---|
protected BrowseBean |
browseBean
The BrowseBean reference
|
protected NavigationBean |
navigator
The NavigationBean reference
|
| Constructor and Description |
|---|
RecentSpacesBean()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
areaChanged()
Method called by UIContextService.areaChanged() to inform all registered beans that
the user has changed area i.e.
|
void |
contextUpdated()
Method called by UIContextService.notifyBeans() to inform all registered beans that
all UI Beans should refresh dump all cached data and settings.
|
java.util.List |
getRecentSpaces() |
void |
navigate(javax.faces.event.ActionEvent event)
Action handler bound to the recent spaces Shelf component called when a Space is clicked
|
void |
setBrowseBean(BrowseBean browseBean) |
void |
setNavigator(NavigationBean navigator) |
void |
setRecentSpaces(java.util.List spaces) |
void |
spaceChanged()
Method called by UIContextService.spaceChanged() to inform all registered beans that
the current space has changed.
|
protected NavigationBean navigator
protected BrowseBean browseBean
public void setNavigator(NavigationBean navigator)
navigator - The NavigationBean to set.public void setBrowseBean(BrowseBean browseBean)
browseBean - The BrowseBean to set.public java.util.List getRecentSpaces()
public void setRecentSpaces(java.util.List spaces)
spaces - List of Nodespublic void navigate(javax.faces.event.ActionEvent event)
public void contextUpdated()
IContextListenercontextUpdated in interface IContextListenerIContextListener.contextUpdated()public void areaChanged()
IContextListenerareaChanged in interface IContextListenerIContextListener.areaChanged()public void spaceChanged()
IContextListenerspaceChanged in interface IContextListenerIContextListener.spaceChanged()Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.