Class ListView<T extends ListItemContent>
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.ListView<T>
- 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
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
A column in a list viewclass
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionaddColumn
(String name, Comparator<T> comparator, double widthWeight) double
getColumnWidth
(ListView<?>.Column column) boolean
void
renderViewContent
(double mouseX, double mouseY) void
resort()
void
setDeleteCallback
(Consumer<T> deleteCallback) void
setSelectedItem
(ListItemContent selectedItem) void
sortByColumn
(ListView<?>.Column column) Methods inherited from class org.rusherhack.client.api.ui.window.view.WindowView
charTyped, getContent, getHandler, getHeight, getName, getViewHandler, getViewHeight, getViewWidth, 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
-
ListView
-
-
Method Details
-
renderViewContent
public void renderViewContent(double mouseX, double mouseY) - Specified by:
renderViewContent
in classWindowView
-
sortByColumn
-
resort
public void resort() -
getColumns
-
getColumnWidth
-
getSortColumn
-
isSortAscending
public boolean isSortAscending() -
getSelectedItem
-
setSelectedItem
-
addColumn
-
addColumn
-
addColumn
-
getItemView
-
setDeleteCallback
-