I'm committing the attached trivial patch which adds two missing
constructors in the javax.accessibility package.
ChangeLog:
2008-01-14 Andrew John Hughes <[EMAIL PROTECTED]>
* javax/accessibility/AccessibleAttributeSequence.java:
(AccessibleAttributeSequence(int,int,AttributeSet)):
Implemented.
* javax/accessibility/AccessibleTextSequence.java:
(AccessibleTextSequence(int,int,String)):
Likewise.
Index: ChangeLog
===================================================================
RCS file: /sources/classpath/classpath/ChangeLog,v
retrieving revision 1.9470
diff -u -r1.9470 ChangeLog
--- ChangeLog 13 Jan 2008 17:33:49 -0000 1.9470
+++ ChangeLog 14 Jan 2008 10:37:54 -0000
@@ -1,4 +1,4 @@
-2008-01-13 2007-12-18 Leen Toelen <[EMAIL PROTECTED]>
+2008-01-13 Leen Toelen <[EMAIL PROTECTED]>
* native/fdlibm/ieeefp.h: Added avr32 support.
Index: javax/accessibility/AccessibleAttributeSequence.java
===================================================================
RCS file:
/sources/classpath/classpath/javax/accessibility/AccessibleAttributeSequence.java,v
retrieving revision 1.1
diff -u -r1.1 AccessibleAttributeSequence.java
--- javax/accessibility/AccessibleAttributeSequence.java 10 Apr 2006
16:49:14 -0000 1.1
+++ javax/accessibility/AccessibleAttributeSequence.java 14 Jan 2008
10:37:54 -0000
@@ -41,8 +41,12 @@
import javax.swing.text.AttributeSet;
/**
- * This is a convenience class that represents an accessible
- * attribute sequence.
+ * This is a convenience class that wraps together a sequence
+ * of text with the attributes applied to it. This allows a single
+ * object to be used when
+ * [EMAIL PROTECTED] AccessibleContext#ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED}
+ * events are fired.
+ *
* @since 1.5
*/
public class AccessibleAttributeSequence
@@ -63,9 +67,19 @@
public int endIndex;
/**
- * Create a new instance.
+ * Creates a new instance using the specified attributes
+ * and the supplied start and end indicies.
+ *
+ * @param start the index of the start of the text.
+ * @param end the index of the end of the text.
+ * @param attr the attributes applied to the text sequence.
+ * @since 1.6
*/
- public AccessibleAttributeSequence()
+ public AccessibleAttributeSequence(int start, int end, AttributeSet attr)
{
+ startIndex = start;
+ endIndex = end;
+ attributes = attr;
}
+
}
Index: javax/accessibility/AccessibleTextSequence.java
===================================================================
RCS file:
/sources/classpath/classpath/javax/accessibility/AccessibleTextSequence.java,v
retrieving revision 1.1
diff -u -r1.1 AccessibleTextSequence.java
--- javax/accessibility/AccessibleTextSequence.java 10 Apr 2006 16:49:14
-0000 1.1
+++ javax/accessibility/AccessibleTextSequence.java 14 Jan 2008 10:37:54
-0000
@@ -39,7 +39,10 @@
package javax.accessibility;
/**
- * This is a convenience class that encapsulates a String and a range.
+ * This is a convenience class that encapsulates a string of text
+ * and a range specifying where, within a larger body of text, the
+ * string may be found.
+ *
* @since 1.5
*/
public class AccessibleTextSequence
@@ -61,8 +64,18 @@
/**
* Create a new instance.
+ *
+ * @param start the initial index of the text within a larger
+ * body of text.
+ * @param end the final index of the text within a larger body
+ * of text.
+ * @param txt the text itself.
+ * @since 1.6
*/
- public AccessibleTextSequence()
+ public AccessibleTextSequence(int start, int end, String txt)
{
+ startIndex = start;
+ endIndex = end;
+ text = txt;
}
}