Updated to Liferay 6.2
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/data-miner-manager@129448 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
47ed720aff
commit
8bade152e3
|
@ -22,6 +22,8 @@ import com.sencha.gxt.widget.core.client.tips.ToolTipConfig;
|
||||||
*/
|
*/
|
||||||
public class OperatorPanel extends SimpleContainer {
|
public class OperatorPanel extends SimpleContainer {
|
||||||
|
|
||||||
|
private static final int TOOLTIP_DESCRIPTION_LENGHT = 435;
|
||||||
|
private static final int OPERATOR_BRIEF_DESCRIPTION_LENGHT = 160;
|
||||||
private static final int TOOLTIP_WIDTH = 500;
|
private static final int TOOLTIP_WIDTH = 500;
|
||||||
private VerticalLayoutContainer vert;
|
private VerticalLayoutContainer vert;
|
||||||
|
|
||||||
|
@ -60,7 +62,7 @@ public class OperatorPanel extends SimpleContainer {
|
||||||
titleHtml = new HTML(operator.getName());
|
titleHtml = new HTML(operator.getName());
|
||||||
titleHtml.addStyleName("operatorPanel-title");
|
titleHtml.addStyleName("operatorPanel-title");
|
||||||
|
|
||||||
HTML descriptionHtml = new HTML(Format.ellipse(operator.getBriefDescription(),178));
|
HTML descriptionHtml = new HTML(Format.ellipse(operator.getBriefDescription(),OPERATOR_BRIEF_DESCRIPTION_LENGHT));
|
||||||
descriptionHtml.addStyleName("operatorPanel-briefDescription");
|
descriptionHtml.addStyleName("operatorPanel-briefDescription");
|
||||||
|
|
||||||
vert=new VerticalLayoutContainer();
|
vert=new VerticalLayoutContainer();
|
||||||
|
@ -111,7 +113,7 @@ public class OperatorPanel extends SimpleContainer {
|
||||||
String description) {
|
String description) {
|
||||||
String template = "<div class='categoryItemTooltip'>" + "<img src='"
|
String template = "<div class='categoryItemTooltip'>" + "<img src='"
|
||||||
+ base + "../images/operators/"
|
+ base + "../images/operators/"
|
||||||
+ (hasImage ? id : "DEFAULT_IMAGE") + ".png' >" + Format.ellipse(description, 435)
|
+ (hasImage ? id : "DEFAULT_IMAGE") + ".png' >" + Format.ellipse(description, TOOLTIP_DESCRIPTION_LENGHT)
|
||||||
+ "</div>";
|
+ "</div>";
|
||||||
|
|
||||||
return template;
|
return template;
|
||||||
|
|
|
@ -263,33 +263,7 @@ public class OperatorsPanel extends FramedPanel {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* private ToolTipConfig createToolTip(OperatorCategory cat) { ToolTipConfig
|
|
||||||
* tooltipConfig = new ToolTipConfig(); tooltipConfig.setTitleHtml("<br>
|
|
||||||
* " + cat.getName()); tooltipConfig.setMouseOffsetX(0);
|
|
||||||
* toolTipConfig.setMouseOffsetY(0); tooltipConfig.setAnchor(Side.LEFT);
|
|
||||||
* tooltipConfig.setDismissDelay(0);
|
|
||||||
* tooltipConfig.setBodyHtml(getTooltipTemplate( GWT.getModuleBaseURL(),
|
|
||||||
* cat.getId(), cat.hasImage(), cat.getDescription())); //
|
|
||||||
* config.setCloseable(true); tooltipConfig.setMaxWidth(300); return
|
|
||||||
* tooltipConfig; }
|
|
||||||
*
|
|
||||||
* private String getTooltipTemplate(String base, String id, boolean
|
|
||||||
* hasImage, String description) { String html=
|
|
||||||
* "<div class='categoryItemTooltip'>"+ "<img src='" + base +
|
|
||||||
* "../images/categories/"+ (hasImage ? id : "DEFAULT_IMAGE") + ".png' >"+
|
|
||||||
* description+"</div>"; // '<div>
|
|
||||||
* <ul style="list-style: disc; margin: 0px 0px 5px 15px">
|
|
||||||
* ', // '
|
|
||||||
* <li>5 bedrooms</li>', // '
|
|
||||||
* <li>2 baths</li>', // '
|
|
||||||
* <li>Large backyard</li>', // '
|
|
||||||
* <li>Close to metro</li>', // '
|
|
||||||
* </ul>
|
|
||||||
* ', // '</div>'
|
|
||||||
*
|
|
||||||
* return html; };
|
|
||||||
*/
|
|
||||||
private void waitMessage(boolean show) {
|
private void waitMessage(boolean show) {
|
||||||
if (show)
|
if (show)
|
||||||
this.mask(LOADING_MESSAGE);
|
this.mask(LOADING_MESSAGE);
|
||||||
|
|
|
@ -49,12 +49,12 @@ public class BooleanFld extends AbstractFld {
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (p.getDescription() == null) {
|
if (p.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//checkBox.setToolTip(p.getDescription());
|
//checkBox.setToolTip(p.getDescription());
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ p.getDescription() + "</p>");
|
+ p.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,12 +77,12 @@ public class ColumnFld extends AbstractFld implements
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (columnParameter.getDescription() == null) {
|
if (columnParameter.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//comboBox.setToolTip(columnParameter.getDescription());
|
//comboBox.setToolTip(columnParameter.getDescription());
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ columnParameter.getDescription() + "</p>");
|
+ columnParameter.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,12 +79,12 @@ public class ColumnListFld extends AbstractFld implements
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (columnListParameter.getDescription() == null) {
|
if (columnListParameter.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//grid.setToolTip(columnListParameter.getDescription());
|
//grid.setToolTip(columnListParameter.getDescription());
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ columnListParameter.getDescription() + "</p>");
|
+ columnListParameter.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,12 +46,12 @@ public class DoubleFld extends AbstractFld {
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (p.getDescription() == null) {
|
if (p.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//numberField.setToolTip(p.getDescription());
|
//numberField.setToolTip(p.getDescription());
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ p.getDescription() + "</p>");
|
+ p.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,12 +53,12 @@ public class EnumFld extends AbstractFld {
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (p.getDescription() == null) {
|
if (p.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//listBox.setToolTip(p.getDescription());
|
//listBox.setToolTip(p.getDescription());
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ p.getDescription() + "</p>");
|
+ p.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,11 +81,11 @@ public class FileFld extends AbstractFld {
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (fileParameter.getDescription() == null) {
|
if (fileParameter.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ fileParameter.getDescription() + "</p>");
|
+ fileParameter.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,12 +46,12 @@ public class FloatFld extends AbstractFld {
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (p.getDescription() == null) {
|
if (p.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//numberField.setToolTip(p.getDescription());
|
//numberField.setToolTip(p.getDescription());
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ p.getDescription() + "</p>");
|
+ p.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,12 +46,12 @@ public class IntFld extends AbstractFld {
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (p.getDescription() == null) {
|
if (p.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//numberField.setToolTip(p.getDescription());
|
//numberField.setToolTip(p.getDescription());
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ p.getDescription() + "</p>");
|
+ p.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,12 +62,12 @@ public class ListIntFld extends AbstractFld {
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (listParameter.getDescription() == null) {
|
if (listParameter.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//listContainer.setToolTip(listParameter.getDescription());
|
//listContainer.setToolTip(listParameter.getDescription());
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ listParameter.getDescription() + "</p>");
|
+ listParameter.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,12 +57,12 @@ public class ListStringFld extends AbstractFld {
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (listParameter.getDescription() == null) {
|
if (listParameter.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/*listContainer.setToolTip(listParameter.getDescription());*/
|
/*listContainer.setToolTip(listParameter.getDescription());*/
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ listParameter.getDescription() + "</p>");
|
+ listParameter.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,12 +45,12 @@ public class StringFld extends AbstractFld {
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (p.getDescription() == null) {
|
if (p.getDescription() == null) {
|
||||||
descr=new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr=new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//textField.setToolTip(p.getDescription());
|
//textField.setToolTip(p.getDescription());
|
||||||
descr=new HtmlLayoutContainer("<p style='margin-left:5px;'>"+p.getDescription()+"</p>");
|
descr=new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"+p.getDescription()+"</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,11 +119,11 @@ public class TabularFld extends AbstractFld implements
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (tabularParameter.getDescription() == null) {
|
if (tabularParameter.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ tabularParameter.getDescription() + "</p>");
|
+ tabularParameter.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,11 +77,11 @@ public class TabularListFld extends AbstractFld {
|
||||||
HtmlLayoutContainer descr;
|
HtmlLayoutContainer descr;
|
||||||
|
|
||||||
if (tabularListParameter.getDescription() == null) {
|
if (tabularListParameter.getDescription() == null) {
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'></p>");
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'></p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
} else {
|
} else {
|
||||||
/* listContainer.setToolTip(listParameter.getDescription()); */
|
/* listContainer.setToolTip(listParameter.getDescription()); */
|
||||||
descr = new HtmlLayoutContainer("<p style='margin-left:5px;'>"
|
descr = new HtmlLayoutContainer("<p style='margin-left:5px !important;'>"
|
||||||
+ tabularListParameter.getDescription() + "</p>");
|
+ tabularListParameter.getDescription() + "</p>");
|
||||||
descr.addStyleName("workflow-fieldDescription");
|
descr.addStyleName("workflow-fieldDescription");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,26 +1,31 @@
|
||||||
/* FIX FOR Portal Theme */
|
/* FIX FOR Portal Theme */
|
||||||
.aui input[type="text"], .aui select, .aui textarea, .aui .uneditable-input {
|
.aui body {
|
||||||
|
color: #000;
|
||||||
|
font-weight: normal !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aui input[type="text"], .aui select, .aui textarea, .aui .uneditable-input
|
||||||
|
{
|
||||||
margin-bottom: 1px !important;
|
margin-bottom: 1px !important;
|
||||||
padding: 0px !important;
|
padding: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui input, .aui textarea, .aui .uneditable-input {
|
.aui input, .aui textarea, .aui .uneditable-input {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.aui p {
|
.aui p {
|
||||||
margin: 0px !important;
|
margin: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui img {
|
.aui img {
|
||||||
vertical-align: baseline !important;
|
vertical-align: baseline !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui fieldset {
|
.aui fieldset {
|
||||||
padding: 9px !important;
|
padding: 9px !important;
|
||||||
/* margin: 0; */
|
/* margin: 0; */
|
||||||
border: 1px solid rgb(181, 184, 200) !important;
|
border: 1px solid rgb(181, 184, 200) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui legend {
|
.aui legend {
|
||||||
|
@ -29,10 +34,7 @@
|
||||||
border-bottom: none !important;
|
border-bottom: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Data Miner */
|
/* Data Miner */
|
||||||
|
|
||||||
.smLayoutContainer {
|
.smLayoutContainer {
|
||||||
/* Blue
|
/* Blue
|
||||||
box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.11), 0 0 0
|
box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.11), 0 0 0
|
||||||
|
@ -66,11 +68,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.smMenu {
|
.smMenu {
|
||||||
/*width: 720px !important;*/
|
/*width: 720px !important;*/ /*height: 570px !important;*/
|
||||||
/*height: 570px !important;*/
|
|
||||||
/*overflow: auto;
|
/*overflow: auto;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-bottom: 20px;*/
|
margin-bottom: 20px;*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.layoutContainerArea {
|
.layoutContainerArea {
|
||||||
|
@ -408,7 +410,6 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computation Output
|
* Computation Output
|
||||||
*/
|
*/
|
||||||
|
@ -440,8 +441,7 @@
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.computation-output-fileName {
|
||||||
.computation-output-fileName{
|
margin-top: 2px;
|
||||||
margin-top:2px;
|
margin-bottom: 2px;
|
||||||
margin-bottom:2px;
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue