Updated Monitor
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-monitor-widget@100337 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6d6ddc6f42
commit
043f5c7d16
|
@ -56,8 +56,6 @@ public class MonitorDetailPanel extends FramedPanel {
|
||||||
protected static final int CC3WIDTH = 140;
|
protected static final int CC3WIDTH = 140;
|
||||||
protected static final int CC4WIDTH = 100;
|
protected static final int CC4WIDTH = 100;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected MonitorDetailPanel thisPanel;
|
protected MonitorDetailPanel thisPanel;
|
||||||
|
|
||||||
protected Menu contextMenu;
|
protected Menu contextMenu;
|
||||||
|
@ -114,7 +112,8 @@ public class MonitorDetailPanel extends FramedPanel {
|
||||||
addChildrensToStore();
|
addChildrensToStore();
|
||||||
|
|
||||||
ColumnConfig<MonitorBaseDto, String> cc1 = new ColumnConfig<MonitorBaseDto, String>(
|
ColumnConfig<MonitorBaseDto, String> cc1 = new ColumnConfig<MonitorBaseDto, String>(
|
||||||
new ToStringValueProvider<MonitorBaseDto>("task"), CC1WIDTH, "Task");
|
new ToStringValueProvider<MonitorBaseDto>("task"), CC1WIDTH,
|
||||||
|
"Task");
|
||||||
cc1.setHeader("Task");
|
cc1.setHeader("Task");
|
||||||
cc1.setCell(new AbstractCell<String>() {
|
cc1.setCell(new AbstractCell<String>() {
|
||||||
|
|
||||||
|
@ -174,7 +173,8 @@ public class MonitorDetailPanel extends FramedPanel {
|
||||||
state = ((MonitorValidationJobSDto) object).getHumanReadableStatus();
|
state = ((MonitorValidationJobSDto) object).getHumanReadableStatus();
|
||||||
}
|
}
|
||||||
if (object instanceof MonitorFolderDto) {
|
if (object instanceof MonitorFolderDto) {
|
||||||
state = ((MonitorFolderDto) object).getHumanReadableStatus();
|
state = ((MonitorFolderDto) object)
|
||||||
|
.getHumanReadableStatus();
|
||||||
}
|
}
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
@ -187,7 +187,8 @@ public class MonitorDetailPanel extends FramedPanel {
|
||||||
|
|
||||||
}
|
}
|
||||||
if (object instanceof MonitorFolderDto) {
|
if (object instanceof MonitorFolderDto) {
|
||||||
((MonitorFolderDto) object).setHumanReadableStatus(value);
|
((MonitorFolderDto) object)
|
||||||
|
.setHumanReadableStatus(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -376,7 +377,11 @@ public class MonitorDetailPanel extends FramedPanel {
|
||||||
private void processFolder(TreeStore<MonitorBaseDto> store,
|
private void processFolder(TreeStore<MonitorBaseDto> store,
|
||||||
MonitorFolderDto folder) {
|
MonitorFolderDto folder) {
|
||||||
for (MonitorBaseDto child : folder.getChildrens()) {
|
for (MonitorBaseDto child : folder.getChildrens()) {
|
||||||
|
try {
|
||||||
store.add(folder, child);
|
store.add(folder, child);
|
||||||
|
} catch (Throwable e) {
|
||||||
|
Log.error(e.getLocalizedMessage());
|
||||||
|
}
|
||||||
if (child instanceof MonitorFolderDto) {
|
if (child instanceof MonitorFolderDto) {
|
||||||
processFolder(store, (MonitorFolderDto) child);
|
processFolder(store, (MonitorFolderDto) child);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue