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