Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@111829 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-02-09 17:30:42 +00:00
parent 47103b7257
commit 9af555a96a
1 changed files with 8 additions and 3 deletions

View File

@ -784,7 +784,8 @@ public class ChangeColumnTypePanel extends FramedPanel implements
comboColumnReferenceTypeLabel.setVisible(false);
comboColumnMappingLabel.setVisible(false);
comboPeriodTypeLabel.setVisible(false);
comboValueDataFormatLabel.setVisible(true);
comboValueDataFormatLabel.setVisible(false);
comboAttributeType.reset();
break;
case DIMENSION:
comboLocaleTypeLabel.setVisible(false);
@ -804,7 +805,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
comboColumnReferenceTypeLabel.setVisible(false);
comboColumnMappingLabel.setVisible(false);
comboPeriodTypeLabel.setVisible(false);
comboValueDataFormatLabel.setVisible(true);
comboValueDataFormatLabel.setVisible(false);
break;
case TIMEDIMENSION:
comboLocaleTypeLabel.setVisible(false);
@ -836,6 +837,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
}
protected void updateMeasureType(ColumnDataType type) {
comboValueDataFormatLabel.setVisible(true);
ArrayList<ValueDataFormat> valueDataFormats = valueDataFormatMap
.get(type);
comboValueDataFormat.clear();
@ -965,6 +967,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
.selectedMeasure(cd.getDataTypeName()));
comboMeasureType.setValue(ColumnDataTypeStore
.selectedMeasureElement(cd.getDataTypeName()));
comboValueDataFormatLabel.setVisible(true);
ColumnDataType columnDataType = ColumnDataType
.getColumnDataTypeFromId(cd.getDataTypeName());
ArrayList<ValueDataFormat> valueDataFormats = valueDataFormatMap
@ -1231,7 +1234,9 @@ public class ChangeColumnTypePanel extends FramedPanel implements
.setColumnDataTypeTarget(dataType);
ValueDataFormat valueDataFormat = comboValueDataFormat
.getCurrentValue();
if (valueDataFormat != null) {
if (valueDataFormat != null
|| (valueDataFormat == null && dataType
.compareTo(ColumnDataType.Text) == 0)) {
changeColumnTypeSession
.setValueDataFormat(valueDataFormat);
callChangeColumnType();