01: /* East.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Aug 27, 2007 3:36:47 PM , Created by jumperchen
10: }}IS_NOTE
11:
12: Copyright (C) 2007 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.zkex.zul;
20:
21: /**
22: * This component is a east region. The default class of CSS is specified
23: * "layout-region-east".
24: *
25: * @author jumperchen
26: * @since 3.0.0
27: */
28: public class East extends LayoutRegion {
29: public East() {
30: addSclass("layout-region-east");
31: }
32:
33: /**
34: * Returns {@link Borderlayout#EAST}.
35: */
36: public String getPosition() {
37: return Borderlayout.EAST;
38: }
39:
40: /**
41: * The height can't be specified in this component because its height is
42: * determined by other region components ({@link North} or {@link South}).
43: */
44: public void setHeight(String height) {
45: throw new UnsupportedOperationException("readonly");
46: }
47:
48: /**
49: * Returns the size of this region. This method is shortcut for
50: * {@link #getWidth()}.
51: */
52: public String getSize() {
53: return getWidth();
54: }
55:
56: /**
57: * Sets the size of this region. This method is shortcut for
58: * {@link #setWidth(String)}.
59: */
60: public void setSize(String size) {
61: setWidth(size);
62: }
63: }
|