summaryrefslogtreecommitdiff
path: root/javax/swing/ComboBoxModel.java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2005-01-14 10:24:02 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2005-01-14 10:24:02 +0000
commitc61f399b1d3c471a8e459a4a2be645f95560f088 (patch)
tree14e7f5759d2cded647d22e019435a770b8ed69e5 /javax/swing/ComboBoxModel.java
parent451c55a31fbc6b949f7609dd90932bb2a0d91a19 (diff)
downloadclasspath-c61f399b1d3c471a8e459a4a2be645f95560f088.tar.gz
2005-01-14 Andrew John Hughes <gnu_andrew@member.fsf.org>
* Merge of September 2004 HEAD patches to generics branch.
Diffstat (limited to 'javax/swing/ComboBoxModel.java')
-rw-r--r--javax/swing/ComboBoxModel.java46
1 files changed, 25 insertions, 21 deletions
diff --git a/javax/swing/ComboBoxModel.java b/javax/swing/ComboBoxModel.java
index b3b2112b5..c3b59bda6 100644
--- a/javax/swing/ComboBoxModel.java
+++ b/javax/swing/ComboBoxModel.java
@@ -37,28 +37,32 @@ exception statement from your version. */
package javax.swing;
+
/**
- * ComboBoxModel
- * @author Andrew Selkirk
- * @version 1.0
+ * ComboBoxModel is a data model for JComboBox. This model keeps
+ * track of elements contained in the JComboBox as well as the current
+ * combo box selection. Whenever selection in the JComboBox changes, the
+ * ComboBoxModel should fire ListDataEvents to ComboBox's ListDataListeners.
+ *
+ * @author Andrew Selkirk
+ * @version 1.0
*/
-public interface ComboBoxModel extends ListModel {
-
- //-------------------------------------------------------------
- // Methods ----------------------------------------------------
- //-------------------------------------------------------------
-
- /**
- * setSelectedItem
- * @param item TODO
- */
- void setSelectedItem(Object item);
-
- /**
- * getSelectedItem
- * @returns Object
- */
- Object getSelectedItem();
-
+public interface ComboBoxModel extends ListModel
+{
+ /**
+ * This method sets the selected item in the combo box. Class
+ * implementing this interface should fire ListDataEvents to
+ * all registered ListDataListeners to indicated that the
+ * selection has changed.
+ *
+ * @param item item in the combo box that should be selected
+ */
+ void setSelectedItem(Object item);
+ /**
+ * The method returns currently selected item in the combo box
+ *
+ * @returns item that is currently selected in the combo box.
+ */
+ Object getSelectedItem();
} // ComboBoxModel