2000-04-09 12:13:27 +08:00
|
|
|
/* Copyright (C) 2000 Free Software Foundation
|
|
|
|
|
|
|
|
This file is part of libjava.
|
|
|
|
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
|
|
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
package java.awt;
|
|
|
|
import java.awt.event.*;
|
|
|
|
|
2000-12-26 08:25:13 +08:00
|
|
|
/** This interface is implemented by components that support the
|
|
|
|
* select of items. For instance, Checkbox implements this
|
|
|
|
* interface.
|
2000-04-09 12:13:27 +08:00
|
|
|
* @author Tom Tromey <tromey@cygnus.com>
|
|
|
|
* @date April 8, 2000
|
|
|
|
*/
|
|
|
|
public interface ItemSelectable
|
|
|
|
{
|
2000-12-26 08:25:13 +08:00
|
|
|
/** This method adds a listener to receive item events fired by the
|
|
|
|
* component.
|
|
|
|
* @param l The item listener to add.
|
|
|
|
*/
|
2000-04-09 12:13:27 +08:00
|
|
|
public void addItemListener (ItemListener l);
|
2000-12-26 08:25:13 +08:00
|
|
|
|
|
|
|
/** This method returns the items in this component which are
|
|
|
|
* currently selected.
|
|
|
|
* @returns A non-null array containing the items.
|
|
|
|
*/
|
2000-04-09 12:13:27 +08:00
|
|
|
public Object[] getSelectedObjects ();
|
2000-12-26 08:25:13 +08:00
|
|
|
|
|
|
|
/** This method removes an item listener.
|
|
|
|
* @param l The item listener to remove.
|
|
|
|
*/
|
2000-04-09 12:13:27 +08:00
|
|
|
public void removeItemListener (ItemListener l);
|
|
|
|
}
|