classafReflux::CTabPane

sys::Obj
  fwt::Widget
    fwt::Pane
      afReflux::CTabPane

@Serializable { collection=true }

(Widget) - A container for CTabs and a replacement for FWT Tabs.

CTabs follow Eclipse's Custom range of widgets. They are similar to normal tabs, except they:

  • have close buttons
  • may be curved
  • may be aligned on the bottom

CTabs

CTabs

See the Fancy SWT Tabs article for details.

See CTabFolder SWT Widget.

add

Source

@Operator
virtual override This add(Widget? kid)

Only CTab children may be added.

index

Source

Int? index(CTab tab)

Get the index of the specified tab.

onClose

Source

EventListeners onClose()

Callback when a tab is closed.

onSelect

Source

EventListeners onSelect()

Callback when a tab is selected.

Event id fired:

  • EventId.select

Event fields:

  • Event.index: index of selected tab
  • Event.data: new active Tab instance
selected

Source

@Transient
CTab? selected

The currently selected tab.

selectedIndex

Source

@Transient
Int? selectedIndex

The currently selected index of tabs.

simpleTabs

Source

Bool simpleTabs := false

Set to true to create simple, non-curved, tabs.

tabs

Source

CTab[] tabs()

Get the list of installed tabs. Tabs are added and removed using normal Widget.add and Widget.remove.

tabsValign

Source

Valign tabsValign := Valign.top

Where the tabs should be placed. Allowed values:

  • Valign.top
  • Valign.bottom