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, topPaddingFields inherited from class org.rusherhack.client.api.ui.window.view.WindowView
contentListFields inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
contextMenu, x, y -
Constructor Summary
ConstructorsConstructorDescriptionTabbedView(String name, Window window, List<WindowContent> contentList) TabbedView(Window window, List<WindowContent> contentList) -
Method Summary
Modifier and TypeMethodDescriptionprotected doubledoublegetTabs()doubleprotected doublevoidrenderViewContent(double mouseX, double mouseY) voidsetActiveTabView(WindowView activeTabView) Methods inherited from class org.rusherhack.client.api.ui.window.view.SimpleView
getViewHeight, getViewWidth, setAlignment, setContentPadding, setLeftPadding, setTopPadding, setViewWidthModifierMethods 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, unfocusMethods inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
getContextMenu, getFontRenderer, getRenderer, getWindow, getX, getY, isHovered, setContextMenu, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
renderViewContentin classSimpleView
-
getContent
- Overrides:
getContentin 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:
getTopOffsetin classSimpleView
-
getLeftOffset
protected double getLeftOffset()- Overrides:
getLeftOffsetin classSimpleView
-