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
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for tab data. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTooltip(TooltipBuilder tooltip) Adds this widget's tooltip to thetooltipbuilder.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 thetooltipbuilder.- Parameters:
tooltip- the tooltip builder
-