litesoft
Diff Revisions
2
vs
23
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/forms/client/components/impls/input/FormImageSelectOptions.java
|
@@ -34,11 +34,13 @@ |
34 |
34 |
|
setPicker( zDialogBox ); |
35 |
35 |
|
} |
36 |
36 |
|
|
|
37 |
+ |
@Override |
37 |
38 |
|
public Object getCurrentValue() |
38 |
39 |
|
{ |
39 |
40 |
|
return getCurrentResourceKeyNameURL(); |
40 |
41 |
|
} |
41 |
42 |
|
|
|
43 |
+ |
@Override |
42 |
44 |
|
public void setCurrentValue( Object pNewValue ) |
43 |
45 |
|
{ |
44 |
46 |
|
setCurrentResourceKeyNameURL( |
|
@@ -65,6 +67,7 @@ |
65 |
67 |
|
Button zCancel = new Button( "Cancel" ); |
66 |
68 |
|
zCancel.addClickListener( new ClickListener() |
67 |
69 |
|
{ |
|
70 |
+ |
@Override |
68 |
71 |
|
public void onClick( Widget sender ) |
69 |
72 |
|
{ |
70 |
73 |
|
mPicker.hide(); |
|
@@ -76,6 +79,7 @@ |
76 |
79 |
|
|
77 |
80 |
|
private int mSelectedIndx = -1; |
78 |
81 |
|
|
|
82 |
+ |
@Override |
79 |
83 |
|
protected void LLshowPicker( PointXY pPointXY ) |
80 |
84 |
|
{ |
81 |
85 |
|
switchToLoading(); |
|
@@ -94,6 +98,7 @@ |
94 |
98 |
|
} |
95 |
99 |
|
} |
96 |
100 |
|
|
|
101 |
+ |
@Override |
97 |
102 |
|
public void resourceKeyNameURLsAvailable( ResourceKeyNameURL[] pResourceKeyNameURLs ) |
98 |
103 |
|
{ |
99 |
104 |
|
ListGrid zListGrid = new ListGrid( pResourceKeyNameURLs ); |
|
@@ -111,6 +116,7 @@ |
111 |
116 |
|
restoreFromLoading(); |
112 |
117 |
|
} |
113 |
118 |
|
|
|
119 |
+ |
@Override |
114 |
120 |
|
public void resourceRequestFailed( ResourceOptionsErrorType pErrorType, String pErrorText ) |
115 |
121 |
|
{ |
116 |
122 |
|
restoreFromLoading(); |
|
@@ -160,6 +166,7 @@ |
160 |
166 |
|
{ |
161 |
167 |
|
private ResourceKeyNameURL[] mResources; |
162 |
168 |
|
private RowFormatter mRowFormatter; |
|
169 |
+ |
private static final String STYLE = "FormSelectorImageRowLabel"; |
163 |
170 |
|
|
164 |
171 |
|
public ListGrid( ResourceKeyNameURL[] pURLs ) |
165 |
172 |
|
{ |
|
@@ -173,7 +180,7 @@ |
173 |
180 |
|
SizeableDualImage zImage = new SizeableDualImage( zURL.getURL() ); |
174 |
181 |
|
zImage.setImageSize( 64, 48 ); |
175 |
182 |
|
Label zLabel = new Label( zURL.getValue() ); |
176 |
|
- |
zLabel.addStyleName( "FormSelectorImageRowLabel" ); |
|
183 |
+ |
zLabel.addStyleName( STYLE ); |
177 |
184 |
|
setWidget( i, 0, zImage ); |
178 |
185 |
|
setWidget( i, 1, zLabel ); |
179 |
186 |
|
|
|
@@ -221,6 +228,7 @@ |
221 |
228 |
|
} |
222 |
229 |
|
} |
223 |
230 |
|
|
|
231 |
+ |
@Override |
224 |
232 |
|
public void onBrowserEvent( Event event ) |
225 |
233 |
|
{ |
226 |
234 |
|
int zIndx = getRowIndexForEvent( event ); |
|
@@ -236,6 +244,7 @@ |
236 |
244 |
|
final ResourceKeyNameURL zResource = getResource( zIndx ); |
237 |
245 |
|
DeferredCommand.addCommand( new Command() |
238 |
246 |
|
{ |
|
247 |
+ |
@Override |
239 |
248 |
|
public void execute() |
240 |
249 |
|
{ |
241 |
250 |
|
setCurrentValue( zResource ); |