Load ZUML in Java"
From Documentation
(Created page with '{{ZKDevelopersReferencePageHeader}} =Version History= Last Update : {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY}} {| border='1px' | width="100%" ! Version !! Date !! Conten…') |
|||
Line 1: | Line 1: | ||
{{ZKDevelopersReferencePageHeader}} | {{ZKDevelopersReferencePageHeader}} | ||
+ | |||
+ | __TOC__ | ||
+ | |||
+ | <javadoc>org.zkoss.zk.ui.Execution</javadoc> provides a collection of methods to allow you to create components based a ZUML document, such as <javadoc method="createComponents(java.lang.String, org.zkoss.zk.ui.Component, java.util.Map)">org.zkoss.zk.ui.Execution</javadoc>, <javadoc method="createComponentsDirectly(java.lang.String, java.lang.String, org.zkoss.zk.ui.Component, java.util.Map)">org.zkoss.zk.ui.Execution</javadoc> and many others. For example, | ||
+ | |||
+ | <source lang="Java"> | ||
+ | public class Controller extends GenericForwardComposer { | ||
+ | private Window main; //assumed wired automatically | ||
+ | public void onClick() { | ||
+ | Executions.getCurrent().createComponentsDirectly("<listbox><listitem label=\"foo\"/></listbox>", "zul", this, null); | ||
+ | } | ||
+ | ... | ||
+ | </source> | ||
=Version History= | =Version History= |
Revision as of 07:24, 9 November 2010
Execution provides a collection of methods to allow you to create components based a ZUML document, such as Execution.createComponents(String, Component, Map), Execution.createComponentsDirectly(String, String, Component, Map) and many others. For example,
public class Controller extends GenericForwardComposer {
private Window main; //assumed wired automatically
public void onClick() {
Executions.getCurrent().createComponentsDirectly("<listbox><listitem label=\"foo\"/></listbox>", "zul", this, null);
}
...
Version History
Last Update : 2010/11/9
Version | Date | Content |
---|---|---|