Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-extractcodelist-widget@96175 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
81e2d1acad
commit
07d3c1d094
|
@ -4,15 +4,17 @@ import java.util.ArrayList;
|
|||
|
||||
import org.gcube.portlets.user.td.columnwidget.client.dimension.CodelistSelectionDialog;
|
||||
import org.gcube.portlets.user.td.columnwidget.client.dimension.CodelistSelectionListener;
|
||||
import org.gcube.portlets.user.td.columnwidget.client.dimension.DimensionRowSelectionDialog;
|
||||
import org.gcube.portlets.user.td.columnwidget.client.properties.ColumnDataPropertiesCombo;
|
||||
import org.gcube.portlets.user.td.columnwidget.client.properties.ExtractCodelistDefColumnPropertiesCombo;
|
||||
import org.gcube.portlets.user.td.columnwidget.client.resources.ResourceBundle;
|
||||
import org.gcube.portlets.user.td.columnwidget.client.utils.UtilsGXT3;
|
||||
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistDefColumn;
|
||||
|
||||
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.DefNewColumn;
|
||||
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.type.SessionExpiredType;
|
||||
|
@ -32,7 +34,9 @@ import com.sencha.gxt.widget.core.client.container.SimpleContainer;
|
|||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
||||
import com.sencha.gxt.widget.core.client.event.TriggerClickEvent;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||
import com.sencha.gxt.widget.core.client.event.TriggerClickEvent.TriggerClickHandler;
|
||||
import com.sencha.gxt.widget.core.client.form.ComboBox;
|
||||
import com.sencha.gxt.widget.core.client.form.FieldLabel;
|
||||
import com.sencha.gxt.widget.core.client.form.TextField;
|
||||
|
@ -195,15 +199,31 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
|||
// comboDefColumn
|
||||
ExtractCodelistDefColumnPropertiesCombo props = GWT
|
||||
.create(ExtractCodelistDefColumnPropertiesCombo.class);
|
||||
ListStore<ExtractCodelistDefColumn> storeComboDefColumn = new ListStore<ExtractCodelistDefColumn>(
|
||||
ListStore<DefNewColumn> storeComboDefColumn = new ListStore<DefNewColumn>(
|
||||
props.id());
|
||||
|
||||
|
||||
|
||||
final ComboBox<ExtractCodelistDefColumn> comboDefColumn = new ComboBox<ExtractCodelistDefColumn>(
|
||||
final ComboBox<DefNewColumn> comboDefColumn = new ComboBox<DefNewColumn>(
|
||||
storeComboDefColumn, props.label());
|
||||
|
||||
Log.debug("ComboDefColumn created");
|
||||
|
||||
comboDefColumn.addTriggerClickHandler(new TriggerClickHandler() {
|
||||
|
||||
@Override
|
||||
public void onTriggerClick(TriggerClickEvent event) {
|
||||
Log.debug("ComboDefColumn TriggerClickEvent");
|
||||
comboDefColumn.collapse();
|
||||
|
||||
/*DimensionRowSelectionDialog dialogDimensionRowSelection = new DimensionRowSelectionDialog(
|
||||
col, cellData, eventBus);
|
||||
dialogDimensionRowSelection.addListener(listener);
|
||||
dialogDimensionRowSelection.show();*/
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
comboDefColumn.setEmptyText("Select a Column...");
|
||||
comboDefColumn.setWidth(COMBOWIDTH);
|
||||
comboDefColumn.setEditable(false);
|
||||
|
|
Loading…
Reference in New Issue