litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/PasswordTextBoxChangeListenable.java
|
@@ -6,31 +6,27 @@ |
6 |
6 |
|
import com.google.gwt.user.client.*; |
7 |
7 |
|
import com.google.gwt.user.client.ui.*; |
8 |
8 |
|
|
9 |
|
- |
public class PasswordTextBoxChangeListenable extends PasswordTextBox implements IExtendedTextBox |
10 |
|
- |
{ |
11 |
|
- |
public PasswordTextBoxChangeListenable() |
12 |
|
- |
{ |
|
9 |
+ |
public class PasswordTextBoxChangeListenable extends PasswordTextBox implements IExtendedTextBox { |
|
10 |
+ |
public PasswordTextBoxChangeListenable() { |
13 |
11 |
|
mHelper = new TextBoxBaseChangeListenableHelper( this ); |
14 |
12 |
|
} |
15 |
13 |
|
|
16 |
14 |
|
TextBoxBaseChangeListenableHelper mHelper; |
17 |
15 |
|
|
18 |
16 |
|
@Override |
19 |
|
- |
protected void onDetach() |
20 |
|
- |
{ |
|
17 |
+ |
protected void onDetach() { |
21 |
18 |
|
super.onDetach(); |
22 |
19 |
|
mHelper.onDetach(); |
23 |
20 |
|
} |
24 |
21 |
|
|
25 |
22 |
|
@Override |
26 |
|
- |
public void setText( String text ) |
27 |
|
- |
{ |
|
23 |
+ |
public void setText( String text ) { |
28 |
24 |
|
super.setText( text ); |
29 |
25 |
|
mHelper.setText( text ); |
30 |
26 |
|
} |
31 |
27 |
|
|
32 |
|
- |
@Override public void setEnabled( boolean enabled ) |
33 |
|
- |
{ |
|
28 |
+ |
@Override |
|
29 |
+ |
public void setEnabled( boolean enabled ) { |
34 |
30 |
|
DOM.setElementPropertyBoolean( getElement(), "readOnly", !enabled ); |
35 |
31 |
|
} |
36 |
32 |
|
|
|
@@ -40,8 +36,7 @@ |
40 |
36 |
|
* @return the maximum length, in characters |
41 |
37 |
|
*/ |
42 |
38 |
|
@Override |
43 |
|
- |
public int getMaxLength() |
44 |
|
- |
{ |
|
39 |
+ |
public int getMaxLength() { |
45 |
40 |
|
return DOM.getElementPropertyInt( getElement(), "maxLength" ); |
46 |
41 |
|
} |
47 |
42 |
|
|
|
@@ -51,8 +46,7 @@ |
51 |
46 |
|
* @return the number of visible characters |
52 |
47 |
|
*/ |
53 |
48 |
|
@Override |
54 |
|
- |
public int getVisibleLength() |
55 |
|
- |
{ |
|
49 |
+ |
public int getVisibleLength() { |
56 |
50 |
|
return DOM.getElementPropertyInt( getElement(), "size" ); |
57 |
51 |
|
} |
58 |
52 |
|
|
|
@@ -62,8 +56,7 @@ |
62 |
56 |
|
* @param length the maximum length, in characters |
63 |
57 |
|
*/ |
64 |
58 |
|
@Override |
65 |
|
- |
public void setMaxLength( int length ) |
66 |
|
- |
{ |
|
59 |
+ |
public void setMaxLength( int length ) { |
67 |
60 |
|
DOM.setElementPropertyInt( getElement(), "maxLength", length ); |
68 |
61 |
|
} |
69 |
62 |
|
|
|
@@ -73,8 +66,7 @@ |
73 |
66 |
|
* @param length the number of visible characters |
74 |
67 |
|
*/ |
75 |
68 |
|
@Override |
76 |
|
- |
public void setVisibleLength( int length ) |
77 |
|
- |
{ |
|
69 |
+ |
public void setVisibleLength( int length ) { |
78 |
70 |
|
DOM.setElementPropertyInt( getElement(), "size", length ); |
79 |
71 |
|
} |
80 |
72 |
|
} |