ListView
The ListView
component shows a list of items.
ListViewComponent listViewComponent = new ListViewComponent();
listViewComponent.elements(
Arrays.asList("Copper", "Iron", "Steel",
"Bronze", "Aluminium", "Zinc", "Magnesium",
"Tin", "Lead", "Gold", "Silver"));
listViewComponent.attachScrollBar();
listViewComponent.width(15);
listViewComponent.height(5);

Methods
Method | Description |
---|---|
| Sets the cursor style (Default: TextFont.REVERSED) |
| Returns a list of all items |
| Set all items |
| Return the scrollbar config. If none is present, null is returned. |
| Creating a new Scrollbar and return |
| Remove scrollbar |
| Updates the scrollbar if present |
| Sets cursor index |
| Return cursor index |
Events
Event | Description |
---|---|
ListItemInteractEvent | Event on interaction of an item |
Last modified: 01 Juni 2025