public class Desktop extends Widget
However, the desktop are different from normal widgets:
Modifier and Type | Field and Description |
---|---|
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 ). |
$weave, auDelay, autag, bindLevel, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid
Modifier and Type | Method and Description |
---|---|
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
|
static void |
destroy(Desktop zk)
Destroy the desktop
|
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.
|
$, $f, $f, $f, $init, $n, $n, $o, $s, $service, afterAnima_, afterParentChanged_, appendChild, appendChild, beforeParentChanged_, beforeSendAU_, bind_, bind, bindChildren_, bindDoubleTap_, bindMissingAncestors, bindSwipe_, bindTapHold_, canActivate, cleanDrag_, clear, clearCache, cloneDrag_, deferRedraw_, deferRedrawHTML_, detach, doBlur_, doClick_, doDoubleClick_, doFocus_, doKeyDown_, doKeyPress_, doKeyUp_, domAttrs_, domClass_, domListen_, doMouseDown_, doMouseMove_, doMouseOut_, doMouseOver_, doMouseUp_, domStyle_, domTextStyleAttr_, domTooltiptext_, domUnlisten_, doPaste_, doResizeScroll_, doRightClick_, doSelect_, doSwipe_, doTooltipOut_, doTooltipOver_, dropEffect_, extraBind_, fire, fireX, focus_, focus, forcerender, fromPageCoord, get, getAction, getCaveNode, getChildAt, getChildIndex, getClass, getCssflex, getDraggable, getDragMessage_, getDragNode, getDragOptions_, getDrop_, getDroppable, getElementsById, getElementsByName, getFirstNode_, getFloatZIndex_, getHeight, getHflex, getId, getLeft, getMold, getOldWidget_, getPage, getRenderdefer, getSclass, getScrollLeft, getScrollTop, getStyle, getTabindex, getTextNode, getTooltiptext, getTop, getTopWidget, getVflex, getWidth, getZclass, getZIndex, hide, ignoreDescendantFloatUp_, ignoreDrag_, initDrag_, insertBefore, insertChildHTML_, isAutoId, isBinding, isFloating_, isListen, isRealElement, isRealVisible, isRealVisible, isVisible, isVisible, isWatchable_, listen, listenOnFitSize_, mimicMouseDown_, newInstance, nextUuid, onAfterSize, onChildAdded_, onChildRemoved_, onChildRenderDefer_, onChildReplaced_, onChildVisible_, onDrop_, redraw, redrawHTML_, register, removeChild, removeChild, removeChildHTML_, removeHTML_, replaceCavedChildren_, replaceChildHTML_, replaceHTML, replaceWidget, rerender, rerender, rerenderLater_, rerenderNow_, scrollIntoView, sendAU_, set, set, setAction, setChildren, setCssflex, setDomVisible_, setDraggable, setDroppable, setFloating_, setFloatZIndex_, setHeight, setHflex, setLeft, setListener, setListener, setListeners, setMold, setRenderdefer, setSclass, setScrollLeft, setScrollTop, setStyle, setTabindex, setTooltiptext, setTop, setTopmost, setVflex, setVisible, setWidth, setZclass, setZIndex, shallChildROD_, shallFireSizedLaterWhenAddChd_, shallIgnoreClick_, show, smartUpdate, unbind_, unbind, unbindChildren_, unbindDoubleTap_, unbindSwipe_, unbindTapHold_, uncloneDrag_, unlisten, unlistenOnFitSize_, updateDomClass_, updateDomStyle_, uuid, zsync
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
public String className
zk.Desktop
).public String widgetName
desktop
).public String requestPath
public static Map all
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)
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 synchronizationpublic static void destroy(Desktop zk)
zk
- desktopCopyright © 2005-2023 Potix Corporation. All Rights Reserved.