|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zk.Desktop
public class Desktop
A desktop. Unlike the component at the server, a desktop is a widget.
However, the desktop are different from normal widgets:
Field Summary | |
---|---|
static Map |
all
A map of all desktops (readonly). |
String |
className
The class name ( zk.Desktop ). |
String |
requestPath
The request path. |
String |
widgetName
The widget name ( desktop ). |
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
static Desktop |
$(Object o)
Returns the desktop of the specified desktop ID, widget, widget UUID, or DOM element. |
void |
$init(String dtid,
String contextURI,
String updateURI,
String reqURI,
boolean stateless)
Constructor |
Widget |
setId(String id)
This method is voided (does nothing) since the desktop's ID can be changed. |
static Desktop |
sync(int timeout)
Checks if any desktop becomes invalid, and removes the invalid desktops. |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String className
zk.Desktop
).
public String widgetName
desktop
).
public String requestPath
public static Map all
Method Detail |
---|
public void $init(String dtid, String contextURI, String updateURI, String reqURI, boolean stateless)
dtid
- the ID of the desktopcontextURI
- the context URI, such as /zkdemo
updateURI
- the URI of ZK Update Engine, such as /zkdemo/zkau
reqURI
- the URI of the request path.stateless
- whether this desktop is used for a stateless page.
Specify true if you want to use the client-centric approach.public Widget setId(String id)
setId
in class Widget
id
- the ID
public static Desktop $(Object o)
Notice that the desktop's ID and UUID are the same.
o
- a desktop's ID, a widget, a widget's UUID, or a DOM element.
If not specified, the default desktop is assumed.
public static Desktop sync(int timeout)
timeout
- how many miliseconds to wait before doing the synchronization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |