public class RecentSpacesBean extends 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.
|
List<Node> |
getRecentSpaces() |
void |
navigate(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(List<Node> 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 void navigate(ActionEvent event)
public void contextUpdated()
IContextListener
contextUpdated
in interface IContextListener
IContextListener.contextUpdated()
public void areaChanged()
IContextListener
areaChanged
in interface IContextListener
IContextListener.areaChanged()
public void spaceChanged()
IContextListener
spaceChanged
in interface IContextListener
IContextListener.spaceChanged()
Copyright © 2005–2017 Alfresco Software. All rights reserved.