Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@96334 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9248d7dfec
commit
f34dbe24e8
|
@ -12,6 +12,7 @@ import org.gcube.portlets.user.td.columnwidget.client.properties.ColumnTypeCodeP
|
||||||
import org.gcube.portlets.user.td.columnwidget.client.properties.LocaleTypeProperties;
|
import org.gcube.portlets.user.td.columnwidget.client.properties.LocaleTypeProperties;
|
||||||
import org.gcube.portlets.user.td.columnwidget.client.properties.TabResourceProperties;
|
import org.gcube.portlets.user.td.columnwidget.client.properties.TabResourceProperties;
|
||||||
import org.gcube.portlets.user.td.columnwidget.client.properties.TimeDimensionTypeProperties;
|
import org.gcube.portlets.user.td.columnwidget.client.properties.TimeDimensionTypeProperties;
|
||||||
|
import org.gcube.portlets.user.td.columnwidget.client.resources.ResourceBundle;
|
||||||
import org.gcube.portlets.user.td.columnwidget.client.store.ColumnDataTypeElement;
|
import org.gcube.portlets.user.td.columnwidget.client.store.ColumnDataTypeElement;
|
||||||
import org.gcube.portlets.user.td.columnwidget.client.store.ColumnDataTypeStore;
|
import org.gcube.portlets.user.td.columnwidget.client.store.ColumnDataTypeStore;
|
||||||
import org.gcube.portlets.user.td.columnwidget.client.store.ColumnTypeCodeElement;
|
import org.gcube.portlets.user.td.columnwidget.client.store.ColumnTypeCodeElement;
|
||||||
|
@ -44,6 +45,7 @@ import com.google.gwt.event.logical.shared.SelectionEvent;
|
||||||
import com.google.gwt.event.logical.shared.SelectionHandler;
|
import com.google.gwt.event.logical.shared.SelectionHandler;
|
||||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
|
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
|
||||||
import com.sencha.gxt.cell.core.client.form.ComboBoxCell.TriggerAction;
|
import com.sencha.gxt.cell.core.client.form.ComboBoxCell.TriggerAction;
|
||||||
import com.sencha.gxt.core.client.util.Margins;
|
import com.sencha.gxt.core.client.util.Margins;
|
||||||
import com.sencha.gxt.data.shared.LabelProvider;
|
import com.sencha.gxt.data.shared.LabelProvider;
|
||||||
|
@ -123,6 +125,22 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
init();
|
init();
|
||||||
create();
|
create();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param parent
|
||||||
|
* @param eventBus
|
||||||
|
*/
|
||||||
|
public AddColumnPanel(TRId trId, EventBus eventBus) {
|
||||||
|
super();
|
||||||
|
Log.debug("CreateDefColumnPanel[trId: " + trId);
|
||||||
|
this.thisPanel = this;
|
||||||
|
this.eventBus = eventBus;
|
||||||
|
this.trId = trId;
|
||||||
|
init();
|
||||||
|
create();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void init() {
|
protected void init() {
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
|
@ -285,9 +303,15 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
|
|
||||||
comboTimeDimensionTypeLabel = new FieldLabel(comboTimeDimensionType,
|
comboTimeDimensionTypeLabel = new FieldLabel(comboTimeDimensionType,
|
||||||
"Time Type");
|
"Time Type");
|
||||||
|
|
||||||
|
|
||||||
// Save
|
// Save
|
||||||
btnSave = new TextButton("Save");
|
btnSave = new TextButton("Save");
|
||||||
|
btnSave.setIcon(ResourceBundle.INSTANCE.save());
|
||||||
|
btnSave.setIconAlign(IconAlign.RIGHT);
|
||||||
|
btnSave.setTitle("Save");
|
||||||
|
|
||||||
|
|
||||||
SelectHandler changeHandler = new SelectHandler() {
|
SelectHandler changeHandler = new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -556,7 +580,8 @@ public class AddColumnPanel extends FramedPanel implements
|
||||||
|
|
||||||
public void update(TRId trId) {
|
public void update(TRId trId) {
|
||||||
this.trId = trId;
|
this.trId = trId;
|
||||||
|
this.clear();
|
||||||
|
create();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void save() {
|
protected void save() {
|
||||||
|
|
Loading…
Reference in New Issue