[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Some Swing text additions
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: Some Swing text additions |
Date: |
Thu, 03 Nov 2005 14:13:05 +0000 |
Hi,
I implemented the last missing methods in javax.swing.text.Utilities.
These should then be used by the text components to place the caret when
moving up or down using the arrow keys.
I had to add an abstract method to View, and an implementation of this to
all existing View implementations. Unfortunatly this introduces a couple
of new stubs, since I didn't want to bother implementing them all at
once (it's a difficult method). I have inserted a TODO tag and let them
throw an AssertionError, so we get clear results when using these
methods.
2005-11-02 Roman Kennke <address@hidden>
* javax/swing/text/Utilities.java
(getPositionAbove): New utility method.
(getPositionBelow): New utility method.
(getParagraphElement): Special case for StyledDocuments.
* javax/swing/text/View.java
(getNextVisualPositionFrom): New abstract method.
* javax/swing/text/ComponentView.java
(getNextVisualPositionFrom): New method.
* javax/swing/text/CompositeView.java
(getNextVisualPositionFrom): New method.
* javax/swing/text/FlowView.java
(LogicalView.getNextVisualPositionFrom): New method.
* javax/swing/text/GlyphView.java
(getNextVisualPositionFrom): New method.
* javax/swing/text/IconView.java
(getNextVisualPositionFrom): New method.
* javax/swing/text/PlainView.java
(getNextVisualPositionFrom): New method.
* javax/swing/text/WrappedPlainView.java
(WrappedLine.getNextVisualPositionFrom): New method.
/Roman
swing-text.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Some Swing text additions,
Roman Kennke <=