Updated Column selection

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-extractcodelist-widget@113810 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-03-30 17:02:29 +00:00
parent e932de1eda
commit 5ac60b2acc
1 changed files with 13 additions and 13 deletions

View File

@ -15,7 +15,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTIsLockedExcep
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException; import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException;
import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistTargetColumn; import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistTargetColumn;
import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData; import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
import org.gcube.portlets.user.td.gwtservice.shared.tr.DefNewColumn; import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnMockUp;
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource; import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent; import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType; import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
@ -213,10 +213,10 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
// comboDefColumn // comboDefColumn
ExtractCodelistDefColumnPropertiesCombo props = GWT ExtractCodelistDefColumnPropertiesCombo props = GWT
.create(ExtractCodelistDefColumnPropertiesCombo.class); .create(ExtractCodelistDefColumnPropertiesCombo.class);
ListStore<DefNewColumn> storeComboDefColumn = new ListStore<DefNewColumn>( ListStore<ColumnMockUp> storeComboDefColumn = new ListStore<ColumnMockUp>(
props.id()); props.id());
final ComboBox<DefNewColumn> comboDefColumn = new ComboBox<DefNewColumn>( final ComboBox<ColumnMockUp> comboDefColumn = new ComboBox<ColumnMockUp>(
storeComboDefColumn, props.label()); storeComboDefColumn, props.label());
Log.debug("ComboDefColumn created"); Log.debug("ComboDefColumn created");
@ -229,8 +229,8 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
} }
@Override @Override
public void completedDefColumnCreation(DefNewColumn defNewColumn) { public void completedDefColumnCreation(ColumnMockUp columnMockUp) {
comboDefColumn.setValue(defNewColumn, true); comboDefColumn.setValue(columnMockUp, true);
} }
@ -272,10 +272,10 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
// comboDefColumn // comboDefColumn
ExtractCodelistDefColumnPropertiesCombo props = GWT ExtractCodelistDefColumnPropertiesCombo props = GWT
.create(ExtractCodelistDefColumnPropertiesCombo.class); .create(ExtractCodelistDefColumnPropertiesCombo.class);
ListStore<DefNewColumn> storeComboDefColumn = new ListStore<DefNewColumn>( ListStore<ColumnMockUp> storeComboDefColumn = new ListStore<ColumnMockUp>(
props.id()); props.id());
final ComboBox<DefNewColumn> comboDefColumn = new ComboBox<DefNewColumn>( final ComboBox<ColumnMockUp> comboDefColumn = new ComboBox<ColumnMockUp>(
storeComboDefColumn, props.label()); storeComboDefColumn, props.label());
comboDefColumn.setItemId(COMBO_DEF_COLUMN); comboDefColumn.setItemId(COMBO_DEF_COLUMN);
@ -290,8 +290,8 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
} }
@Override @Override
public void completedDefColumnCreation(DefNewColumn defNewColumn) { public void completedDefColumnCreation(ColumnMockUp columnMockUp) {
comboDefColumn.setValue(defNewColumn, true); comboDefColumn.setValue(columnMockUp, true);
} }
@ -509,9 +509,9 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
if (connection == null) { if (connection == null) {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
ComboBox<DefNewColumn> comboDefColumn = ((ComboBox<DefNewColumn>) fieldLabel ComboBox<ColumnMockUp> comboDefColumn = ((ComboBox<ColumnMockUp>) fieldLabel
.getWidget()); .getWidget());
DefNewColumn defNewColumn = comboDefColumn.getValue(); ColumnMockUp defNewColumn = comboDefColumn.getValue();
Log.debug("Retrieved: " + defNewColumn.toString()); Log.debug("Retrieved: " + defNewColumn.toString());
ExtractCodelistTargetColumn extractCodelistTargetColumn = new ExtractCodelistTargetColumn( ExtractCodelistTargetColumn extractCodelistTargetColumn = new ExtractCodelistTargetColumn(
colCurrent, defNewColumn); colCurrent, defNewColumn);
@ -531,9 +531,9 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
if (checkNew.getValue()) { if (checkNew.getValue()) {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
ComboBox<DefNewColumn> comboDefColumn = (ComboBox<DefNewColumn>) flowButton ComboBox<ColumnMockUp> comboDefColumn = (ComboBox<ColumnMockUp>) flowButton
.getItemByItemId(COMBO_DEF_COLUMN); .getItemByItemId(COMBO_DEF_COLUMN);
DefNewColumn defNewColumn = comboDefColumn.getValue(); ColumnMockUp defNewColumn = comboDefColumn.getValue();
Log.debug("Retrieved: " + defNewColumn.toString()); Log.debug("Retrieved: " + defNewColumn.toString());
ExtractCodelistTargetColumn extractCodelistTargetCol = new ExtractCodelistTargetColumn( ExtractCodelistTargetColumn extractCodelistTargetCol = new ExtractCodelistTargetColumn(
colCurrent, defNewColumn); colCurrent, defNewColumn);