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@144996 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-03-17 11:06:56 +00:00
parent 91b26f2324
commit 2b3a9838a8
4 changed files with 33 additions and 46 deletions

View File

@ -105,20 +105,7 @@ public class OperatorCategoryPanel extends SimpleContainer {
* @return * @return
*/ */
private String getTooltipTemplate(String base, String id, boolean hasImage, String description){ private String getTooltipTemplate(String base, String id, boolean hasImage, String description){
String image; String image=DataMinerManagerPanel.resources.categoryDefaultImage().getSafeUri().asString();
if(hasImage==false||id==null||id.isEmpty()){
image=DataMinerManagerPanel.resources.categoryDefaultImage().getSafeUri().asString();
} else {
switch(id){
case "DISTRIBUTIONS":
image=DataMinerManagerPanel.resources.categoryDefaultImage().getSafeUri().asString();
break;
default:
image=DataMinerManagerPanel.resources.categoryDefaultImage().getSafeUri().asString();
break;
}
}
String html = String html =
"<div class='categoryItemTooltip'>"+ "<div class='categoryItemTooltip'>"+

View File

@ -113,21 +113,7 @@ public class OperatorPanel extends SimpleContainer {
*/ */
private String getTooltipTemplate(String base, String id, boolean hasImage, private String getTooltipTemplate(String base, String id, boolean hasImage,
String description) { String description) {
String image; String image=DataMinerManagerPanel.resources.operatorsDefaultImage().getSafeUri().asString();
if(hasImage==false||id==null||id.isEmpty()){
image=DataMinerManagerPanel.resources.operatorsDefaultImage().getSafeUri().asString();
} else {
switch(id){
case "AquamapsNative2050":
image=DataMinerManagerPanel.resources.operatorsAquamapsNative2050Operator().getSafeUri().asString();
break;
default:
image=DataMinerManagerPanel.resources.operatorsDefaultImage().getSafeUri().asString();
break;
}
}
String template = "<div class='categoryItemTooltip'>" + "<img src='" String template = "<div class='categoryItemTooltip'>" + "<img src='"
+ image +"' >" + Format.ellipse(description, TOOLTIP_DESCRIPTION_LENGHT) + image +"' >" + Format.ellipse(description, TOOLTIP_DESCRIPTION_LENGHT)

View File

@ -107,7 +107,7 @@
cursor: pointer; cursor: pointer;
} }
.categoryItem { @sprite .categoryItem {
margin-top: 10px; margin-top: 10px;
margin-left: 5px; margin-left: 5px;
font-size: 15px; font-size: 15px;
@ -115,17 +115,22 @@
font-weight: bolder; font-weight: bolder;
border-bottom: 2px solid #505050; border-bottom: 2px solid #505050;
margin-bottom: 5px; margin-bottom: 5px;
background-image: url(images/triangle-right.png); gwt-image: "triangleRight";
/*background-image: url(images/triangle-right.png);*/
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right; background-position: right;
} }
.categoryItem-Collapsed {
background-image: url(images/triangle-right.png);
@sprite .categoryItem-Collapsed {
gwt-image: "triangleRight";
/*"background-image: url(images/triangle-right.png);*/
} }
.categoryItem-Expanded { @sprite .categoryItem-Expanded {
background-image: url(images/triangle-down.png); gwt-image: triangleDown";
/*"background-image: url(images/triangle-down.png);*/
} }
.categoryItem:hover { .categoryItem:hover {
@ -300,9 +305,11 @@
background-color: gray; background-color: gray;
} }
.workflow-parameters-preload { @sprite .workflow-parameters-preload {
display: block; display: block;
background: url('ajax-loader-big.gif') no-repeat; gwt-image: "loaderBig";
background-repeat: no-repeat;
/*background: url('ajax-loader-big.gif') no-repeat;*/
width: 400px; width: 400px;
height: 180px; height: 180px;
} }

View File

@ -107,7 +107,7 @@
cursor: pointer; cursor: pointer;
} }
.categoryItem { @sprite .categoryItem {
margin-top: 10px; margin-top: 10px;
margin-left: 5px; margin-left: 5px;
font-size: 15px; font-size: 15px;
@ -115,17 +115,22 @@
font-weight: bolder; font-weight: bolder;
border-bottom: 2px solid #505050; border-bottom: 2px solid #505050;
margin-bottom: 5px; margin-bottom: 5px;
background-image: url(images/triangle-right.png); gwt-image: "triangleRight";
/*background-image: url(images/triangle-right.png);*/
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right; background-position: right;
} }
.categoryItem-Collapsed {
background-image: url(images/triangle-right.png);
@sprite .categoryItem-Collapsed {
gwt-image: "triangleRight";
/*"background-image: url(images/triangle-right.png);*/
} }
.categoryItem-Expanded { @sprite .categoryItem-Expanded {
background-image: url(images/triangle-down.png); gwt-image: triangleDown";
/*"background-image: url(images/triangle-down.png);*/
} }
.categoryItem:hover { .categoryItem:hover {
@ -300,9 +305,11 @@
background-color: gray; background-color: gray;
} }
.workflow-parameters-preload { @sprite .workflow-parameters-preload {
display: block; display: block;
background: url('ajax-loader-big.gif') no-repeat; gwt-image: "loaderBig";
background-repeat: no-repeat;
/*background: url('ajax-loader-big.gif') no-repeat;*/
width: 400px; width: 400px;
height: 180px; height: 180px;
} }