* </p>
*/
public CustomComponent() {
+ // expand horizontally by default
+ setWidth(100, UNITS_PERCENTAGE);
}
/**
* the root of the composition component tree.
*/
public CustomComponent(Component compositionRoot) {
+ this();
setCompositionRoot(compositionRoot);
}
* <code>ORIENTATION_VERTICAL</code>.
*/
public OrderedLayout() {
- orientation = ORIENTATION_VERTICAL;
+ this(ORIENTATION_VERTICAL);
}
/**
*/
public OrderedLayout(int orientation) {
this.orientation = orientation;
+ if (orientation == ORIENTATION_VERTICAL) {
+ setWidth(100, UNITS_PERCENTAGE);
+ }
}
/**
* Creates a new empty panel. Ordered layout is used.
*/
public Panel() {
- setLayout(null);
+ this((Layout) null);
}
/**
* the layout used in the panel.
*/
public Panel(Layout layout) {
+ setWidth(100, UNITS_PERCENTAGE);
setLayout(layout);
}
*/
public TabSheet() {
super();
+ // expand horizontally by default
+ setWidth(100, UNITS_PERCENTAGE);
setImmediate(true);
}
public Window(String caption, Layout layout) {
super(caption, layout);
setScrollable(true);
+ setSizeUndefined();
}
/**