From 10c5e1610761ccd28d9b89a050cd7e802ccd05db Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 17 Apr 2014 14:08:55 +0000 Subject: [PATCH] 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 --- .../client/TabularResourceProperties.java | 14 ++++++-- .../client/resources/ResourceBundle.java | 34 ++++++++++++++++++ .../client/resources/disk.png | Bin 0 -> 482 bytes .../client/resources/disk_32.png | Bin 0 -> 886 bytes .../client/resources/table-validation.png | Bin 0 -> 881 bytes .../client/resources/table-validation_32.png | Bin 0 -> 1740 bytes .../client/resources/disk.png | Bin 0 -> 482 bytes .../client/resources/disk_32.png | Bin 0 -> 886 bytes .../client/resources/table-validation.png | Bin 0 -> 881 bytes .../client/resources/table-validation_32.png | Bin 0 -> 1740 bytes 10 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/ResourceBundle.java create mode 100644 src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/disk.png create mode 100644 src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/disk_32.png create mode 100644 src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/table-validation.png create mode 100644 src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/table-validation_32.png create mode 100644 src/main/resources/org/gcube/portlets/user/td/informationwidget/client/resources/disk.png create mode 100644 src/main/resources/org/gcube/portlets/user/td/informationwidget/client/resources/disk_32.png create mode 100644 src/main/resources/org/gcube/portlets/user/td/informationwidget/client/resources/table-validation.png create mode 100644 src/main/resources/org/gcube/portlets/user/td/informationwidget/client/resources/table-validation_32.png diff --git a/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java b/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java index 9a79736..131f571 100644 --- a/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java +++ b/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java @@ -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); } diff --git a/src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/ResourceBundle.java b/src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/ResourceBundle.java new file mode 100644 index 0000000..63ee2c8 --- /dev/null +++ b/src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/ResourceBundle.java @@ -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" + * g.panichi@isti.cnr.it + * + */ +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(); + + + +} \ No newline at end of file diff --git a/src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/disk.png b/src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/disk.png new file mode 100644 index 0000000000000000000000000000000000000000..9cce5346b4ebfd05d8454a26ba4ca9a02e45a5f7 GIT binary patch literal 482 zcmV<80UiE{P)=xo?f(~-YcTw9|5aM)Z|U8$Rm_~b3th~?T(}E!$QfojiL*wWo{Q59WBcHk zPdh*P_4|B~kuY<<4F4d3B%Z(hfubf=PPiB+ZcKFQiU+*~5oRJkQ~ z;ew-+hVHcvAToplNw|ari9oM1q!ePa_yEo>40A_7Ah;uWL4em!m!a5?>d+Ji0P-k` zL@mHf$i>U|Lxhk#+&Cq1AX4_%XXh~w;2K5_M0f6HORP&`$xAFy%^ZLliN<{V(==kq zF;9U2luMjmEQ!WwBgEmGM~h6e`kRMwZzBY=r~xrB!vmafQ7Y)_!k5df?6tA zSoqQzTR}9$e;`N-8?90V5i|->>}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jIBTD?|o z9mw}l;ZCF0!^F83wMx$T>?ID}bA|H3euf?qzS;T*bs<_pGY!wbUJU#(zc8NfqXO92 zNxboNlQT2dc;!fg+4fa_{B8zHfsRI^Ml#PZbI)pd@Dg`ty2sfa8nqtI%(SSNOMLPD zGUiJ3L=h4igpJ(|Ub_DnC!abM+MPD3h-CW@1F*537(3czyHH*|d<)SNYDS|nNT-O5 z4v%u=t|$2V(pQKGqKVwh5i=ZU)N?+YZE>KS^X2&^>JJHx@*r=HzRkk*KN;#DVsUkm z3zyH6H!2jdLzbkA(ZO%*3S&oar6b)93XlA?zR1O^^V~ahAHxTmO#k*R>)Y!ji6l+r zj)o#?sPy%6?D2++r10{i4HnmacgsB#vE!f5eHs>5uJFL^4|8^Yl9HE58c8CAljFbC zLzYb~EbWXC+*OpMPNn{L-*aQ_n|{6U6Cq@DQipbIlZO&Tiu4cGSzTUP4gl|baY4!wQhW00000NkvXX Hu0mjfA_kdb literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/table-validation_32.png b/src/main/java/org/gcube/portlets/user/td/informationwidget/client/resources/table-validation_32.png new file mode 100644 index 0000000000000000000000000000000000000000..c253439bd781138517e8133632a95e1361cefacf GIT binary patch literal 1740 zcmV;-1~d7IP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2i^n` z4gxUev_9bg00vA+L_t(o!_Al9Z(K(e$3JuT?yl`PP8>VbaZBo|t&n08XruzAiK&Px z-U_@_w51^6iAp?F;)w^82VRQAUjUH+l?o#9!zHLl4N=onDMX0U1Se6NrcqKgmfP6f zIQH({JLeo8X72Uf^-2f{5Gza9XJ+o4GvD()-!m8fAAUy{?0@d_@X-YTTru#olQ$n$ zwRu&WFf&vQHBeK`h;|q^tk<@RZ5G#Sc)yspa@_|8U;NRxW={j8MF55KPFGFMT;+wh zkq+2AJWUlbdIB*u#0;}yjUlSmtk))0WgghsAHYPXtM<$nCS2wX!X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zUhS)K{KGl!yt!P>Rou_cES>XR|ukHrw5>%9AO0N4iCuQpAb^hIqG-^3(+d>`!Sq6vtbJlkfr4Z=J z122vaAZnOFF8c}t*ES<3o@p|1uEmLGn{1`)w2OkXKP>awlTCJtND^cD#-jIBTD?|o z9mw}l;ZCF0!^F83wMx$T>?ID}bA|H3euf?qzS;T*bs<_pGY!wbUJU#(zc8NfqXO92 zNxboNlQT2dc;!fg+4fa_{B8zHfsRI^Ml#PZbI)pd@Dg`ty2sfa8nqtI%(SSNOMLPD zGUiJ3L=h4igpJ(|Ub_DnC!abM+MPD3h-CW@1F*537(3czyHH*|d<)SNYDS|nNT-O5 z4v%u=t|$2V(pQKGqKVwh5i=ZU)N?+YZE>KS^X2&^>JJHx@*r=HzRkk*KN;#DVsUkm z3zyH6H!2jdLzbkA(ZO%*3S&oar6b)93XlA?zR1O^^V~ahAHxTmO#k*R>)Y!ji6l+r zj)o#?sPy%6?D2++r10{i4HnmacgsB#vE!f5eHs>5uJFL^4|8^Yl9HE58c8CAljFbC zLzYb~EbWXC+*OpMPNn{L-*aQ_n|{6U6Cq@DQipbIlZO&Tiu4cGSzTUP4gl|baY4!wQhW00000NkvXX Hu0mjfA_kdb literal 0 HcmV?d00001 diff --git a/src/main/resources/org/gcube/portlets/user/td/informationwidget/client/resources/table-validation_32.png b/src/main/resources/org/gcube/portlets/user/td/informationwidget/client/resources/table-validation_32.png new file mode 100644 index 0000000000000000000000000000000000000000..c253439bd781138517e8133632a95e1361cefacf GIT binary patch literal 1740 zcmV;-1~d7IP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2i^n` z4gxUev_9bg00vA+L_t(o!_Al9Z(K(e$3JuT?yl`PP8>VbaZBo|t&n08XruzAiK&Px z-U_@_w51^6iAp?F;)w^82VRQAUjUH+l?o#9!zHLl4N=onDMX0U1Se6NrcqKgmfP6f zIQH({JLeo8X72Uf^-2f{5Gza9XJ+o4GvD()-!m8fAAUy{?0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