01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings;
14:
15: /**
16: * Invisible component which may be used as a spacer in dynamic layout managers.
17: * Typically it is rendered as an invisible pixel.
18: *
19: * @author bschmid
20: */
21: public class SSpacer extends SComponent {
22:
23: /** C'tor of an invisible element. */
24: public SSpacer(int width, int height) {
25: setPreferredSize(new SDimension(Integer.toString(width) + "px",
26: Integer.toString(height) + "px"));
27: }
28:
29: /** C'tor of an invisible element. */
30: public SSpacer(String width, String height) {
31: setPreferredSize(new SDimension(width, height));
32: }
33:
34: public void setEnabled(boolean enabled) {
35: this.enabled = enabled;
36: }
37:
38: }
|