@js
Pane is a container widget responsible for the layout of its children. Custom panes should:
- Override prefSize to compute their preferred size
- Override onLayout to set the bounds of all their children
See docLib for details.
Slots
-
private native Void dummyPane()
- onLayoutSource
-
abstract Void onLayout()
Handle the layout event by setting the bounds on all children.
- prefSizeSource
-
abstract Size prefSize(Hints hints := Hints.defVal)
Overrides fwt::Widget.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.