Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@112315 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
66199d7147
commit
9b27946ab0
|
@ -1,13 +1,11 @@
|
|||
package org.gcube.portlets.user.td.columnwidget.client;
|
||||
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||
|
||||
import com.google.web.bindery.event.shared.EventBus;
|
||||
import com.sencha.gxt.widget.core.client.Window;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||
import com.sencha.gxt.widget.core.client.form.ComboBox;
|
||||
|
||||
/**
|
||||
* Delete Column Dialog
|
||||
|
@ -17,12 +15,8 @@ import com.sencha.gxt.widget.core.client.form.ComboBox;
|
|||
*
|
||||
*/
|
||||
public class DeleteColumnDialog extends Window {
|
||||
protected int WIDTH=400;
|
||||
protected int HEIGHT=120;
|
||||
protected TRId trId;
|
||||
protected ComboBox<ColumnData> combo = null;
|
||||
protected String columnName = null;
|
||||
protected EventBus eventBus;
|
||||
private static final int WIDTH=400;
|
||||
private static final int HEIGHT=120;
|
||||
|
||||
public DeleteColumnDialog(TRId trId, EventBus eventBus) {
|
||||
create(trId, null, eventBus);
|
||||
|
@ -33,9 +27,7 @@ public class DeleteColumnDialog extends Window {
|
|||
}
|
||||
|
||||
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
||||
this.trId = trId;
|
||||
this.columnName = columnName;
|
||||
this.eventBus=eventBus;
|
||||
|
||||
initWindow();
|
||||
|
||||
DeleteColumnPanel deleteColumnPanel= new DeleteColumnPanel(trId, columnName, eventBus);
|
||||
|
|
|
@ -52,7 +52,6 @@ import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.Verti
|
|||
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||
import com.sencha.gxt.widget.core.client.form.FieldLabel;
|
||||
import com.sencha.gxt.widget.core.client.form.TextField;
|
||||
import com.sencha.gxt.widget.core.client.grid.CheckBoxSelectionModel;
|
||||
import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
|
||||
import com.sencha.gxt.widget.core.client.grid.ColumnModel;
|
||||
|
@ -69,23 +68,21 @@ import com.sencha.gxt.widget.core.client.grid.Grid;
|
|||
*/
|
||||
public class DeleteColumnPanel extends FramedPanel implements
|
||||
MonitorDialogListener {
|
||||
protected String WIDTH = "640px";
|
||||
protected String HEIGHT = "520px";
|
||||
protected EventBus eventBus;
|
||||
protected DeleteColumnDialog parent;
|
||||
protected TextField label = null;
|
||||
protected TRId trId;
|
||||
protected String columnName;
|
||||
protected ColumnData column;
|
||||
private static final String WIDTH = "640px";
|
||||
private static final String HEIGHT = "520px";
|
||||
private EventBus eventBus;
|
||||
private DeleteColumnDialog parent;
|
||||
private TRId trId;
|
||||
private String columnName;
|
||||
|
||||
protected TextButton delete;
|
||||
|
||||
protected ListLoader<ListLoadConfig, ListLoadResult<ColumnData>> loader;
|
||||
protected Grid<ColumnData> grid;
|
||||
protected CheckBoxSelectionModel<ColumnData> sm;
|
||||
protected FieldLabel columnsSelectLabel;
|
||||
private TextButton delete;
|
||||
|
||||
protected DeleteColumnSession deleteColumnSession;
|
||||
private ListLoader<ListLoadConfig, ListLoadResult<ColumnData>> loader;
|
||||
private Grid<ColumnData> grid;
|
||||
private CheckBoxSelectionModel<ColumnData> sm;
|
||||
|
||||
private DeleteColumnSession deleteColumnSession;
|
||||
|
||||
private ListStore<ColumnData> store;
|
||||
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
package org.gcube.portlets.user.td.columnwidget.client;
|
||||
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||
|
||||
import com.google.web.bindery.event.shared.EventBus;
|
||||
import com.sencha.gxt.widget.core.client.Window;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||
import com.sencha.gxt.widget.core.client.form.ComboBox;
|
||||
|
||||
/**
|
||||
* Delete Column Dialog
|
||||
|
@ -17,12 +15,9 @@ import com.sencha.gxt.widget.core.client.form.ComboBox;
|
|||
*
|
||||
*/
|
||||
public class LabelColumnDialog extends Window {
|
||||
protected int WIDTH=400;
|
||||
protected int HEIGHT=120;
|
||||
protected TRId trId;
|
||||
protected ComboBox<ColumnData> combo = null;
|
||||
protected String columnName = null;
|
||||
protected EventBus eventBus;
|
||||
private static final int WIDTH=400;
|
||||
private static final int HEIGHT=120;
|
||||
|
||||
|
||||
public LabelColumnDialog(TRId trId, EventBus eventBus) {
|
||||
create(trId, null, eventBus);
|
||||
|
@ -33,9 +28,6 @@ public class LabelColumnDialog extends Window {
|
|||
}
|
||||
|
||||
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
||||
this.trId = trId;
|
||||
this.columnName = columnName;
|
||||
this.eventBus=eventBus;
|
||||
initWindow();
|
||||
|
||||
LabelColumnPanel labelColumnPanel= new LabelColumnPanel(trId, columnName, eventBus);
|
||||
|
@ -48,7 +40,6 @@ public class LabelColumnDialog extends Window {
|
|||
setBodyBorder(false);
|
||||
setResizable(false);
|
||||
setHeadingText("Label Columns");
|
||||
//getHeader().setIcon(Resources.IMAGES.side_list());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue