[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] [Patch][gui] document/content handling in javax.swing.text
From: |
Michael Koch |
Subject: |
[cp-patches] [Patch][gui] document/content handling in javax.swing.text |
Date: |
Sun, 2 Jan 2005 13:52:47 +0100 |
User-agent: |
Mutt/1.5.6+20040907i |
Hi list,
I commited the attached patch to fix some issues with document/content
handling in javax.swing.text. The document elements should be rebuild
correctly when the content gets updated.
Michael
2005-01-02 Michael Koch <address@hidden>
* javax/swing/text/AbstractDocument.java
(AbstractElement.getLength): Fixed off-by-one error.
(AbstractElement.children): Made abstract.
(AbstractElement.getAllowsChildren): Likewise.
(AbstractElement.getElement): Likewise.
(AbstractElement.dumpElement): New private method.
(AbstractElement.dump): New method.
(BranchElememt.getName): Fixed implementation.
(BranchElememt.toString): Likewise.
(BranchElememt.getElement): Fixed arguments.
(LeafElement.getName): Fixed implementation.
(LeafElement.toString): Likewise.
* javax/swing/text/GapContent.java
(GapContent): Put default content into buffer.
* javax/swing/text/PlainDocument.java
(reindex): Use empty attribute sets instead of null.
(createDefaultRoot): Reimplemented.
(insertUpdate): Call super method.
(removeUpdate): Likewise.
(getParagraphElement): Implemented.
swing.diff
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] [Patch][gui] document/content handling in javax.swing.text,
Michael Koch <=