Subversion Repository Public Repository

litesoft

Diff Revisions 49 vs 144 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/forms/client/components/impls/input/FormImageSelector.java

Diff revisions: vs.
  @@ -2,6 +2,7 @@
2 2 package org.litesoft.GWT.forms.client.components.impls.input;
3 3
4 4 import org.litesoft.GWT.client.*;
5 + import org.litesoft.GWT.client.widgets.Button;
5 6 import org.litesoft.GWT.client.widgets.*;
6 7 import org.litesoft.GWT.client.widgets.nonpublic.*;
7 8 import org.litesoft.GWT.forms.client.components.nonpublic.*;
  @@ -21,7 +22,7 @@
21 22
22 23 private boolean mViewOnly;
23 24 private SizeableDualImage mDualImage = new SizeableDualImage();
24 - protected IconButton mPickerButton = null;
25 + protected Button mPickerButton = null;
25 26
26 27 protected String mPickerButtonTooltip = "";
27 28
  @@ -226,16 +227,14 @@
226 227 @Override
227 228 protected String buildInputRow( String pTrId, String pInputId, int pUniqueID )
228 229 {
229 - String zAdditionalInputCell =
230 - mViewOnly ? "" : "<td valign='top'><div class='litesoft-PickerButtonContainer' id='imgPick_" + pUniqueID + "'></div></td>";
230 + String zAdditionalInputCell = mViewOnly ? "" : "<td valign='top'><div class='litesoft-PickerButtonContainer' id='imgPick_" + pUniqueID + "'></div></td>";
231 231 return buildInputRowWithOptionalCell( pTrId, pInputId, zAdditionalInputCell );
232 232 }
233 233
234 234 @Override
235 235 protected String buildInputRowWithOptionalCell( String pTrId, String pInputId, String pAdditionalInputCell )
236 236 {
237 - return "<tr class='litesoft-FormComponentInputRow'><td id='" + pInputId + "'></td>" + "<td valign='top'>" +
238 - "<table cellpadding='0' cellspacing='0'><tr id='" + pTrId + "'>" + pAdditionalInputCell + "</tr></table></td></tr>";
237 + return "<tr class='litesoft-FormComponentInputRow'><td id='" + pInputId + "'></td>" + "<td valign='top'>" + "<table cellpadding='0' cellspacing='0'><tr id='" + pTrId + "'>" + pAdditionalInputCell + "</tr></table></td></tr>";
239 238 }
240 239
241 240 @Override
  @@ -247,9 +246,9 @@
247 246 }
248 247 }
249 248
250 - protected IconButton createPickerButton()
249 + protected Button createPickerButton()
251 250 {
252 - mPickerButton = new IconButton( "litesoft-IconImagePickerButton" );
251 + mPickerButton = PickerButton.factory( "litesoft-IconImagePickerButton" ).create();
253 252 mPickerButton.setTabIndex( -1 );
254 253
255 254 mPickerButton.addClickHandler( new ClickHandler()