home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-03-20 | 1.2 KB | 50 lines |
- /*
- * @(#)ItemSelectable.java 1.6 98/03/18
- *
- * Copyright 1996, 1997 by Sun Microsystems, Inc.,
- * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
- * All rights reserved.
- *
- * This software is the confidential and proprietary information
- * of Sun Microsystems, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Sun.
- */
-
- package java.awt;
-
- import java.awt.event.*;
-
- /**
- * The interface for objects which contain a set of items for
- * which zero or more can be selected.
- *
- * @version 1.6 03/18/98
- * @author Amy Fowler
- */
-
- public interface ItemSelectable {
-
- /**
- * Returns the selected items or null if no items are selected.
- */
- public Object[] getSelectedObjects();
-
- /**
- * Add a listener to recieve item events when the state of
- * an item changes.
- * @param l the listener to recieve events
- * @see ItemEvent
- */
- public void addItemListener(ItemListener l);
-
- /**
- * Removes an item listener.
- * @param l the listener being removed
- * @see ItemEvent
- */
- public void removeItemListener(ItemListener l);
-
- }
-