java.awt.ItemSelectable (JDK 1.1)
This interface abstracts the functionality of an AWT component that presents one or more items to the user and allows the user to select zero or more of them. It is implemented by several components in the AWT.
getSelectedObjects() returns an array of selected objects, or null, if none are selected. addItemListener() and removeItemListener() are standard methods for adding and removing ItemListener objects to be notified when an item is selected.
public abstract interfaceItemSelectable{ //Public Instance Methodspublic abstract voidaddItemListener(ItemListenerl); public abstract Object[]getSelectedObjects(); public abstract voidremoveItemListener(ItemListenerl); }
Implemented By:
Checkbox, CheckboxMenuItem, Choice, List
Passed To:
ItemEvent()
Returned By:
ItemEvent.getItemSelectable()