/[Apache-SVN]
ViewVC logotype

Revision 1839358


Jump to revision: Previous Next
Author: rwhitcomb
Date: Mon Aug 27 17:43:38 2018 UTC (5 years, 8 months ago)
Changed paths: 4
Log Message:
Several fixes to TextPane:
* Fix previous changes that made ImageNode (and ComponentNode) into subclasses
  of Block so that they could be inserted directly into a document.  This was
  shown to be a flawed strategy, and ComponentNode was fixed by a previous
  change.  Make ImageNode back into a direct subclass of Node.
* Add an implementation of "getCharacters" to ImageNode to satisfy the abstract
  declaration of Node (this is relatively new).
* Change Document to allow ImageNode (and previously ComponentNode) as possible
  direct inserts into a Document
* Add a method to ClassUtils to check any number of possible classes for an
  "instanceOf" check, and use this in Document.
* Unrelated, but discovered in the same test program:  fix CharUtils.selectWord
  to gracefully handle a null input sequence.


Changed paths

Path Details
Directorypivot/trunk/core/src/org/apache/pivot/util/CharUtils.java modified , text changed
Directorypivot/trunk/core/src/org/apache/pivot/util/ClassUtils.java modified , text changed
Directorypivot/trunk/wtk/src/org/apache/pivot/wtk/text/Document.java modified , text changed
Directorypivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26