Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@95890 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-05-21 10:48:52 +00:00 committed by Giancarlo Panichi
parent 5f6642645c
commit 8f7cffacfe
1 changed files with 26 additions and 20 deletions

View File

@ -73,6 +73,7 @@ public class ValidationsTasksPanel extends FramedPanel {
protected TreeStore<BaseDto> store;
protected TreeGrid<BaseDto> tree;
// TODO remove this variable
@SuppressWarnings("rawtypes")
protected AbstractCell actionButton = new AbstractCell<Boolean>() {
@ -245,6 +246,8 @@ public class ValidationsTasksPanel extends FramedPanel {
ValidationCell validationButton = new ValidationCell();
validationButton.setTrueIcon(ResourceBundle.INSTANCE.ok());
validationButton.setFalseIcon(ResourceBundle.INSTANCE.exit());
validationButton.setTrueTitle("Valid");
validationButton.setFalseTitle("Solve");
validationButton.addSelectHandler(new SelectHandler() {
@Override
@ -367,27 +370,30 @@ public class ValidationsTasksPanel extends FramedPanel {
Log.debug("ValidationDto: [" + v.getId() + ", "
+ v.getDescription() + ", " + v.getValid() + ", "
+ v.getInvocation() + "]");
if (v.getInvocation() != null) {
InvocationS invocationS = v.getInvocation();
title = invocationS.toString();
Long op = invocationS.getOperationId();
if (op.compareTo(OperationsId.ChangeToDimensionColumn
.toLong()) == 0) {
WidgetRequestEvent widgetRequestEvent = new WidgetRequestEvent(
WidgetRequestType.CURATIONBYREPLACEBATCHDIALOG);
widgetRequestEvent.setTrId(trId);
HashMap<String, Object> map = new HashMap<String, Object>();
map.put(Constants.REQUEST_PROPERTIES_REFCOLUMN,
invocationS.getRefColumn());
map.put(Constants.REQUEST_PROPERTIES_COLUMNID,
invocationS.getColumnId());
RequestProperties props = new RequestProperties(map);
widgetRequestEvent.setRequestProperties(props);
eventBus.fireEvent(widgetRequestEvent);
} else {
UtilsGXT3.info("Invocation Info", title);
if (v.getValid()) {
} else {
if (v.getInvocation() != null) {
InvocationS invocationS = v.getInvocation();
title = invocationS.toString();
Long op = invocationS.getOperationId();
if (op.compareTo(OperationsId.ChangeToDimensionColumn
.toLong()) == 0) {
WidgetRequestEvent widgetRequestEvent = new WidgetRequestEvent(
WidgetRequestType.CURATIONBYREPLACEBATCHDIALOG);
widgetRequestEvent.setTrId(trId);
HashMap<String, Object> map = new HashMap<String, Object>();
map.put(Constants.REQUEST_PROPERTIES_REFCOLUMN,
invocationS.getRefColumn());
map.put(Constants.REQUEST_PROPERTIES_COLUMNID,
invocationS.getColumnId());
RequestProperties props = new RequestProperties(map);
widgetRequestEvent.setRequestProperties(props);
eventBus.fireEvent(widgetRequestEvent);
} else {
UtilsGXT3.info("Invocation Info", title);
}
}
}
}