Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@94588 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8f62d59e59
commit
b5369157f3
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" output="target/tabular-data-widgetx-1.0.2-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
||||
<classpathentry kind="src" output="target/tabular-data-widgetx-1.1.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/tabular-data-widgetx-1.0.2-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
||||
<classpathentry excluding="**" kind="src" output="target/tabular-data-widgetx-1.1.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
|
@ -28,5 +28,5 @@
|
|||
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/tabular-data-widgetx-1.0.2-SNAPSHOT/WEB-INF/classes"/>
|
||||
<classpathentry kind="output" path="target/tabular-data-widgetx-1.1.0-SNAPSHOT/WEB-INF/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -101,9 +101,14 @@ public class ColumnConfigGenerator {
|
|||
|
||||
columnConfig.setHidden(!columnDefinition.isVisible());
|
||||
SafeHtmlBuilder tooltipMessage = new SafeHtmlBuilder();
|
||||
String local="";
|
||||
if(columnDefinition.getLocale()!=null && !columnDefinition.getLocale().isEmpty()){
|
||||
local=" ["+columnDefinition.getLocale()+"] ";
|
||||
}
|
||||
|
||||
tooltipMessage
|
||||
.appendHtmlConstant("<p align='Left'><bold style='font-weight:bold;'>"
|
||||
+ columnDefinition.getLabel()
|
||||
+ columnDefinition.getLabel()+local
|
||||
+ "</bold><BR>"
|
||||
+ "<em style='text-decoration:underline;'>"
|
||||
+ columnDefinition.getColumnTypeName()
|
||||
|
|
|
@ -22,8 +22,9 @@ public class ColumnDefinition implements Serializable {
|
|||
protected String sourceTableDimensionColumnId;
|
||||
protected String targetTableColumnId;
|
||||
protected long targetTableId;
|
||||
|
||||
protected String label; //Label
|
||||
protected String locale;
|
||||
|
||||
protected ValueType valueType;
|
||||
protected int width;
|
||||
protected boolean editable;
|
||||
|
@ -251,6 +252,14 @@ public class ColumnDefinition implements Serializable {
|
|||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getLocale() {
|
||||
return locale;
|
||||
}
|
||||
|
||||
public void setLocale(String locale) {
|
||||
this.locale = locale;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
@ -259,20 +268,13 @@ public class ColumnDefinition implements Serializable {
|
|||
+ ", sourceTableDimensionColumnId="
|
||||
+ sourceTableDimensionColumnId + ", targetTableColumnId="
|
||||
+ targetTableColumnId + ", targetTableId=" + targetTableId
|
||||
+ ", label=" + label + ", valueType=" + valueType + ", width="
|
||||
+ width + ", editable=" + editable + ", visible=" + visible
|
||||
+ ", type=" + type + ", position=" + position
|
||||
+ ", tooltipMessage=" + tooltipMessage + ", columnTypeName="
|
||||
+ columnTypeName + ", columnDataType=" + columnDataType
|
||||
+ ", key=" + key + "]";
|
||||
+ ", label=" + label + ", locale=" + locale + ", valueType="
|
||||
+ valueType + ", width=" + width + ", editable=" + editable
|
||||
+ ", visible=" + visible + ", type=" + type + ", position="
|
||||
+ position + ", tooltipMessage=" + tooltipMessage
|
||||
+ ", columnTypeName=" + columnTypeName + ", columnDataType="
|
||||
+ columnDataType + ", key=" + key + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue