Package tripleplay.ui
Class Tabs.Tab
java.lang.Object
tripleplay.ui.Tabs.Tab
- Enclosing class:
Tabs
Represents a tab: button and content.
-
Field Summary
Modifier and TypeFieldDescriptionfinal ToggleButton
The button, which will show this tab's content when clicked. -
Constructor Summary
ConstructorDescriptionTab
(ToggleButton button, Supplier generator) Creates a new tab with the supplied fields. -
Method Summary
-
Field Details
-
button
The button, which will show this tab's content when clicked.
-
-
Constructor Details
-
Tab
Creates a new tab with the supplied fields.
-
-
Method Details
-
select
public void select()Selects this tab. This is just a shortcut forTabs.selected
.update(this). -
content
Gets this tab's content, creating it if necessary. -
index
public int index() -
setVisible
public void setVisible(boolean visible) -
isVisible
public boolean isVisible() -
parent
-
name
Gets the displayed name of the tab. This is a convenience for accessing the text of thebutton
.
-