List of Implicit Objects

From Documentation
Revision as of 07:40, 12 July 2010 by Maya001122 (talk | contribs) (Created page with '{{ZKDevelopersGuidePageHeader}} {| border="1" ! <center>Object Name</center> ! <center>Type</center> ! <center>Description</center> |- | self | [http://www.zkoss.org/javadoc/…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


Object Name
Type
Description
self org.zkoss.zk.ui.Component The component itself.
spaceOwner org.zkoss.zk.ui.IdSpace The space owner of this component. It is the same as self.spaceOwner.
page org.zkoss.zk.ui.Page The page. It is the same as self.page.
desktop org.zkoss.zk.ui.Desktop The desktop. It is the same as self.desktop.
execution org.zkoss.zk.ui.Execution The current execution.
session org.zkoss.zk.ui.Session The session.
application org.zkoss.zk.ui.WebApp The Web application.
componentScope java.util.Map A map of attributes defined in the component. It is the same as the getAttributes method in the org.zkoss.zk.ui.Component interface.
spaceScope java.util.Map A map of attributes defined in the ID space containing this component.
pageScope java.util.Map A map of attributes defined in the page. It is the same as the getAttributes method in the org.zkoss.zk.ui.Page interface.
desktopScope java.util.Map A map of attributes defined in the desktop. It is the same as the getAttributes method in the org.zkoss.zk.ui.Desktop interface.
sessionScope java.util.Map A map of attributes defined in the session. It is the same as the getAttributes method in the org.zkoss.zk.ui.Session interface.
applicationScope java.util.Map A map of attributes defined in the web application. It is the same as the getAttributes method in the org.zkoss.zk.ui.WebApp interface.
requestScope java.util.Map A map of attributes defined in the request. It is the same as the getAttributes method in the org.zkoss.zk.ui.Execution interface.
param java.util.Map A map of attributes passed by the query string. Please refer to section Pass Values to the Included Page for example.
arg java.util.Map The arg argument passed to the createComponents method in the org.zkoss.zk.ui.Executions class. It is never null.

It is the same as self.desktop.execution.arg.

Notice that arg is available only when creating the components for the included page (the first argument of createComponents). On the other hand, all events, including onCreate, are processed later. Thus, if you want to access arg in the onCreate's listener, use the getArg method of the org.zkoss.zk.ui.event.CreateEvent class.


each java.lang.Object The current item of the collection being iterated, when ZK evaluates an iterative element. An iterative element is an element with the forEach attribute.
forEachStatus org.zkoss.zk.ui.util.ForEachStatus The status of an iteration. ZK exposes the information relative to the iteration taking place when evaluating the iterative element.
event org.zkoss.zk.ui.event.Event or derived The current event. Available for the event listener only.


Implicit objects provides many useful methods for web application. You can click the hyperlink to see the java doc of each implicit object.



Last Update : 2010/07/12

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.