Obviously my previous addition of an abstract method broke the build
because I forgot the RootView in BasicTextUI. I fixed this.

2005-11-02  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/plaf/basic/BasicTextUI.java
        (RootView.getNextVisualPositionFrom): New method.

/Roman
Index: javax/swing/plaf/basic/BasicTextUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTextUI.java,v
retrieving revision 1.49
diff -u -r1.49 BasicTextUI.java
--- javax/swing/plaf/basic/BasicTextUI.java	31 Oct 2005 21:29:52 -0000	1.49
+++ javax/swing/plaf/basic/BasicTextUI.java	3 Nov 2005 16:04:03 -0000
@@ -56,6 +56,7 @@
 import javax.swing.InputMap;
 import javax.swing.JComponent;
 import javax.swing.LookAndFeel;
+import javax.swing.SwingConstants;
 import javax.swing.SwingUtilities;
 import javax.swing.UIDefaults;
 import javax.swing.UIManager;
@@ -328,6 +329,35 @@
     public void changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf)
     {
       view.changedUpdate(ev, shape, vf);
+    }
+
+    /**
+     * Returns the document position that is (visually) nearest to the given
+     * document position <code>pos</code> in the given direction <code>d</code>.
+     *
+     * @param c the text component
+     * @param pos the document position
+     * @param b the bias for <code>pos</code>
+     * @param d the direction, must be either [EMAIL PROTECTED] SwingConstants#NORTH},
+     *        [EMAIL PROTECTED] SwingConstants#SOUTH}, [EMAIL PROTECTED] SwingConstants#WEST} or
+     *        [EMAIL PROTECTED] SwingConstants#EAST}
+     * @param biasRet an array of [EMAIL PROTECTED] Position.Bias} that can hold at least
+     *        one element, which is filled with the bias of the return position
+     *        on method exit
+     *
+     * @return the document position that is (visually) nearest to the given
+     *         document position <code>pos</code> in the given direction
+     *         <code>d</code>
+     *
+     * @throws BadLocationException if <code>pos</code> is not a valid offset in
+     *         the document model
+     */
+    public int getNextVisualPositionFrom(JTextComponent c, int pos,
+                                         Position.Bias b, int d,
+                                         Position.Bias[] biasRet)
+      throws BadLocationException
+    {
+      return view.getNextVisualPositionFrom(c, pos, b, d, biasRet);
     }
   }
 
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to