diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyDialog.java b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyDialog.java index 234fa68..6ec95cb 100644 --- a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyDialog.java +++ b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyDialog.java @@ -18,14 +18,13 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; public class TemplateApplyDialog extends Window { protected String WIDTH = "650px"; protected String HEIGHT = "530px"; - protected TRId trId; - protected String columnName=null; + - public TemplateApplyDialog(EventBus eventBus) { + public TemplateApplyDialog(TRId trId, EventBus eventBus) { initWindow(); - TemplateApplyPanel templateApplyPanel= new TemplateApplyPanel(this,eventBus); + TemplateApplyPanel templateApplyPanel= new TemplateApplyPanel(this,trId, eventBus); add(templateApplyPanel); } diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyPanel.java b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyPanel.java index a4f33fa..7b99e2a 100644 --- a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyPanel.java @@ -5,7 +5,6 @@ import java.util.List; import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync; import org.gcube.portlets.user.td.gwtservice.shared.template.TemplateData; -import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData; import org.gcube.portlets.user.td.tablewidget.client.resources.ResourceBundle; import org.gcube.portlets.user.td.tablewidget.client.util.UtilsGXT3; import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId; @@ -38,7 +37,6 @@ 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.SelectEvent.SelectHandler; -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; @@ -50,12 +48,8 @@ public class TemplateApplyPanel extends FramedPanel { protected String HEIGHT = "520px"; protected EventBus eventBus; protected TemplateApplyDialog parent; - protected TextField label = null; protected TRId trId; - protected String columnName; - protected ColumnData column; - - + private TextButton btnApply; private TextButton btnClose; @@ -66,8 +60,9 @@ public class TemplateApplyPanel extends FramedPanel { protected ListStore store; - public TemplateApplyPanel(TemplateApplyDialog parent, EventBus eventBus) { + public TemplateApplyPanel(TemplateApplyDialog parent, TRId trId,EventBus eventBus) { this.parent=parent; + this.trId=trId; Log.debug("TemplateApplyPanel"); setWidth(WIDTH); setHeight(HEIGHT);