Fantom

 

class

fwt::BorderPane

sys::Obj
  fwt::Widget
    fwt::Pane
      fwt::BorderPane

@js

BorderPane is used paint a CSS styled border around a content widget.

Slots

addSource

override This add(Widget? child)

Overrides fwt::Widget.add

If this the first widget added, then assume it the content.

bgSource

Brush? bg := null

Background to paint under content, or null for transparent. The background does not include the border itself, but does include the insets and content. Default is null.

borderSource

Border border := Border("0")

Border to paint around the edge of the content. Default is zero pixels.

contentSource

Widget? content

The content child widget.

insetsSource

Insets insets := ...

Insets to leave between border and the content. Default is zero pixels.

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