public final class ItemSelection
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
add(Item item)
Adds the specified item to the selection.
|
void |
clear()
Clears the selection.
|
boolean |
contains(Item item)
Determines whether the specified item is currently selected.
|
int |
getCount()
Gets the number of selected items.
|
Item[] |
getItems()
Gets the selected items.
|
void |
remove(Item item)
Removes the specified item from the selection.
|
public void add(Item item)
item
- The Item
instance to be added to the selection.public void remove(Item item)
item
- The Item
instance to be removed from the selection.public boolean contains(Item item)
item
- The Item
instance to search for in the selection.public void clear()
public Item[] getItems()
Item
objects.public int getCount()