-
Notifications
You must be signed in to change notification settings - Fork 11
TabWidget
A widget which allows for separating widgets into tabbed.
currentChanged (int val)
Number add (Widget widget, String label, [int index])
-
Add widget as a tab on the tab widget with the label label.
-
If an integer is sent as a third parameter, the widget will be inserted at that index with label label.
void remove (int index)
- Remove the tab at index from the stacked widget.
int count ()
- Returns the number of tabs in the stacked widget.
int/void currentIndex ([int index])
-
If called with an argument, set the stackedWidget to the specified index.
-
If not called with an argument, return the stackedWidget.
Widget/void currentWidget ([ Widget widget])
-
If called with an argument, change so that widget is the current tab.
-
If not called with an argument, return the current tab.
Widget at (int index)
- Returns the widget at index.
Number indexOf (Widget widget)
- Returns the index of widget.
String tabText (int index, [String label])
-
If called with a second argument, set the label of the tab at index to label.
-
If called without a second argument, return the label of the tab at index.