Class WTabPanel.Tab
java.lang.Object
io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab
- Enclosing class:
WTabPanel
The data of a tab.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder for tab data. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTooltip
(TooltipBuilder tooltip) Adds this widget's tooltip to thetooltip
builder.getIcon()
Gets the icon of this tab.getTitle()
Gets the title of this tab.Gets the contained widget of this tab.
-
Method Details
-
getTitle
Gets the title of this tab.- Returns:
- the title, or null if there's no title
-
getIcon
Gets the icon of this tab.- Returns:
- the icon, or null if there's no title
-
getWidget
Gets the contained widget of this tab.- Returns:
- the contained widget
-
addTooltip
Adds this widget's tooltip to thetooltip
builder.- Parameters:
tooltip
- the tooltip builder
-