< prev index next >

src/java.desktop/share/classes/java/awt/ItemSelectable.java

Print this page

        

*** 35,65 **** */ public interface ItemSelectable { /** ! * Returns the selected items or <code>null</code> if no * items are selected. * * @return the list of selected objects, or {@code null} */ public Object[] getSelectedObjects(); /** * 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 <code>l</code> is ! * <code>null</code>, no exception is thrown and no action is performed. * * @param l the listener to receive events * @see ItemEvent */ public void addItemListener(ItemListener l); /** * Removes an item listener. ! * If <code>l</code> is <code>null</code>, * no exception is thrown and no action is performed. * * @param l the listener being removed * @see ItemEvent */ --- 35,65 ---- */ public interface ItemSelectable { /** ! * Returns the selected items or {@code null} if no * items are selected. * * @return the list of selected objects, or {@code null} */ public Object[] getSelectedObjects(); /** * 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 {@code l} is ! * {@code null}, no exception is thrown and no action is performed. * * @param l the listener to receive events * @see ItemEvent */ public void addItemListener(ItemListener l); /** * Removes an item listener. ! * If {@code l} is {@code null}, * no exception is thrown and no action is performed. * * @param l the listener being removed * @see ItemEvent */
< prev index next >