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