01: /* Space.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Sat Jan 14 00:40:57 2006, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2006 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.zul;
20:
21: import org.zkoss.zk.ui.WrongValueException;
22:
23: /**
24: * Space is a {@link Separator} with the orient default to "horizontal".
25: *
26: * <p>In other words, <space> is equivalent to <separator orient="horizontal">
27: *
28: * @author tomyeh
29: */
30: public class Space extends Separator {
31: public Space() {
32: try {
33: setOrient("vertical");
34: } catch (WrongValueException ex) {
35: throw new InternalError(); //impossible
36: }
37: }
38: }
|