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
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
||||
|
||||
}
|
After Width: | Height: | Size: 482 B |
After Width: | Height: | Size: 886 B |
After Width: | Height: | Size: 881 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 482 B |
After Width: | Height: | Size: 886 B |
After Width: | Height: | Size: 881 B |
After Width: | Height: | Size: 1.7 KiB |