litesoft
Diff Revisions
947
vs
948
for /trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/input/support/OptionBoxBaseValueAdapter.java
|
@@ -1,22 +1,22 @@ |
1 |
1 |
|
package com.temp.client.foundation.widget.input.support; |
2 |
2 |
|
|
3 |
|
- |
import com.google.gwt.event.dom.client.ChangeHandler; |
4 |
|
- |
import com.google.gwt.event.shared.HandlerRegistration; |
5 |
|
- |
import com.temp.client.foundation.widget.OptionBox; |
6 |
|
- |
import com.temp.client.foundation.widget.input.fieldsupport.InputWidgetValueAdapter; |
7 |
|
- |
import com.temp.shared.utils.Validate; |
|
3 |
+ |
import com.google.gwt.event.dom.client.*; |
|
4 |
+ |
import com.google.gwt.event.shared.*; |
|
5 |
+ |
import com.temp.client.foundation.widget.*; |
|
6 |
+ |
import com.temp.client.foundation.widget.input.fieldsupport.*; |
|
7 |
+ |
import com.temp.shared.utils.*; |
8 |
8 |
|
|
9 |
9 |
|
public class OptionBoxBaseValueAdapter<T> implements InputWidgetValueAdapter<T> { |
10 |
10 |
|
|
11 |
11 |
|
private final OptionBox<T> inputWidget; |
12 |
12 |
|
|
13 |
|
- |
public OptionBoxBaseValueAdapter(OptionBox<T> inputWidget) { |
14 |
|
- |
Validate.notNull("inputWidget", this.inputWidget = inputWidget); |
|
13 |
+ |
public OptionBoxBaseValueAdapter( OptionBox<T> inputWidget ) { |
|
14 |
+ |
Validate.notNull( "inputWidget", this.inputWidget = inputWidget ); |
15 |
15 |
|
} |
16 |
16 |
|
|
17 |
17 |
|
@Override |
18 |
|
- |
public HandlerRegistration addChangeHandler(ChangeHandler handler) { |
19 |
|
- |
return inputWidget.addChangeHandler(handler); |
|
18 |
+ |
public HandlerRegistration addChangeHandler( ChangeHandler handler ) { |
|
19 |
+ |
return inputWidget.addChangeHandler( handler ); |
20 |
20 |
|
} |
21 |
21 |
|
|
22 |
22 |
|
@Override |
|
@@ -25,7 +25,7 @@ |
25 |
25 |
|
} |
26 |
26 |
|
|
27 |
27 |
|
@Override |
28 |
|
- |
public void setValue(T value) { |
29 |
|
- |
inputWidget.setSelected(value); |
|
28 |
+ |
public void setValue( T value ) { |
|
29 |
+ |
inputWidget.setSelected( value ); |
30 |
30 |
|
} |
31 |
31 |
|
} |