Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@112316 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9b27946ab0
commit
25e2ceab1b
|
@ -1,45 +1,39 @@
|
||||||
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;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dialog for Change Column Type
|
* Dialog for Change Column Type
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author "Giancarlo Panichi" <a
|
||||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ChangeColumnTypeDialog extends Window {
|
public class ChangeColumnTypeDialog extends Window {
|
||||||
protected String WIDTH = "650px";
|
private static final String WIDTH = "650px";
|
||||||
protected String HEIGHT = "530px";
|
private static final String HEIGHT = "530px";
|
||||||
protected TRId trId;
|
|
||||||
|
|
||||||
protected String columnName=null;
|
|
||||||
protected ComboBox<ColumnData> combo=null;
|
|
||||||
|
|
||||||
public ChangeColumnTypeDialog(TRId trId, EventBus eventBus) {
|
public ChangeColumnTypeDialog(TRId trId, EventBus eventBus) {
|
||||||
create(trId, null, eventBus);
|
create(trId, null, eventBus);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ChangeColumnTypeDialog(TRId trId, String columnName, EventBus eventBus) {
|
public ChangeColumnTypeDialog(TRId trId, String columnName,
|
||||||
|
EventBus eventBus) {
|
||||||
create(trId, columnName, eventBus);
|
create(trId, columnName, eventBus);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
||||||
this.trId=trId;
|
|
||||||
this.columnName=columnName;
|
|
||||||
initWindow();
|
initWindow();
|
||||||
ChangeColumnTypePanel changeColumnTypePanel= new ChangeColumnTypePanel(trId, columnName, eventBus);
|
ChangeColumnTypePanel changeColumnTypePanel = new ChangeColumnTypePanel(
|
||||||
|
trId, columnName, eventBus);
|
||||||
add(changeColumnTypePanel);
|
add(changeColumnTypePanel);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void initWindow() {
|
protected void initWindow() {
|
||||||
|
@ -48,10 +42,9 @@ public class ChangeColumnTypeDialog extends Window {
|
||||||
setBodyBorder(false);
|
setBodyBorder(false);
|
||||||
setResizable(false);
|
setResizable(false);
|
||||||
setHeadingText("Change Column Type");
|
setHeadingText("Change Column Type");
|
||||||
//getHeader().setIcon(Resources.IMAGES.side_list());
|
// getHeader().setIcon(Resources.IMAGES.side_list());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@ -73,5 +66,4 @@ public class ChangeColumnTypeDialog extends Window {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,8 +98,8 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String WIDTH = "640px";
|
private static final String WIDTH = "640px";
|
||||||
private String HEIGHT = "520px";
|
private static final String HEIGHT = "520px";
|
||||||
private EventBus eventBus;
|
private EventBus eventBus;
|
||||||
private ChangeColumnTypeDialog parent;
|
private ChangeColumnTypeDialog parent;
|
||||||
private TRId trId;
|
private TRId trId;
|
||||||
|
|
Loading…
Reference in New Issue