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;
|
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 org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||||
|
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.sencha.gxt.widget.core.client.Window;
|
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;
|
||||||
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
import com.sencha.gxt.widget.core.client.form.ComboBox;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete Column Dialog
|
* Delete Column Dialog
|
||||||
|
@ -17,12 +15,8 @@ import com.sencha.gxt.widget.core.client.form.ComboBox;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class DeleteColumnDialog extends Window {
|
public class DeleteColumnDialog extends Window {
|
||||||
protected int WIDTH=400;
|
private static final int WIDTH=400;
|
||||||
protected int HEIGHT=120;
|
private static final int HEIGHT=120;
|
||||||
protected TRId trId;
|
|
||||||
protected ComboBox<ColumnData> combo = null;
|
|
||||||
protected String columnName = null;
|
|
||||||
protected EventBus eventBus;
|
|
||||||
|
|
||||||
public DeleteColumnDialog(TRId trId, EventBus eventBus) {
|
public DeleteColumnDialog(TRId trId, EventBus eventBus) {
|
||||||
create(trId, null, eventBus);
|
create(trId, null, eventBus);
|
||||||
|
@ -33,9 +27,7 @@ public class DeleteColumnDialog extends Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
||||||
this.trId = trId;
|
|
||||||
this.columnName = columnName;
|
|
||||||
this.eventBus=eventBus;
|
|
||||||
initWindow();
|
initWindow();
|
||||||
|
|
||||||
DeleteColumnPanel deleteColumnPanel= new DeleteColumnPanel(trId, columnName, eventBus);
|
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;
|
||||||
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
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.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.CheckBoxSelectionModel;
|
||||||
import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
|
import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
|
||||||
import com.sencha.gxt.widget.core.client.grid.ColumnModel;
|
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
|
public class DeleteColumnPanel extends FramedPanel implements
|
||||||
MonitorDialogListener {
|
MonitorDialogListener {
|
||||||
protected String WIDTH = "640px";
|
private static final String WIDTH = "640px";
|
||||||
protected String HEIGHT = "520px";
|
private static final String HEIGHT = "520px";
|
||||||
protected EventBus eventBus;
|
private EventBus eventBus;
|
||||||
protected DeleteColumnDialog parent;
|
private DeleteColumnDialog parent;
|
||||||
protected TextField label = null;
|
private TRId trId;
|
||||||
protected TRId trId;
|
private String columnName;
|
||||||
protected String columnName;
|
|
||||||
protected ColumnData column;
|
|
||||||
|
|
||||||
protected TextButton delete;
|
|
||||||
|
|
||||||
protected ListLoader<ListLoadConfig, ListLoadResult<ColumnData>> loader;
|
private TextButton delete;
|
||||||
protected Grid<ColumnData> grid;
|
|
||||||
protected CheckBoxSelectionModel<ColumnData> sm;
|
|
||||||
protected FieldLabel columnsSelectLabel;
|
|
||||||
|
|
||||||
protected DeleteColumnSession deleteColumnSession;
|
private ListLoader<ListLoadConfig, ListLoadResult<ColumnData>> loader;
|
||||||
|
private Grid<ColumnData> grid;
|
||||||
|
private CheckBoxSelectionModel<ColumnData> sm;
|
||||||
|
|
||||||
|
private DeleteColumnSession deleteColumnSession;
|
||||||
|
|
||||||
private ListStore<ColumnData> store;
|
private ListStore<ColumnData> store;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
package org.gcube.portlets.user.td.columnwidget.client;
|
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 org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||||
|
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.sencha.gxt.widget.core.client.Window;
|
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;
|
||||||
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
import com.sencha.gxt.widget.core.client.form.ComboBox;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete Column Dialog
|
* Delete Column Dialog
|
||||||
|
@ -17,12 +15,9 @@ import com.sencha.gxt.widget.core.client.form.ComboBox;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class LabelColumnDialog extends Window {
|
public class LabelColumnDialog extends Window {
|
||||||
protected int WIDTH=400;
|
private static final int WIDTH=400;
|
||||||
protected int HEIGHT=120;
|
private static final int HEIGHT=120;
|
||||||
protected TRId trId;
|
|
||||||
protected ComboBox<ColumnData> combo = null;
|
|
||||||
protected String columnName = null;
|
|
||||||
protected EventBus eventBus;
|
|
||||||
|
|
||||||
public LabelColumnDialog(TRId trId, EventBus eventBus) {
|
public LabelColumnDialog(TRId trId, EventBus eventBus) {
|
||||||
create(trId, null, eventBus);
|
create(trId, null, eventBus);
|
||||||
|
@ -33,9 +28,6 @@ public class LabelColumnDialog extends Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
||||||
this.trId = trId;
|
|
||||||
this.columnName = columnName;
|
|
||||||
this.eventBus=eventBus;
|
|
||||||
initWindow();
|
initWindow();
|
||||||
|
|
||||||
LabelColumnPanel labelColumnPanel= new LabelColumnPanel(trId, columnName, eventBus);
|
LabelColumnPanel labelColumnPanel= new LabelColumnPanel(trId, columnName, eventBus);
|
||||||
|
@ -48,7 +40,6 @@ public class LabelColumnDialog extends Window {
|
||||||
setBodyBorder(false);
|
setBodyBorder(false);
|
||||||
setResizable(false);
|
setResizable(false);
|
||||||
setHeadingText("Label Columns");
|
setHeadingText("Label Columns");
|
||||||
//getHeader().setIcon(Resources.IMAGES.side_list());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue