This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gui] Patch: javax.swing.DefaultListSelectionModel
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 12 Aug 2004 09:55:12 +0200
- Subject: [gui] Patch: javax.swing.DefaultListSelectionModel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I jut commited the attached patch to fix a wrongly named method in
javax.swing.DefaultListSelectionModel.
Michael
2004-08-12 Michael Koch <konqueror@gmx.de>
* javax/swing/DefaultListSelectionModel.java
(fireValueChanged): Renamed from fireSelectionValueChanged,
made protected.
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBGyJkWSOgCCdjSDsRAsfJAJ9sIOYJrA4i7yqcd3FsK39XGlY05wCgh+uB
gAD6n9aGnPqXWxLvKDelEyY=
=VmD7
-----END PGP SIGNATURE-----
Index: javax/swing/DefaultListSelectionModel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/DefaultListSelectionModel.java,v
retrieving revision 1.4.2.2
diff -u -r1.4.2.2 DefaultListSelectionModel.java
--- javax/swing/DefaultListSelectionModel.java 7 Jun 2004 12:41:08 -0000 1.4.2.2
+++ javax/swing/DefaultListSelectionModel.java 12 Aug 2004 07:49:52 -0000
@@ -264,7 +264,7 @@
{
end = i;
}
- fireSelectionValueChanged(beg, end, valueIsAdjusting);
+ fireValueChanged(beg, end, valueIsAdjusting);
}
/**
@@ -409,7 +409,7 @@
int hi = Math.max(index0, index1);
sel.set(lo, hi+1);
- fireSelectionValueChanged(lo, hi, valueIsAdjusting);
+ fireValueChanged(lo, hi, valueIsAdjusting);
}
@@ -429,7 +429,7 @@
int lo = Math.min(index0, index1);
int hi = Math.max(index0, index1);
sel.clear(lo, hi+1);
- fireSelectionValueChanged(lo, hi, valueIsAdjusting);
+ fireValueChanged(lo, hi, valueIsAdjusting);
}
/**
@@ -439,7 +439,7 @@
{
int sz = sel.size();
sel.clear();
- fireSelectionValueChanged(0, sz, valueIsAdjusting);
+ fireValueChanged(0, sz, valueIsAdjusting);
}
/**
@@ -460,7 +460,7 @@
int lo = Math.min(index0, index1);
int hi = Math.max(index0, index1);
sel.set(lo, hi+1);
- fireSelectionValueChanged(lo, hi, valueIsAdjusting);
+ fireValueChanged(lo, hi, valueIsAdjusting);
}
/**
@@ -522,8 +522,8 @@
* @param isAdjusting Whether this change is part of a seqence of adjustments
* made to the selection, such as during interactive scrolling
*/
- public void fireSelectionValueChanged(int firstIndex, int lastIndex,
- boolean isAdjusting)
+ protected void fireValueChanged(int firstIndex, int lastIndex,
+ boolean isAdjusting)
{
ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex,
lastIndex, isAdjusting);