Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@90955 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3e65de79fb
commit
5111c16b9b
|
@ -60,7 +60,6 @@ public class ChangeColumnTypePanel extends FramedPanel {
|
|||
protected FieldLabel comboMeasureTypeLabel;
|
||||
protected ComboBox<ColumnDataTypeElement> comboAttributeType = null;
|
||||
protected FieldLabel comboAttributeTypeLabel;
|
||||
protected TextField labelColumn;
|
||||
protected ListLoader<ListLoadConfig, ListLoadResult<ColumnData>> loader;
|
||||
|
||||
public ChangeColumnTypePanel(TRId trId, String columnName, EventBus eventBus) {
|
||||
|
@ -180,13 +179,10 @@ public class ChangeColumnTypePanel extends FramedPanel {
|
|||
comboAttributeTypeLabel = new FieldLabel(comboAttributeType, "Attribute Type");
|
||||
comboAttributeTypeLabel.setVisible(false);
|
||||
|
||||
labelColumn = new TextField();
|
||||
|
||||
VerticalLayoutContainer v = new VerticalLayoutContainer();
|
||||
v.add(new FieldLabel(comboColumn, "Column"), new VerticalLayoutData(1,
|
||||
-1));
|
||||
v.add(new FieldLabel(labelColumn, "Label"), new VerticalLayoutData(1,
|
||||
-1));
|
||||
v.add(new FieldLabel(comboColumnTypeCode, "Column Type"),
|
||||
new VerticalLayoutData(1, -1));
|
||||
v.add(comboMeasureTypeLabel, new VerticalLayoutData(1, -1));
|
||||
|
@ -343,10 +339,11 @@ public class ChangeColumnTypePanel extends FramedPanel {
|
|||
public void onSuccess(ArrayList<ColumnData> result) {
|
||||
Log.trace("loaded " + result.size() + " ColumnData");
|
||||
if (columnName != null) {
|
||||
Log.debug("ColumnName:"+columnName);
|
||||
for (ColumnData cd : result) {
|
||||
Log.debug("ColumnData name:"+cd.getName());
|
||||
if (cd.getName().compareTo(columnName) == 0) {
|
||||
comboColumn.setValue(cd);
|
||||
labelColumn.setValue(cd.getLabel());
|
||||
comboColumnTypeCode.select(ColumnTypeCodeStore
|
||||
.selected(cd.getTypeCode()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue