Fantom

 

class

fwt::TabPane

sys::Obj
  fwt::Widget
    fwt::TabPane

@js

TabPane is a container used organize a set of Tabs. Tabs are added and removed using normal Widget.add and Widget.remove.

Slots

addSource

override This add(Widget? kid)

Overrides fwt::Widget.add

Only Tab children may be added.

indexSource

Int? index(Tab tab)

Get the index of the specified tab.

onSelectSource

@transient
readonly EventListeners onSelect := EventListeners()

Callback when the new tab is selected.

Event id fired:

Event fields:

selectedSource

@transient
Tab? selected

The currently selected tab.

selectedIndexSource

@transient
native Int? selectedIndex

The currently selected index of tabs.

tabsSource

Tab[] tabs()

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