ref 6078:TDM - Create a new widget to support operations's invocation on DataMiner
https://support.d4science.org/issues/6078 Updated to support DataMiner git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/data-miner-manager-widget@146283 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
930909e538
commit
86ffebda02
|
@ -129,11 +129,11 @@ public class TabItem extends HBoxLayoutContainer {
|
|||
useTabularResource();
|
||||
}
|
||||
});
|
||||
|
||||
selectTRButton2.setIcon(DataMinerManagerPanel.resources
|
||||
.tabularResource());
|
||||
selectTRButton2.setToolTip("Use Tabular Resource");
|
||||
|
||||
|
||||
|
||||
selectButton = new TextButton("Select Data Set");
|
||||
selectButton.addSelectHandler(new SelectEvent.SelectHandler() {
|
||||
|
||||
|
@ -156,8 +156,7 @@ public class TabItem extends HBoxLayoutContainer {
|
|||
wselectDialog.show();
|
||||
}
|
||||
});
|
||||
selectButton2.setVisible(false);
|
||||
|
||||
|
||||
downloadButton = new TextButton("");
|
||||
downloadButton.setIcon(DataMinerManagerPanel.resources.download());
|
||||
downloadButton.addSelectHandler(new SelectEvent.SelectHandler() {
|
||||
|
@ -167,7 +166,8 @@ public class TabItem extends HBoxLayoutContainer {
|
|||
downloadFile();
|
||||
}
|
||||
});
|
||||
downloadButton.setVisible(false);
|
||||
downloadButton.setToolTip("Download Data Set");
|
||||
|
||||
|
||||
addBtn = new TextButton("");
|
||||
addBtn.setIcon(DataMinerManagerPanel.resources.add());
|
||||
|
@ -191,7 +191,7 @@ public class TabItem extends HBoxLayoutContainer {
|
|||
|
||||
}
|
||||
});
|
||||
removeBtn.setVisible(!first);
|
||||
|
||||
|
||||
setPack(BoxLayoutPack.START);
|
||||
setEnableOverflow(false);
|
||||
|
@ -205,6 +205,11 @@ public class TabItem extends HBoxLayoutContainer {
|
|||
add(addBtn, new BoxLayoutData(new Margins()));
|
||||
add(removeBtn, new BoxLayoutData(new Margins()));
|
||||
|
||||
selectTRButton2.setVisible(false);
|
||||
selectButton2.setVisible(false);
|
||||
downloadButton.setVisible(false);
|
||||
removeBtn.setVisible(!first);
|
||||
|
||||
forceLayout();
|
||||
|
||||
}
|
||||
|
|
|
@ -319,6 +319,9 @@ public class TabularFld extends AbstractFld implements
|
|||
updateListeners(null);
|
||||
}
|
||||
});
|
||||
|
||||
cancelButton.setToolTip("Cancel");
|
||||
|
||||
|
||||
downloadButton = new TextButton("");
|
||||
downloadButton.setIcon(DataMinerManagerPanel.resources.download());
|
||||
|
@ -329,6 +332,8 @@ public class TabularFld extends AbstractFld implements
|
|||
downloadFile();
|
||||
}
|
||||
});
|
||||
downloadButton.setToolTip("Download Data Set");
|
||||
|
||||
} catch (Throwable e) {
|
||||
Log.error("TabularField init: " + e.getLocalizedMessage());
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in New Issue