diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/create/AddColumnPanel.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/create/AddColumnPanel.java index 8be4602..f1b0fea 100644 --- a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/create/AddColumnPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/create/AddColumnPanel.java @@ -105,7 +105,7 @@ public class AddColumnPanel extends FramedPanel implements protected AddColumnSession addColumnSession; protected AddColumnProgressDialog addColumnProgressDialog; - protected TextButton btnSave; + protected TextButton btnAddColumn; protected TextField label; protected TextField defaultValue; @@ -306,10 +306,10 @@ public class AddColumnPanel extends FramedPanel implements // Save - btnSave = new TextButton("Save"); - btnSave.setIcon(ResourceBundle.INSTANCE.save()); - btnSave.setIconAlign(IconAlign.RIGHT); - btnSave.setTitle("Save"); + btnAddColumn = new TextButton("Add"); + btnAddColumn.setIcon(ResourceBundle.INSTANCE.columnAdd()); + btnAddColumn.setIconAlign(IconAlign.RIGHT); + btnAddColumn.setTitle("Add Column"); SelectHandler changeHandler = new SelectHandler() { @@ -319,7 +319,7 @@ public class AddColumnPanel extends FramedPanel implements } }; - btnSave.addSelectHandler(changeHandler); + btnAddColumn.addSelectHandler(changeHandler); VerticalLayoutContainer v = new VerticalLayoutContainer(); v.add(new FieldLabel(label, "Label"), new VerticalLayoutData(1, -1, @@ -340,7 +340,7 @@ public class AddColumnPanel extends FramedPanel implements new Margins(1))); v.add(new FieldLabel(defaultValue, "Default"), new VerticalLayoutData( 1, -1, new Margins(1))); - v.add(btnSave, + v.add(btnAddColumn, new VerticalLayoutData(-1, -1, new Margins(10, 0, 10, 0))); add(v, new VerticalLayoutData(-1, -1, new Margins(0))); diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/resources/ResourceBundle.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/resources/ResourceBundle.java index cb1f6db..ce42270 100644 --- a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/resources/ResourceBundle.java +++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/resources/ResourceBundle.java @@ -40,6 +40,13 @@ public interface ResourceBundle extends ClientBundle { @Source("column-values_32.png") ImageResource columnValue32(); + @Source("column-add.png") + ImageResource columnAdd(); + + @Source("column-add_32.png") + ImageResource columnAdd32(); + + @Source("column-replace.png") ImageResource replace(); diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/resources/column-add.png b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/resources/column-add.png new file mode 100644 index 0000000..cd434d2 Binary files /dev/null and b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/resources/column-add.png differ diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/resources/column-add_32.png b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/resources/column-add_32.png new file mode 100644 index 0000000..c987f8c Binary files /dev/null and b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/resources/column-add_32.png differ diff --git a/src/main/resources/org/gcube/portlets/user/td/columnwidget/client/resources/column-add.png b/src/main/resources/org/gcube/portlets/user/td/columnwidget/client/resources/column-add.png new file mode 100644 index 0000000..cd434d2 Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/columnwidget/client/resources/column-add.png differ diff --git a/src/main/resources/org/gcube/portlets/user/td/columnwidget/client/resources/column-add_32.png b/src/main/resources/org/gcube/portlets/user/td/columnwidget/client/resources/column-add_32.png new file mode 100644 index 0000000..c987f8c Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/columnwidget/client/resources/column-add_32.png differ