Fan

 

class

fwt::BorderPane

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

BorderPane provides a callback to use for drawing a custom border around a content widget. You must specifiy non-zero insets to leave room to render your border.

TODO: This API is definitely changing to use CSS styling.

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.

insetsSource

Insets insets := ...

Insets to leave around the edge of the content.

onBorderSource

|Graphics, Size, Insets|? onBorder := null

The callback to paint the custom border. TODO: this will be replaced with a declarative CSS Border

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.