public interface UIItemList
Modifier and Type | Interface and Description |
---|---|
static class |
UIItemList.BasicList |
static class |
UIItemList.Impl |
static class |
UIItemList.Item
Interface to which items in the list must conform
|
static interface |
UIItemList.Listener |
static class |
UIItemList.ScrollList |
static class |
UIItemList.Section
A section is an item in the list that indents the items beneath it.
|
Modifier and Type | Method and Description |
---|---|
UIItemList |
addItem(int index,
UIItemList.Item item)
Adds an item to the list at the given index
|
UIItemList |
addItem(UIItemList.Item item)
Adds an item to the list
|
UIItemList |
addListener(UIItemList.Listener listener)
Adds a listener to receive notifications about list operations
|
UIItemList |
addSection(UIItemList.Section section)
Add a section to the list
|
UIItemList |
clearItems()
Clears all items in the list
|
int |
getFocusedIndex()
Returns the index of the currently focused item in the list
|
UIItemList.Item |
getFocusedItem()
Retrieves the currently focused item in the list.
|
List<? extends UIItemList.Item> |
getItems()
Get the items in the list
|
UIItemList |
moveItem(UIItemList.Item item,
int index)
Moves an item to another location in the list
|
UIItemList |
removeItem(UIItemList.Item item)
Removes an item from the list
|
UIItemList |
removeListener(UIItemList.Listener listener)
Removes a listener from receiving notifications about list operations
|
UIItemList |
setControlSurfaceFocus(int index,
int length)
Sets a control focus range that is highlighted in the list
|
UIItemList |
setFocusIndex(int focusIndex)
Sets the index of the focused item in the list.
|
UIItemList |
setItems(List<? extends UIItemList.Item> items)
Sets the items in the list and redraws it
|
UIItemList |
setMomentary(boolean momentary)
Sets whether the item list is momentary.
|
UIItemList |
setRenamable(boolean isRenamable)
Sets whether renaming items is allowed
|
UIItemList |
setReorderable(boolean reorderable)
Sets whether the list is reorderable.
|
UIItemList |
setShowCheckboxes(boolean showCheckboxes)
Sets whether a column of checkboxes should be shown on the item list, to the
left of the labels.
|
UIItemList |
setSingleClickActivate(boolean singleClickActivate)
Sets whether single-clicks on an item should activate them.
|
UIItemList setFocusIndex(int focusIndex)
focusIndex
- Index of item to focusint getFocusedIndex()
UIItemList.Item getFocusedItem()
UIItemList addItem(UIItemList.Item item)
item
- Item to addUIItemList addItem(int index, UIItemList.Item item)
index
- Index to add the item atitem
- Item to addUIItemList removeItem(UIItemList.Item item)
item
- Item to removeUIItemList moveItem(UIItemList.Item item, int index)
item
- Item to moveindex
- Index to move toUIItemList setItems(List<? extends UIItemList.Item> items)
items
- ItemsUIItemList clearItems()
List<? extends UIItemList.Item> getItems()
UIItemList addSection(UIItemList.Section section)
section
- SectionUIItemList setSingleClickActivate(boolean singleClickActivate)
singleClickActivate
- Whether to activate on a single clickUIItemList setShowCheckboxes(boolean showCheckboxes)
showCheckboxes
- Whether to show checkboxesUIItemList setRenamable(boolean isRenamable)
isRenamable
- If items may be renamedUIItemList setMomentary(boolean momentary)
momentary
- Whether items are momentaryUIItemList setReorderable(boolean reorderable)
reorderable
- Whether items are reorderableUIItemList setControlSurfaceFocus(int index, int length)
index
- Start of the surface focuslength
- Length of the surface focus blockUIItemList addListener(UIItemList.Listener listener)
listener
- ListenerUIItemList removeListener(UIItemList.Listener listener)
listener
- ListenerLX library by Mark C. Slee. © 2012-2020