public class UITabGroup extends UIContainer<UITabGroup>
| Modifier and Type | Class and Description |
|---|---|
static class |
UITabGroup.TabChangeEvent
Event fired when an inactive
UITab is clicked. |
static class |
UITabGroup.TabPosition |
ITransformable.Alpha, ITransformable.Brightness, ITransformable.Color, ITransformable.Position<T>, ITransformable.Rotate, ITransformable.Scale, ITransformable.Size<T>, ITransformable.Translate| Modifier and Type | Field and Description |
|---|---|
protected UITab |
activeTab |
protected UIContainer |
attachedContainer |
protected java.util.Map<UITab,UIContainer> |
listTabs |
protected int |
offset |
protected GuiIcon[] |
panelIcons |
protected UITabGroup.TabPosition |
tabPosition |
protected GuiIcon[] |
windowIcons |
clipContent, components, contentHeight, contentWidth, horizontalPadding, titleLabel, verticalPadding, xOffset, yOffset| Constructor and Description |
|---|
UITabGroup(MalisisGui gui) |
UITabGroup(MalisisGui gui,
UITabGroup.TabPosition tabPosition) |
| Modifier and Type | Method and Description |
|---|---|
UITab |
addTab(UITab tab,
UIContainer container)
|
UITabGroup |
attachTo(UIContainer container,
boolean displace)
Attach this
UITabGroup to a UIContainer. |
void |
calculateTabPosition() |
UIContainer |
getAttachedContainer() |
GuiIcon |
getIcons() |
UITabGroup.TabPosition |
getTabPosition() |
int |
screenX()
Gets the X coordinate of this
UIComponent relative to the screen. |
int |
screenY()
Gets the Y coordinate of this
UIComponent relative to the screen. |
void |
setActiveTab(UITab tab)
Activates the tab and deactivates currently active tab.
|
add, calculateContentSize, componentX, componentY, drawBackground, drawForeground, fireKeyboardEvent, getClipArea, getComponentAt, getContentHeight, getContentWidth, getHorizontalPadding, getOffsetX, getOffsetY, getScrollStep, getTitle, getVerticalPadding, onAddedToScreen, onClose, onComponentSpaceChange, onComponentStateChange, onContentUpdate, remove, removeAll, setClipContent, setDisabled, setOffsetX, setOffsetY, setPadding, setTitle, setVisible, shouldClipContentaddControlComponent, draw, fireEvent, fireMouseEvent, getAlpha, getAnchor, getGui, getHeight, getName, getParent, getPropertyString, getRawHeight, getRawWidth, getTooltip, getWidth, getX, getY, getZIndex, isDisabled, isFocused, isHovered, isInsideBounds, isRelativeHeight, isRelativeWidth, isVisible, parentX, parentY, register, relativeX, relativeY, removeAllControlComponents, removeControlComponent, setAlpha, setAnchor, setFocused, setHovered, setName, setParent, setPosition, setPosition, setSize, setTooltip, setTooltip, setZIndex, toString, unregisterprotected java.util.Map<UITab,UIContainer> listTabs
protected UITab activeTab
protected UITabGroup.TabPosition tabPosition
protected UIContainer attachedContainer
protected int offset
protected GuiIcon[] windowIcons
protected GuiIcon[] panelIcons
public UITabGroup(MalisisGui gui, UITabGroup.TabPosition tabPosition)
public UITabGroup(MalisisGui gui)
public UITabGroup.TabPosition getTabPosition()
public GuiIcon getIcons()
public UITab addTab(UITab tab, UIContainer container)
UITab and its corresponding UIContainerto this UITabGroup.UITabGroup.tab - tab to add to the UITabGroupcontainer - UIContainer linked to the UITabUITabpublic void calculateTabPosition()
public void setActiveTab(UITab tab)
tab - the new active tabpublic UIContainer getAttachedContainer()
public UITabGroup attachTo(UIContainer container, boolean displace)
UITabGroup to a UIContainer.container - the container to attach to.displace - if true, moves and resize the UIContainer to make place for the UITabGroupUITabpublic int screenX()
UIComponentUIComponent relative to the screen.screenX in interface IClipablescreenX in class UIComponent<UITabGroup>public int screenY()
UIComponentUIComponent relative to the screen.screenY in interface IClipablescreenY in class UIComponent<UITabGroup>