ChangeEvent on an actor. Selection changes can be vetoed via
ChangeEvent#cancel().
| Modifier and Type | Field and Description |
|---|---|
| private Actor | |
| pack-priv boolean | |
| pack-priv T | |
| pack-priv boolean | |
| private final OrderedSet | |
| private boolean | |
| pack-priv boolean | |
| pack-priv final OrderedSet | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| protected void | |
| public void | choose(T item)
Selects or deselects the specified item based on how the selection is configured, whether ctrl is currently pressed, etc. This is typically invoked by user interaction. |
| pack-priv void | |
| public void | |
| public boolean | |
| public boolean | Returns: true if the change should be undone.Fires a change event on the selection's actor, if any. |
| public T | |
| public T | getLastSelected()
Makes a best effort to return the last item selected, else returns an arbitrary item or null if the selection is empty. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public OrderedSet | |
| public Iterator | |
| public boolean | |
| public void | |
| public void | |
| pack-priv void | |
| public void | |
| public void | |
| public void | |
| public void | setDisabled(boolean isDisabled)
Implements com. If true, prevents |
| public void | |
| public void | setProgrammaticChangeEvents(boolean programmaticChangeEvents)
If false, only |
| public void | |
| public void | |
| public int | |
| pack-priv void | |
| public Array | |
| public Array | |
| public String |
| actor | back to summary |
|---|---|
| private Actor actor
| |
| isDisabled | back to summary |
|---|---|
| pack-priv boolean isDisabled | |
| lastSelected | back to summary |
|---|---|
| pack-priv T lastSelected
| |
| multiple | back to summary |
|---|---|
| pack-priv boolean multiple | |
| old | back to summary |
|---|---|
| private final OrderedSet<T> old | |
| programmaticChangeEvents | back to summary |
|---|---|
| private boolean programmaticChangeEvents | |
| required | back to summary |
|---|---|
| pack-priv boolean required | |
| selected | back to summary |
|---|---|
| pack-priv final OrderedSet<T> selected | |
| toggle | back to summary |
|---|---|
| private boolean toggle | |
| Selection | back to summary |
|---|---|
| public Selection() | |
| add | back to summary |
|---|---|
| public void add(T item) Adds the item to the selection. | |
| addAll | back to summary |
|---|---|
| public void addAll(Array<T> items) | |
| changed | back to summary |
|---|---|
| protected void changed() Called after the selection changes. The default implementation does nothing. | |
| choose | back to summary |
|---|---|
| public void choose(T item) Selects or deselects the specified item based on how the selection is configured, whether ctrl is currently pressed, etc. This is typically invoked by user interaction. | |
| cleanup | back to summary |
|---|---|
| pack-priv void cleanup() | |
| clear | back to summary |
|---|---|
| public void clear() | |
| contains | back to summary |
|---|---|
public boolean contains(T item)
| |
| fireChangeEvent | back to summary |
|---|---|
| public boolean fireChangeEvent() Fires a change event on the selection's actor, if any. Called internally when the selection changes, depending on
| |
| first | back to summary |
|---|---|
| public T first() Returns the first selected item, or null.
| |
| getLastSelected | back to summary |
|---|---|
| public T getLastSelected() Makes a best effort to return the last item selected, else returns an arbitrary item or null if the selection is empty.
| |
| getMultiple | back to summary |
|---|---|
| public boolean getMultiple() | |
| getProgrammaticChangeEvents | back to summary |
|---|---|
| public boolean getProgrammaticChangeEvents() | |
| getRequired | back to summary |
|---|---|
| public boolean getRequired() | |
| getToggle | back to summary |
|---|---|
| public boolean getToggle() | |
| hasItems | back to summary |
|---|---|
| public boolean hasItems()
Deprecated Use
| |
| isDisabled | back to summary |
|---|---|
| public boolean isDisabled() Implements com. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| items | back to summary |
|---|---|
| public OrderedSet | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| notEmpty | back to summary |
|---|---|
| public boolean notEmpty() | |
| remove | back to summary |
|---|---|
| public void remove(T item) | |
| removeAll | back to summary |
|---|---|
| public void removeAll(Array<T> items) | |
| revert | back to summary |
|---|---|
| pack-priv void revert() | |
| set | back to summary |
|---|---|
| public void set(T item) Sets the selection to only the specified item. | |
| setActor | back to summary |
|---|---|
public void setActor(Actor actor)
| |
| setAll | back to summary |
|---|---|
| public void setAll(Array<T> items) | |
| setDisabled | back to summary |
|---|---|
| public void setDisabled(boolean isDisabled) Implements com. If true, prevents | |
| setMultiple | back to summary |
|---|---|
| public void setMultiple(boolean multiple) If true, allows | |
| setProgrammaticChangeEvents | back to summary |
|---|---|
| public void setProgrammaticChangeEvents(boolean programmaticChangeEvents) If false, only | |
| setRequired | back to summary |
|---|---|
| public void setRequired(boolean required) If true, prevents | |
| setToggle | back to summary |
|---|---|
| public void setToggle(boolean toggle) If true, prevents | |
| size | back to summary |
|---|---|
| public int size() | |
| snapshot | back to summary |
|---|---|
| pack-priv void snapshot() | |
| toArray | back to summary |
|---|---|
| public Array | |
| toArray | back to summary |
|---|---|
| public Array | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |