|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.impl.SimpleDesktopCache
public class SimpleDesktopCache
A simple implementation of DesktopCache. It manages
all desktop in a CacheMap instance.
| Constructor Summary | |
|---|---|
SimpleDesktopCache(Configuration config)
|
|
| Method Summary | |
|---|---|
void |
addDesktop(Desktop desktop)
Adds a desktop to this session. |
Desktop |
getDesktop(java.lang.String desktopId)
Returns the desktop for the specified desktop ID. |
Desktop |
getDesktopIfAny(java.lang.String desktopId)
Returns the desktop for the specified desktop ID, or null if not found. |
int |
getNextKey()
Returns the next available key which is unique in the whole cache. |
void |
removeDesktop(Desktop desktop)
Removes a desktop from this session. |
void |
sessionDidActivate(Session sess)
Invokes DesktopCtrl.sessionDidActivate(org.zkoss.zk.ui.Session) for each
desktops it cached. |
void |
sessionWillPassivate(Session sess)
Invokes DesktopCtrl.sessionWillPassivate(org.zkoss.zk.ui.Session) for each
desktops it cached. |
void |
stop()
Called when to stop and cleanup this cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleDesktopCache(Configuration config)
| Method Detail |
|---|
public int getNextKey()
DesktopCacheDesktop uses this method to generate ID automatically.
getNextKey in interface DesktopCachepublic Desktop getDesktopIfAny(java.lang.String desktopId)
DesktopCache
getDesktopIfAny in interface DesktopCachepublic Desktop getDesktop(java.lang.String desktopId)
DesktopCache
getDesktop in interface DesktopCachepublic void addDesktop(Desktop desktop)
DesktopCacheApplication shall never access this method.
addDesktop in interface DesktopCachepublic void removeDesktop(Desktop desktop)
DesktopCacheApplication shall never access this method.
removeDesktop in interface DesktopCachepublic void sessionWillPassivate(Session sess)
DesktopCtrl.sessionWillPassivate(org.zkoss.zk.ui.Session) for each
desktops it cached.
sessionWillPassivate in interface DesktopCachepublic void sessionDidActivate(Session sess)
DesktopCtrl.sessionDidActivate(org.zkoss.zk.ui.Session) for each
desktops it cached.
sessionDidActivate in interface DesktopCachepublic void stop()
DesktopCacheDesktopCacheProvider.
stop in interface DesktopCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||