Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@96028 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-05-23 12:58:56 +00:00 committed by Giancarlo Panichi
parent 6cb2d580a0
commit 68d545bef1
7 changed files with 12 additions and 3 deletions

View File

@ -52,6 +52,12 @@ public interface ResourceBundle extends ClientBundle {
@Source("exit_32.png") @Source("exit_32.png")
ImageResource exit32(); ImageResource exit32();
@Source("error.png")
ImageResource error();
@Source("error_32.png")
ImageResource error32();
@Source("ok.png") @Source("ok.png")
ImageResource ok(); ImageResource ok();

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -30,6 +30,7 @@ import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.i18n.client.DateTimeFormat; import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.safehtml.shared.SafeHtmlUtils; import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.web.bindery.event.shared.EventBus; import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign; import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
@ -262,6 +263,7 @@ public class EditRowPanel extends FramedPanel {
toggleGroup.add(radioFalse); toggleGroup.add(radioFalse);
HorizontalPanel hp = new HorizontalPanel(); HorizontalPanel hp = new HorizontalPanel();
hp.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
hp.add(radioTrue); hp.add(radioTrue);
hp.add(radioFalse); hp.add(radioFalse);
FieldLabel booleanLabel = new FieldLabel(hp, label); FieldLabel booleanLabel = new FieldLabel(hp, label);
@ -502,7 +504,8 @@ public class EditRowPanel extends FramedPanel {
} else { } else {
if (colCurrent.getDataTypeName().compareTo( if (colCurrent.getDataTypeName().compareTo(
ColumnDataType.Boolean.toString()) == 0) { ColumnDataType.Boolean.toString()) == 0) {
Radio radioTrue = (Radio) fieldLabel.getWidget(); HorizontalPanel hpanel=(HorizontalPanel)fieldLabel.getWidget();
Radio radioTrue = (Radio)hpanel.getWidget(0) ;
maps.put(columnId, radioTrue.getValue().toString()); maps.put(columnId, radioTrue.getValue().toString());
} else { } else {
if (colCurrent.getDataTypeName().compareTo( if (colCurrent.getDataTypeName().compareTo(

View File

@ -245,9 +245,9 @@ public class ValidationsTasksPanel extends FramedPanel {
ValidationCell validationButton = new ValidationCell(); ValidationCell validationButton = new ValidationCell();
validationButton.setTrueIcon(ResourceBundle.INSTANCE.ok()); validationButton.setTrueIcon(ResourceBundle.INSTANCE.ok());
validationButton.setFalseIcon(ResourceBundle.INSTANCE.exit()); validationButton.setFalseIcon(ResourceBundle.INSTANCE.error());
validationButton.setTrueTitle("Valid"); validationButton.setTrueTitle("Valid");
validationButton.setFalseTitle("Solve"); validationButton.setFalseTitle("Resolve");
validationButton.addSelectHandler(new SelectHandler() { validationButton.addSelectHandler(new SelectHandler() {
@Override @Override

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB