Author: rwhitcomb
Date: Tue Sep 24 20:55:09 2013
New Revision: 1526006

URL: http://svn.apache.org/r1526006
Log:
Convenience constructor for TextSpan that constructs and adds a default
piece of text.

This is a merge of revision 1526005 from trunk to branches/2.0.x.

Modified:
    pivot/branches/2.0.x/   (props changed)
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/text/TextSpan.java

Propchange: pivot/branches/2.0.x/
------------------------------------------------------------------------------
  Merged /pivot/trunk:r1526005

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/text/TextSpan.java
URL: 
http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/text/TextSpan.java?rev=1526006&r1=1526005&r2=1526006&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/text/TextSpan.java 
(original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/text/TextSpan.java Tue 
Sep 24 20:55:09 2013
@@ -29,6 +29,11 @@ public class TextSpan extends Element {
         super(span, recursive);
     }
 
+    public TextSpan(String text) {
+        super();
+        add(text);
+    }
+
     public int add(String text) {
         return add(new TextNode(text));
     }


Reply via email to