Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/SizeableTextBox.java

Diff revisions: vs.
  @@ -5,24 +5,20 @@
5 5
6 6 import com.google.gwt.user.client.ui.*;
7 7
8 - public class SizeableTextBox extends AbstractSizeableTextBoxBase
9 - {
8 + public class SizeableTextBox extends AbstractSizeableTextBoxBase {
10 9 private TextBox mTextBox = new TextBox();
11 10
12 - public SizeableTextBox()
13 - {
11 + public SizeableTextBox() {
14 12 initWidget( new ConstrainingSizeableOuterLayers( mTextBox, "LayoutSizeableTextBox" ) );
15 13 LLstretchableHorizontally();
16 14 }
17 15
18 16 @Override
19 - protected TextBoxBase getTextBoxBase()
20 - {
17 + protected TextBoxBase getTextBoxBase() {
21 18 return mTextBox;
22 19 }
23 20
24 - public SizeableTextBox style( String pStyleName )
25 - {
21 + public SizeableTextBox style( String pStyleName ) {
26 22 addStyleName( pStyleName );
27 23 return this;
28 24 }
  @@ -32,8 +28,7 @@
32 28 *
33 29 * @return the maximum length, in characters
34 30 */
35 - public int getMaxLength()
36 - {
31 + public int getMaxLength() {
37 32 return mTextBox.getMaxLength();
38 33 }
39 34
  @@ -42,8 +37,7 @@
42 37 *
43 38 * @return the number of visible characters
44 39 */
45 - public int getVisibleLength()
46 - {
40 + public int getVisibleLength() {
47 41 return mTextBox.getVisibleLength();
48 42 }
49 43
  @@ -52,8 +46,7 @@
52 46 *
53 47 * @param length the maximum length, in characters
54 48 */
55 - public SizeableTextBox setMaxLength( int length )
56 - {
49 + public SizeableTextBox setMaxLength( int length ) {
57 50 mTextBox.setMaxLength( length );
58 51 return this;
59 52 }
  @@ -63,8 +56,7 @@
63 56 *
64 57 * @param length the number of visible characters
65 58 */
66 - public SizeableTextBox setVisibleLength( int length )
67 - {
59 + public SizeableTextBox setVisibleLength( int length ) {
68 60 mTextBox.setVisibleLength( length );
69 61 return this;
70 62 }