public class WTabPanel extends WPanel
| Modifier and Type | Class and Description |
|---|---|
static class |
WTabPanel.Tab
The data of a tab.
|
| Constructor and Description |
|---|
WTabPanel()
Constructs a new tab panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(WTabPanel.Tab tab)
Adds a tab to this panel.
|
void |
add(WWidget widget,
java.util.function.Consumer<WTabPanel.Tab.Builder> configurator)
Configures and adds a tab to this panel.
|
void |
addPainters()
Adds the default background painters to this widget and all children.
|
void |
setSize(int x,
int y)
Sets the size of this widget.
|
canResize, createPeers, cycleFocus, cycleFocus, expandToFit, expandToFit, getBackgroundPainter, hit, layout, onHidden, onShown, paint, remove, setBackgroundPainter, tick, toString, validateaddTooltip, canFocus, getAbsoluteX, getAbsoluteY, getHeight, getHost, getParent, getWidth, getX, getY, isActivationKey, isFocused, isWithinBounds, onCharTyped, onClick, onFocusGained, onFocusLost, onKeyPressed, onKeyReleased, onMouseDown, onMouseDrag, onMouseMove, onMouseScroll, onMouseUp, releaseFocus, renderTooltip, requestFocus, setHost, setLocation, setParentpublic void add(WTabPanel.Tab tab)
tab - the added tabpublic void add(WWidget widget, java.util.function.Consumer<WTabPanel.Tab.Builder> configurator)
widget - the contained widgetconfigurator - the tab configuratorpublic void setSize(int x,
int y)
WWidgetOverriding methods may restrict one of the dimensions to be
a constant value, for example super.setSize(x, 20).
@Environment(value=CLIENT) public void addPainters()
WPanelAlways called before GuiDescription.addPainters() to allow users to modify painters.
Subclasses should call super.addPainters() to ensure that children have proper default painters.
addPainters in class WPanel