This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gui] Patch: javax.swing.text.Position.Bias


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I just commited the attached patch to implement 
javax.swing.text.Position.Bias.


Michael


2004-07-10  Michael Koch  <konqueror@gmx.de>

	* javax/swing/text/Position.java
	(Bias): Implemented.
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA7+MIWSOgCCdjSDsRAoxSAJ473jvZPHMmW4hJnYUlSJG+1JQH8QCfa4Gg
3ETc9BchitYWNV5KcDKWvTk=
=ey5b
-----END PGP SIGNATURE-----
Index: javax/swing/text/Position.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/text/Position.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 Position.java
--- javax/swing/text/Position.java	9 Aug 2002 04:26:12 -0000	1.1
+++ javax/swing/text/Position.java	10 Jul 2004 12:34:10 -0000
@@ -1,5 +1,5 @@
 /* Position.java -- 
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -42,6 +42,20 @@
 {
     static class Bias
     {
+    public static final Bias Backward = new Bias("backward");
+    public static final Bias Forward = new Bias("forward");
+
+    private String name;
+    
+    private Bias(String n)
+    {
+      name = n;
+    }
+
+    public String toString()
+    {
+      return name;
+    }
     }
     
     int getOffset();

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]