An interface that describes an object that has one or more items that can be selected.
public abstract interface ItemSelectable { // Instance Methods public abstract void addItemListener (ItemListener l); public abstract Object[] getSelectedObjects(); public abstract void removeItemListener (ItemListener l); }
The listener to be added.
Adds a listener for ItemEvent objects.
This method returns an array containing Objects representing the items that are currently selected. If no items are selected, null is returned.
The listener to be removed.
Removes the specified ItemListener so it will not receive ItemEvent objects.
Checkbox, CheckboxMenuItem, Choice, ItemEvent, ItemListener, List