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 interface ItemSelectable { // Public Instance Methods public abstract void addItemListener(ItemListener l); public abstract Object[] getSelectedObjects(); public abstract void removeItemListener(ItemListener l); }
Checkbox, CheckboxMenuItem, Choice, List
ItemEvent()
ItemEvent.getItemSelectable()
This HTML Help has been published using the chm2web software. |