litesoft
Diff Revisions
626
vs
629
for /trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/input/fieldsupport/InputType.java
|
@@ -1,27 +1,10 @@ |
1 |
1 |
|
package com.temp.client.foundation.widget.input.fieldsupport; |
2 |
2 |
|
|
3 |
|
- |
import com.temp.client.foundation.widget.input.*; |
4 |
|
- |
import com.temp.client.foundation.widget.input.support.*; |
5 |
|
- |
|
6 |
3 |
|
/** |
7 |
4 |
|
* Will need to have an adapter for RadioGroup |
8 |
5 |
|
*/ |
9 |
6 |
|
public enum InputType |
10 |
7 |
|
{ |
11 |
|
- |
String |
12 |
|
- |
{ |
13 |
|
- |
@SuppressWarnings({"unchecked"}) @Override |
14 |
|
- |
public InputFieldAccessor<String> createAccessor() |
15 |
|
- |
{ |
16 |
|
- |
ActiveTextBox field = new ActiveTextBox(); |
17 |
|
- |
InputWidgetValidator<String> validator = new InputWidgetValidator<String>( new TextBoxBaseValueAdapter( field ) ); |
18 |
|
- |
InputWidgetChangeFilter<String> input = new InputWidgetChangeFilter<String>( validator ); |
19 |
|
- |
return new InputFieldAccessor<String>( input, validator, field ); |
20 |
|
- |
} |
21 |
|
- |
}, // |
22 |
|
- |
Text |
23 |
|
- |
{ |
24 |
|
- |
}, // |
25 |
8 |
|
Choice |
26 |
9 |
|
{ |
27 |
10 |
|
}, // |