You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2013/02/16 01:15:50 UTC

svn commit: r1446823 - in /pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk: TextArea.java TextInput.java

Author: smartini
Date: Sat Feb 16 00:15:49 2013
New Revision: 1446823

URL: http://svn.apache.org/r1446823
Log:
PIVOT-893: lower default value (good in practice) for maximumLength in TextInput and TextArea

Modified:
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextInput.java

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java?rev=1446823&r1=1446822&r2=1446823&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java Sat Feb 16 00:15:49 2013
@@ -582,7 +582,7 @@ public class TextArea extends Component 
 
     private boolean expandTabs = false;
 
-    private int maximumLength = Integer.MAX_VALUE;
+    private int maximumLength = 1048575;
     private boolean editable = true;
 
     private String textKey = null;

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextInput.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextInput.java?rev=1446823&r1=1446822&r2=1446823&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextInput.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextInput.java Sat Feb 16 00:15:49 2013
@@ -265,7 +265,7 @@ public class TextInput extends Component
     private int selectionLength = 0;
 
     private int textSize = DEFAULT_TEXT_SIZE;
-    private int maximumLength = Integer.MAX_VALUE;
+    private int maximumLength = 32767;
     private boolean password = false;
     private String prompt = null;
     private boolean editable = true;