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
See the Fancy SWT Tabs article for details.
See CTabFolder SWT Widget.
- add
@
Operator
virtual override This add(Widget? kid)Only CTab children may be added.
- index
Get the index of the specified tab.
- onClose
EventListeners onClose()
Callback when a tab is closed.
- onSelect
EventListeners onSelect()
Callback when a tab is selected.
Event id fired:
EventId.select
Event fields:
Event.index
: index of selected tabEvent.data
: new active Tab instance
- selected
The currently selected tab.
- selectedIndex
The currently selected index of tabs.
- simpleTabs
Bool simpleTabs := false
Set to
true
to create simple, non-curved, tabs.- tabs
CTab[] tabs()
Get the list of installed tabs. Tabs are added and removed using normal
Widget.add
andWidget.remove
.- tabsValign
Valign tabsValign := Valign.top
Where the tabs should be placed. Allowed values:
Valign.top
Valign.bottom