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
Nested ClassesModifier and TypeClassDescriptionclassA column in a list viewclass -
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddColumn(String name, Comparator<T> comparator, double widthWeight) doublegetColumnWidth(ListView<?>.Column column) booleanvoidrenderViewContent(double mouseX, double mouseY) voidresort()voidsetDeleteCallback(Consumer<T> deleteCallback) voidsetSelectedItem(ListItemContent selectedItem) voidsortByColumn(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, 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
-
ListView
-
-
Method Details
-
renderViewContent
public void renderViewContent(double mouseX, double mouseY) - Specified by:
renderViewContentin classWindowView
-
sortByColumn
-
resort
public void resort() -
getColumns
-
getColumnWidth
-
getSortColumn
-
isSortAscending
public boolean isSortAscending() -
getSelectedItem
-
setSelectedItem
-
addColumn
-
addColumn
-
addColumn
-
getItemView
-
setDeleteCallback
-