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,21 +105,8 @@ public class OperatorCategoryPanel extends SimpleContainer {
* @return
*/
private String getTooltipTemplate(String base, String id, boolean hasImage, String description){
String image;
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 image=DataMinerManagerPanel.resources.categoryDefaultImage().getSafeUri().asString();
String html =
"<div class='categoryItemTooltip'>"+
"<img src='"+image+ "' >"+

View File

@ -113,21 +113,7 @@ public class OperatorPanel extends SimpleContainer {
*/
private String getTooltipTemplate(String base, String id, boolean hasImage,
String description) {
String image;
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 image=DataMinerManagerPanel.resources.operatorsDefaultImage().getSafeUri().asString();
String template = "<div class='categoryItemTooltip'>" + "<img src='"
+ image +"' >" + Format.ellipse(description, TOOLTIP_DESCRIPTION_LENGHT)

View File

@ -107,7 +107,7 @@
cursor: pointer;
}
.categoryItem {
@sprite .categoryItem {
margin-top: 10px;
margin-left: 5px;
font-size: 15px;
@ -115,17 +115,22 @@
font-weight: bolder;
border-bottom: 2px solid #505050;
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-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 {
background-image: url(images/triangle-down.png);
@sprite .categoryItem-Expanded {
gwt-image: triangleDown";
/*"background-image: url(images/triangle-down.png);*/
}
.categoryItem:hover {
@ -300,9 +305,11 @@
background-color: gray;
}
.workflow-parameters-preload {
@sprite .workflow-parameters-preload {
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;
height: 180px;
}

View File

@ -107,7 +107,7 @@
cursor: pointer;
}
.categoryItem {
@sprite .categoryItem {
margin-top: 10px;
margin-left: 5px;
font-size: 15px;
@ -115,17 +115,22 @@
font-weight: bolder;
border-bottom: 2px solid #505050;
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-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 {
background-image: url(images/triangle-down.png);
@sprite .categoryItem-Expanded {
gwt-image: triangleDown";
/*"background-image: url(images/triangle-down.png);*/
}
.categoryItem:hover {
@ -300,9 +305,11 @@
background-color: gray;
}
.workflow-parameters-preload {
@sprite .workflow-parameters-preload {
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;
height: 180px;
}