litesoft
Diff Revisions
629
vs
630
for /trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/input/PasswordInputField.java
|
@@ -1,18 +1,16 @@ |
1 |
1 |
|
package com.temp.client.foundation.widget.input; |
2 |
2 |
|
|
3 |
|
- |
import com.temp.client.foundation.widget.input.fieldsupport.*; |
4 |
|
- |
import com.temp.client.foundation.widget.input.support.*; |
|
3 |
+ |
import com.temp.client.foundation.widget.input.fieldsupport.AbstractGeneratedStringInputField; |
|
4 |
+ |
import com.temp.client.foundation.widget.input.fieldsupport.InputFieldAccessor; |
|
5 |
+ |
import com.temp.client.foundation.widget.input.support.TextBoxBaseValueAdapter; |
|
6 |
+ |
|
|
7 |
+ |
public class PasswordInputField extends AbstractGeneratedStringInputField<PasswordInputField> { |
|
8 |
+ |
private static final String STYLE = "field-password"; |
|
9 |
+ |
|
|
10 |
+ |
private final ActivePasswordTextBox field = new ActivePasswordTextBox(); |
5 |
11 |
|
|
6 |
|
- |
public class PasswordInputField extends AbstractGeneratedStringInputField |
7 |
|
- |
{ |
8 |
12 |
|
@Override |
9 |
|
- |
protected InputFieldAccessor<String> createBaseAccessor() |
10 |
|
- |
{ |
11 |
|
- |
ActivePasswordTextBox field = new ActivePasswordTextBox(); |
12 |
|
- |
field.setStyleName( "passwordField" ); |
13 |
|
- |
TextBoxBaseValueAdapter valueAdapter = new TextBoxBaseValueAdapter( field ); |
14 |
|
- |
InputWidgetValidator<String> validator = new InputWidgetValidator<String>( valueAdapter ); |
15 |
|
- |
InputWidgetChangeFilter<String> input = new InputWidgetChangeFilter<String>( validator ); |
16 |
|
- |
return new InputFieldAccessor<String>( input, validator, valueAdapter, field, field ); |
|
13 |
+ |
protected InputFieldAccessor<String> createBaseAccessor() { |
|
14 |
+ |
return createBaseAccessor(new TextBoxBaseValueAdapter(field), field, STYLE, field); |
17 |
15 |
|
} |
18 |
16 |
|
} |