@collection = false
@js
ContentPane is the base class for panes which only contain one child widget called content
.
Slots
- addSource
-
override This add(Widget? child)
Overrides fwt::Widget.add
If this the first widget added, then assume it the content.
- contentSource
-
Widget? content
The content child widget.
- onLayoutSource
-
override Void onLayout()
Overrides fwt::Pane.onLayout
Doc inherited from fwt::Pane.onLayout
Handle the layout event by setting the bounds on all children.
- prefSizeSource
-
override Size prefSize(Hints hints := Hints.defVal)
Overrides fwt::Pane.prefSize
Doc inherited from fwt::Pane.prefSize
Compute the preferred size of this widget. The hints indicate constraints the widget should consider in its calculations. If no constraints are known for width, then
hints.w
will be null. If no constraints are known for height, thenhints.h
will be null.