public class ArraySelection<T> extends Selection<T>
Constructor and Description |
---|
ArraySelection(Array<T> array) |
Modifier and Type | Method and Description |
---|---|
void |
choose(T item)
Selects or deselects the specified item based on how the selection is configured, whether ctrl is currently pressed, etc.
|
boolean |
getRangeSelect() |
void |
setRangeSelect(boolean rangeSelect) |
void |
validate()
Removes objects from the selection that are no longer in the items array.
|
add, addAll, clear, contains, fireChangeEvent, first, getLastSelected, getMultiple, getRequired, getToggle, hasItems, isDisabled, isEmpty, items, iterator, remove, removeAll, set, setActor, setAll, setDisabled, setMultiple, setProgrammaticChangeEvents, setRequired, setToggle, size, toArray, toArray, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public void choose(T item)
Selection
public boolean getRangeSelect()
public void setRangeSelect(boolean rangeSelect)
public void validate()
Selection.getRequired()
is true and there is no
selected item, the first item is selected.Copyright © 2015. All rights reserved.