Class TabbedView
java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.view.WindowView
org.rusherhack.client.api.ui.window.view.SimpleView
org.rusherhack.client.api.ui.window.view.TabbedView
- All Implemented Interfaces:
org.rusherhack.core.interfaces.IClickable
,org.rusherhack.core.interfaces.IHoverable
,org.rusherhack.core.interfaces.INamed
,org.rusherhack.core.interfaces.IScrollable
,org.rusherhack.core.interfaces.ITickable
,org.rusherhack.core.interfaces.ITypeable
A view with different tabs.
WindowViews in the content list are rendered in tabs, while other content is rendered at the bottom below the tab view.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.rusherhack.client.api.ui.window.view.SimpleView
SimpleView.Alignment
-
Field Summary
Fields inherited from class org.rusherhack.client.api.ui.window.view.SimpleView
alignment, contentPadding, leftPadding, topPadding
Fields inherited from class org.rusherhack.client.api.ui.window.view.WindowView
contentList
Fields inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
contextMenu, x, y
-
Constructor Summary
ConstructorDescriptionTabbedView
(String name, Window window, List<WindowContent> contentList) TabbedView
(Window window, List<WindowContent> contentList) -
Method Summary
Modifier and TypeMethodDescriptionprotected double
double
getTabs()
double
protected double
void
renderViewContent
(double mouseX, double mouseY) void
setActiveTabView
(WindowView activeTabView) Methods inherited from class org.rusherhack.client.api.ui.window.view.SimpleView
getViewHeight, getViewWidth, setAlignment, setContentPadding, setLeftPadding, setTopPadding, setViewWidthModifier
Methods inherited from class org.rusherhack.client.api.ui.window.view.WindowView
charTyped, getHandler, getHeight, getName, getViewHandler, getWidth, keyTyped, mouseClicked, mouseReleased, mouseScrolled, renderContent, setContentList, setViewHeight, setViewWidth, tick, unfocus
Methods inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
getContextMenu, getFontRenderer, getRenderer, getWindow, getX, getY, isHovered, setContextMenu, setX, setY
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayName
-
Constructor Details
-
TabbedView
-
TabbedView
-
-
Method Details
-
renderViewContent
public void renderViewContent(double mouseX, double mouseY) - Overrides:
renderViewContent
in classSimpleView
-
getContent
- Overrides:
getContent
in classWindowView
- Returns:
- list of persistent content that should be rendered below the tab view
-
setActiveTabView
-
getActiveTabView
-
getTabs
-
getTabViewHeight
public double getTabViewHeight() -
getPersistentContentHeight
public double getPersistentContentHeight() -
getTopOffset
protected double getTopOffset()- Overrides:
getTopOffset
in classSimpleView
-
getLeftOffset
protected double getLeftOffset()- Overrides:
getLeftOffset
in classSimpleView
-