Fan

 

class

fwt::ContentPane

sys::Obj
  fwt::Widget
    fwt::Pane
      fwt::ContentPane

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::Widget.onLayout

Doc inherited from fwt::Widget.onLayout

Handle the layout event. The method is only called Pane containers. Custom panes must override this method to set the bounds on all their children.

prefSizeSource

override Size prefSize(Hints hints := Hints.def)

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, then hints.h will be null.