Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@94976 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-17 14:08:55 +00:00
parent 56ab9f629b
commit 10c5e16107
10 changed files with 46 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import java.util.HashMap;
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
import org.gcube.portlets.user.td.gwtservice.shared.tr.TableData;
import org.gcube.portlets.user.td.informationwidget.client.resources.ResourceBundle;
import org.gcube.portlets.user.td.informationwidget.client.util.InfoMessageBox;
import org.gcube.portlets.user.td.metadatawidget.client.TRMetadataAccordionPanel;
import org.gcube.portlets.user.td.metadatawidget.client.TableMetadataAccordionPanel;
@ -15,6 +16,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
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.core.client.dom.ScrollSupport.ScrollMode;
import com.sencha.gxt.core.client.util.Margins;
import com.sencha.gxt.widget.core.client.FramedPanel;
@ -121,6 +123,9 @@ public class TabularResourceProperties extends FramedPanel {
// Save Button
saveButton = new TextButton("Save");
saveButton.setIcon(ResourceBundle.INSTANCE.save());
saveButton.setIconAlign(IconAlign.RIGHT);
saveButton.setTitle("Save");
SelectHandler saveHandler = new SelectHandler() {
public void onSelect(SelectEvent event) {
@ -133,7 +138,8 @@ public class TabularResourceProperties extends FramedPanel {
new Margins(2)));
vl.add(trFieldSet);
}
protected void updateTabularResource(TabResource tabResource) {
@ -166,6 +172,10 @@ public class TabularResourceProperties extends FramedPanel {
// Validation Button
validationsButton = new TextButton("Validations");
validationsButton.setIcon(ResourceBundle.INSTANCE.tableValidation());
validationsButton.setIconAlign(IconAlign.RIGHT);
validationsButton.setTitle("Validations");
SelectHandler validationsHandler = new SelectHandler() {
public void onSelect(SelectEvent event) {
@ -241,7 +251,7 @@ public class TabularResourceProperties extends FramedPanel {
public void onSuccess(TableData result) {
updateTable(result);
Log.info("Retrived LastTable:" + result.getName());
Log.debug("Retrived LastTable:" + result);
}

View File

@ -0,0 +1,34 @@
package org.gcube.portlets.user.td.informationwidget.client.resources;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
/**
* Resource Bundle
*
* @author "Giancarlo Panichi"
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public interface ResourceBundle extends ClientBundle {
public static final ResourceBundle INSTANCE=GWT.create(ResourceBundle.class);
@Source("disk.png")
ImageResource save();
@Source("disk_32.png")
ImageResource save32();
@Source("table-validation.png")
ImageResource tableValidation();
@Source("table-validation_32.png")
ImageResource tableValidation32();
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 886 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 881 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 886 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 881 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB