This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
java.awt
interface ItemSelectable
- All Known Subinterfaces:
- ButtonModel
- All Known Implementing Classes:
- AbstractButton, JButton, JMenuItem, JToggleButton, BasicArrowButton, MetalComboBoxButton, JCheckBoxMenuItem, JMenu, JRadioButtonMenuItem, JCheckBox, JRadioButton, MetalScrollButton, Checkbox, CheckboxMenuItem, Choice, JComboBox, List
public interface ItemSelectable
The interface for objects which contain a set of items for
which zero or more can be selected.
Method Summary |
void |
Adds a listener to receive item events when the state of an item is
changed by the user.
|
Object[] |
Returns the selected items or null if no
items are selected.
|
void |
Removes an item listener.
|
addItemListener
public void addItemListener(ItemListener l)
-
Adds a listener to receive item events when the state of an item is
changed by the user. Item events are not sent when an item's
state is set programmatically. If
l
is
null
, no exception is thrown and no action is performed.
- Parameters:
l
- the listener to receive events
getSelectedObjects
public Object[] getSelectedObjects()
-
Returns the selected items or
null
if no
items are selected.
removeItemListener
public void removeItemListener(ItemListener l)
-
Removes an item listener.
If
l
is null
,
no exception is thrown and no action is performed.
- Parameters:
l
- the listener being removed
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.