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