0

Pure java: component allignment and orientation

asked 2008-12-04 01:21:16 +0800

naarani gravatar image naarani
33
www.blogstudiolegale.eu

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.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-12-04 03:37:19 +0800

PeterKuo gravatar image PeterKuo
481 2

updated 2008-12-04 03:38:58 +0800

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.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-12-04 01:21:16 +0800

Seen: 212 times

Last updated: Dec 04 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More