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:
Giancarlo Panichi 2014-10-01 16:31:33 +00:00 committed by Giancarlo Panichi
parent 6d6ddc6f42
commit 043f5c7d16
1 changed files with 13 additions and 8 deletions

View File

@ -50,14 +50,12 @@ public class MonitorDetailPanel extends FramedPanel {
protected static final String WIDTH = "618px";
protected static final String HEIGHT = "256px";
protected static final String GRIDHEIGHT = "332px";
protected static final int CC1WIDTH = 168;
protected static final int CC2WIDTH = 100;
protected static final int CC3WIDTH = 140;
protected static final int CC4WIDTH = 100;
protected MonitorDetailPanel thisPanel;
protected Menu contextMenu;
@ -102,7 +100,7 @@ public class MonitorDetailPanel extends FramedPanel {
setHeight(HEIGHT);
setHeaderVisible(false);
setBodyBorder(false);
}
protected void create() {
@ -114,7 +112,8 @@ public class MonitorDetailPanel extends FramedPanel {
addChildrensToStore();
ColumnConfig<MonitorBaseDto, String> cc1 = new ColumnConfig<MonitorBaseDto, String>(
new ToStringValueProvider<MonitorBaseDto>("task"), CC1WIDTH, "Task");
new ToStringValueProvider<MonitorBaseDto>("task"), CC1WIDTH,
"Task");
cc1.setHeader("Task");
cc1.setCell(new AbstractCell<String>() {
@ -174,7 +173,8 @@ public class MonitorDetailPanel extends FramedPanel {
state = ((MonitorValidationJobSDto) object).getHumanReadableStatus();
}
if (object instanceof MonitorFolderDto) {
state = ((MonitorFolderDto) object).getHumanReadableStatus();
state = ((MonitorFolderDto) object)
.getHumanReadableStatus();
}
return state;
}
@ -187,7 +187,8 @@ public class MonitorDetailPanel extends FramedPanel {
}
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,
MonitorFolderDto folder) {
for (MonitorBaseDto child : folder.getChildrens()) {
store.add(folder, child);
try {
store.add(folder, child);
} catch (Throwable e) {
Log.error(e.getLocalizedMessage());
}
if (child instanceof MonitorFolderDto) {
processFolder(store, (MonitorFolderDto) child);
}