[Patch][gui] DefaultListSelectionModel
Michael Koch
konqueror@gmx.de
Fri Dec 31 16:30:00 GMT 2004
Hi list,
I commited the attached patch to add a missing method to
javax.swing.DefaultListSelectionModel.
Michael
2004-12-31 Michael Koch <konqueror@gmx.de>
* javax/swing/DefaultListSelectionModel.java
(fireValueChanged): New method.
-------------- next part --------------
Index: javax/swing/DefaultListSelectionModel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/DefaultListSelectionModel.java,v
retrieving revision 1.4.2.5
diff -u -r1.4.2.5 DefaultListSelectionModel.java
--- javax/swing/DefaultListSelectionModel.java 24 Dec 2004 11:46:07 -0000 1.4.2.5
+++ javax/swing/DefaultListSelectionModel.java 31 Dec 2004 16:26:37 -0000
@@ -520,6 +520,18 @@
*
* @param firstIndex The low index of the changed range
* @param lastIndex The high index of the changed range
+ */
+ protected void fireValueChanged(int firstIndex, int lastIndex)
+ {
+ fireValueChanged(firstIndex, lastIndex, getValueIsAdjusting());
+ }
+
+ /**
+ * Fires a {@link ListSelectionEvent} to all the listeners of type {@link
+ * ListSelectionListener} registered with this selection model.
+ *
+ * @param firstIndex The low index of the changed range
+ * @param lastIndex The high index of the changed range
* @param isAdjusting Whether this change is part of a seqence of adjustments
* made to the selection, such as during interactive scrolling
*/
More information about the Java-patches
mailing list