-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
I'm tring to use zk only with java, creating labels and windows only from java.
I've seen the tutorials but they seems a little short/small about zk use from java(?)
How could Label, Button, Windows, etc, centered, oriented etc ?
anyone could help me?
Thanks.
It's called richlet.
please search it in:
http://www.zkoss.org/doc/devguide-single/index.html
In zk live demo, you can find a example
<window title="My First Window" border="normal" width="200px"> Hello, World! </window>
and its equivalent richlet is
import org.zkoss.zk.ui.*; import org.zkoss.zk.zul.*; public class HelloRichlet extends GenericRichlet { public void service(Page page) { Window w = new Window("My First Window", "normal", false); new Label("Hello, World!").setParent(w); w.setPage(page); } }
For zul component properties, you can look at
http://www.zkoss.org/javadoc/3.5.1/zul/org/zkoss/zul/package-summary.html
try to find the setter methods.
If you have any question, please feel free to tell us.
We are writing a new developer's guide,
a chapter will include richlet with detail.
Asked: 2008-12-04 01:21:16 +0800
Seen: 212 times
Last updated: Dec 04 '08