TabWidget

compound widget - contains from TabControl widget (tabs header) and TabHost (content pages)

Constructors

this
this()

empty parameter list constructor - for usage by factory

this
this(string ID, Align tabAlignment)

create with ID parameter

Members

Functions

addTab
TabWidget addTab(Widget widget, string labelResourceId, string iconId, bool enableCloseButton)

add new tab by id and label string resource id

addTab
TabWidget addTab(Widget widget, dstring label, string iconId, bool enableCloseButton)

add new tab by id and label (raw value)

onKeyEvent
bool onKeyEvent(KeyEvent event)

process key event, return true if event is processed.

onTabChanged
void onTabChanged(string newActiveTabId, string previousTabId)
Undocumented in source. Be warned that the author may not have intended to support it.
onTabClose
void onTabClose(string tabId)
Undocumented in source. Be warned that the author may not have intended to support it.
removeTab
TabWidget removeTab(string id)

remove tab by id

renameTab
void renameTab(string ID, dstring name)

change name of tab

renameTab
void renameTab(int index, dstring name)

change name of tab

selectTab
void selectTab(string ID, bool updateAccess)

select tab

selectTab
void selectTab(int index, bool updateAccess)

select tab

selectedTabBody
Widget selectedTabBody()

get tab content widget by id

setStyles
void setStyles(string tabWidgetStyle, string tabStyle, string tabButtonStyle, string tabButtonTextStyle, string tabHostStyle)

change style ids

tab
TabItem tab(int index)

returns tab item by id (null if index out of range)

tab
TabItem tab(string id)

returns tab item by id (null if not found)

tabBody
Widget tabBody(string id)

get tab content widget by id

tabBody
Widget tabBody(int index)

get tab content widget by id

tabControl
TabControl tabControl()
Undocumented in source. Be warned that the author may not have intended to support it.
tabHost
TabHost tabHost()
Undocumented in source. Be warned that the author may not have intended to support it.
tabIndex
int tabIndex(string id)

get tab index by tab id (-1 if not found)

Properties

hiddenTabsVisibility
Visibility hiddenTabsVisibility [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
hiddenTabsVisibility
Visibility hiddenTabsVisibility [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
selectedTab
TabItem selectedTab [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
selectedTab
const(TabItem) selectedTab [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
selectedTabId
string selectedTabId [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
tabCount
int tabCount [@property getter]

returns tab count

Variables

_tabControl
TabControl _tabControl;
Undocumented in source.
_tabHost
TabHost _tabHost;
Undocumented in source.
tabChanged
Signal!TabHandler tabChanged;

signal of tab change (e.g. by clicking on tab header)

tabClose
Signal!TabCloseHandler tabClose;

signal on tab close button

Inherited Members

From TabHandler

onTabChanged
void onTabChanged(string newActiveTabId, string previousTabId)
Undocumented in source.

From TabCloseHandler

onTabClose
void onTabClose(string tabId)
Undocumented in source.

Meta