Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@96373 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-06-03 10:39:21 +00:00
parent 4a5f68ea2f
commit 4c77dd7c1e
6 changed files with 14 additions and 7 deletions

View File

@ -105,7 +105,7 @@ public class AddColumnPanel extends FramedPanel implements
protected AddColumnSession addColumnSession; protected AddColumnSession addColumnSession;
protected AddColumnProgressDialog addColumnProgressDialog; protected AddColumnProgressDialog addColumnProgressDialog;
protected TextButton btnSave; protected TextButton btnAddColumn;
protected TextField label; protected TextField label;
protected TextField defaultValue; protected TextField defaultValue;
@ -306,10 +306,10 @@ public class AddColumnPanel extends FramedPanel implements
// Save // Save
btnSave = new TextButton("Save"); btnAddColumn = new TextButton("Add");
btnSave.setIcon(ResourceBundle.INSTANCE.save()); btnAddColumn.setIcon(ResourceBundle.INSTANCE.columnAdd());
btnSave.setIconAlign(IconAlign.RIGHT); btnAddColumn.setIconAlign(IconAlign.RIGHT);
btnSave.setTitle("Save"); btnAddColumn.setTitle("Add Column");
SelectHandler changeHandler = new SelectHandler() { SelectHandler changeHandler = new SelectHandler() {
@ -319,7 +319,7 @@ public class AddColumnPanel extends FramedPanel implements
} }
}; };
btnSave.addSelectHandler(changeHandler); btnAddColumn.addSelectHandler(changeHandler);
VerticalLayoutContainer v = new VerticalLayoutContainer(); VerticalLayoutContainer v = new VerticalLayoutContainer();
v.add(new FieldLabel(label, "Label"), new VerticalLayoutData(1, -1, v.add(new FieldLabel(label, "Label"), new VerticalLayoutData(1, -1,
@ -340,7 +340,7 @@ public class AddColumnPanel extends FramedPanel implements
new Margins(1))); new Margins(1)));
v.add(new FieldLabel(defaultValue, "Default"), new VerticalLayoutData( v.add(new FieldLabel(defaultValue, "Default"), new VerticalLayoutData(
1, -1, new Margins(1))); 1, -1, new Margins(1)));
v.add(btnSave, v.add(btnAddColumn,
new VerticalLayoutData(-1, -1, new Margins(10, 0, 10, 0))); new VerticalLayoutData(-1, -1, new Margins(10, 0, 10, 0)));
add(v, new VerticalLayoutData(-1, -1, new Margins(0))); add(v, new VerticalLayoutData(-1, -1, new Margins(0)));

View File

@ -40,6 +40,13 @@ public interface ResourceBundle extends ClientBundle {
@Source("column-values_32.png") @Source("column-values_32.png")
ImageResource columnValue32(); ImageResource columnValue32();
@Source("column-add.png")
ImageResource columnAdd();
@Source("column-add_32.png")
ImageResource columnAdd32();
@Source("column-replace.png") @Source("column-replace.png")
ImageResource replace(); ImageResource replace();

Binary file not shown.

After

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB