litesoft
Diff Revisions
947
vs
948
for /trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/input/InputField.java
|
@@ -1,10 +1,11 @@ |
1 |
1 |
|
package com.temp.client.foundation.widget.input; |
2 |
2 |
|
|
3 |
|
- |
import com.google.gwt.user.client.ui.HasName; |
4 |
|
- |
import com.temp.client.foundation.widget.input.fieldsupport.FocusChangedListener; |
5 |
|
- |
import com.temp.client.foundation.widget.input.support.FormEngineMember; |
6 |
|
- |
import org.litesoft.core.util.externalization.E13nData; |
7 |
|
- |
import com.temp.shared.utils.Visible; |
|
3 |
+ |
import org.litesoft.core.util.externalization.*; |
|
4 |
+ |
|
|
5 |
+ |
import com.google.gwt.user.client.ui.*; |
|
6 |
+ |
import com.temp.client.foundation.widget.input.fieldsupport.*; |
|
7 |
+ |
import com.temp.client.foundation.widget.input.support.*; |
|
8 |
+ |
import com.temp.shared.utils.*; |
8 |
9 |
|
|
9 |
10 |
|
/** |
10 |
11 |
|
* An interface for an Input Field. |
|
@@ -49,22 +50,24 @@ |
49 |
50 |
|
* |
50 |
51 |
|
* @param <T> the data type returned by this InputField |
51 |
52 |
|
*/ |
52 |
|
- |
public interface InputField<T> extends FormEngineMember, HasName, Visible { |
|
53 |
+ |
public interface InputField<T> extends FormEngineMember, |
|
54 |
+ |
HasName, |
|
55 |
+ |
Visible { |
53 |
56 |
|
interface ChangeListener<T2> { |
54 |
|
- |
void changed(InputField<T2> field); |
|
57 |
+ |
void changed( InputField<T2> field ); |
55 |
58 |
|
} |
56 |
59 |
|
|
57 |
60 |
|
// Callable anytime: |
58 |
61 |
|
|
59 |
|
- |
InputField<T> add(FocusChangedListener focusChangedListener); |
|
62 |
+ |
InputField<T> add( FocusChangedListener focusChangedListener ); |
60 |
63 |
|
|
61 |
|
- |
boolean remove(FocusChangedListener focusChangedListener); |
|
64 |
+ |
boolean remove( FocusChangedListener focusChangedListener ); |
62 |
65 |
|
|
63 |
66 |
|
void removeAllFocusChangeListeners(); |
64 |
67 |
|
|
65 |
|
- |
InputField<T> add(ChangeListener<T> changeListener); |
|
68 |
+ |
InputField<T> add( ChangeListener<T> changeListener ); |
66 |
69 |
|
|
67 |
|
- |
boolean remove(ChangeListener<T> changeListener); |
|
70 |
+ |
boolean remove( ChangeListener<T> changeListener ); |
68 |
71 |
|
|
69 |
72 |
|
void removeAllChangeListeners(); |
70 |
73 |
|
|
|
@@ -95,9 +98,10 @@ |
95 |
98 |
|
* Note: The value is "normalized" before giving it to the actual Input Widget |
96 |
99 |
|
* |
97 |
100 |
|
* @param value null OK |
|
101 |
+ |
* |
98 |
102 |
|
* @return "normalized" round-tripped value (null possible) as if <code>getCurrentValue()</code> was called. |
99 |
103 |
|
*/ |
100 |
|
- |
T setCurrentValue(T value); |
|
104 |
+ |
T setCurrentValue( T value ); |
101 |
105 |
|
|
102 |
106 |
|
/** |
103 |
107 |
|
* Returned the "normalized" Current value. |