diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/ChangeTableTypePanel.java b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/ChangeTableTypePanel.java index e03188e..c393a54 100644 --- a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/ChangeTableTypePanel.java +++ b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/ChangeTableTypePanel.java @@ -5,6 +5,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpire import org.gcube.portlets.user.td.gwtservice.shared.tr.TableData; import org.gcube.portlets.user.td.gwtservice.shared.tr.table.ChangeTableTypeSession; import org.gcube.portlets.user.td.tablewidget.client.progress.ChangeTableTypeProgressDialog; +import org.gcube.portlets.user.td.tablewidget.client.resources.ResourceBundle; import org.gcube.portlets.user.td.tablewidget.client.type.TableTypeElement; import org.gcube.portlets.user.td.tablewidget.client.type.TableTypeProperties; import org.gcube.portlets.user.td.tablewidget.client.type.TableTypeStore; @@ -17,6 +18,7 @@ import com.allen_sauer.gwt.log.client.Log; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; 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.core.client.dom.ScrollSupport.ScrollMode; import com.sencha.gxt.core.client.util.Margins; @@ -85,6 +87,11 @@ public class ChangeTableTypePanel extends FramedPanel { comboTableType.setTriggerAction(TriggerAction.ALL); change = new TextButton("Change"); + change.setIcon(ResourceBundle.INSTANCE.tableType()); + change.setIconAlign(IconAlign.RIGHT); + change.setTitle("Change Table Type"); + + change.addSelectHandler(new SelectHandler() { public void onSelect(SelectEvent event) { diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/ResourceBundle.java b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/ResourceBundle.java index db8a496..13a10b5 100644 --- a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/ResourceBundle.java +++ b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/ResourceBundle.java @@ -149,5 +149,11 @@ public interface ResourceBundle extends ClientBundle { @Source("table-duplicate-rows-remove_32.png") ImageResource tableDuplicateRowsRemove32(); + @Source("table-type.png") + ImageResource tableType(); + + @Source("table-type_32.png") + ImageResource tableType32(); + } \ No newline at end of file diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/table-type.png b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/table-type.png new file mode 100644 index 0000000..5af2708 Binary files /dev/null and b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/table-type.png differ diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/table-type_32.png b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/table-type_32.png new file mode 100644 index 0000000..996bdee Binary files /dev/null and b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/table-type_32.png differ diff --git a/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/table-type.png b/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/table-type.png new file mode 100644 index 0000000..5af2708 Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/table-type.png differ diff --git a/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/table-type_32.png b/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/table-type_32.png new file mode 100644 index 0000000..996bdee Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/table-type_32.png differ