[kune-commits] r1398 - / donate donate/.settings donate/src donate/src/cc donate/src/cc/kune donate/src/cc/kune/sandbox donate/src/cc/kune/sandbox/donate donate/src/cc/kune/sandbox/donate/client donate/war donate/war/WEB-INF
Vicente J. Ruiz Jurado
vjrj_ at ourproject.org
Tue Jun 7 18:07:55 CEST 2011
Author: vjrj_
Date: 2011-06-07 18:07:55 +0200 (Tue, 07 Jun 2011)
New Revision: 1398
Added:
donate/
donate/.classpath
donate/.project
donate/.settings/
donate/.settings/com.google.gdt.eclipse.core.prefs
donate/.settings/com.google.gwt.eclipse.core.prefs
donate/.settings/org.eclipse.jdt.core.prefs
donate/bin/
donate/src/
donate/src/cc/
donate/src/cc/kune/
donate/src/cc/kune/sandbox/
donate/src/cc/kune/sandbox/donate/
donate/src/cc/kune/sandbox/donate/Donate.gwt.xml
donate/src/cc/kune/sandbox/donate/client/
donate/src/cc/kune/sandbox/donate/client/Donate.java
donate/src/cc/kune/sandbox/donate/server/
donate/war/
donate/war/Donate.css
donate/war/Donate.html
donate/war/WEB-INF/
donate/war/WEB-INF/web.xml
donate/war/blue_gradient.gif
donate/war/btn-blue.png
donate/war/btn-orange.png
donate/war/dot1.png
donate/war/dot2.png
donate/war/dot3.png
donate/war/dot4.png
donate/war/drafts.gif
donate/war/gray_gradient.gif
donate/war/home.gif
Log:
donate test page
Property changes on: donate
___________________________________________________________________
Name: svn:ignore
+ .gwt
Added: donate/.classpath
===================================================================
--- donate/.classpath (rev 0)
+++ donate/.classpath 2011-06-07 16:07:55 UTC (rev 1398)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER/GWT (6)"/>
+ <classpathentry kind="output" path="war/WEB-INF/classes"/>
+</classpath>
Added: donate/.project
===================================================================
--- donate/.project (rev 0)
+++ donate/.project 2011-06-07 16:07:55 UTC (rev 1398)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>donate</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.google.gdt.eclipse.designer.GWTBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>com.google.gdt.eclipse.designer.GWTNature</nature>
+ <nature>com.google.gwt.eclipse.core.gwtNature</nature>
+ </natures>
+</projectDescription>
Added: donate/.settings/com.google.gdt.eclipse.core.prefs
===================================================================
--- donate/.settings/com.google.gdt.eclipse.core.prefs (rev 0)
+++ donate/.settings/com.google.gdt.eclipse.core.prefs 2011-06-07 16:07:55 UTC (rev 1398)
@@ -0,0 +1,5 @@
+#Mon Jun 06 15:05:50 CEST 2011
+eclipse.preferences.version=1
+jarsExcludedFromWebInfLib=
+warSrcDir=war
+warSrcDirIsOutput=true
Added: donate/.settings/com.google.gwt.eclipse.core.prefs
===================================================================
--- donate/.settings/com.google.gwt.eclipse.core.prefs (rev 0)
+++ donate/.settings/com.google.gwt.eclipse.core.prefs 2011-06-07 16:07:55 UTC (rev 1398)
@@ -0,0 +1,5 @@
+#Mon Jun 06 15:05:57 CEST 2011
+eclipse.preferences.version=1
+entryPointModules=
+filesCopiedToWebInfLib=gwt-servlet.jar
+gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBW11dPjwvZXh0cmEtYXJncz48dm0tYXJncz48IVtDREFUQVstWG14NTEybV1dPjwvdm0tYXJncz48ZW50cnktcG9pbnQtbW9kdWxlPmNjLmt1bmUuc2FuZGJveC5kb25hdGUuRG9uYXRlPC9lbnRyeS1wb2ludC1tb2R1bGU+PC9nd3QtY29tcGlsZS1zZXR0aW5ncz4\=
Added: donate/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- donate/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ donate/.settings/org.eclipse.jdt.core.prefs 2011-06-07 16:07:55 UTC (rev 1398)
@@ -0,0 +1,12 @@
+#Thu Jun 02 21:06:12 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added: donate/src/cc/kune/sandbox/donate/Donate.gwt.xml
===================================================================
--- donate/src/cc/kune/sandbox/donate/Donate.gwt.xml (rev 0)
+++ donate/src/cc/kune/sandbox/donate/Donate.gwt.xml 2011-06-07 16:07:55 UTC (rev 1398)
@@ -0,0 +1,4 @@
+<module>
+ <inherits name="com.google.gwt.user.User"/>
+ <entry-point class="cc.kune.sandbox.donate.client.Donate"/>
+</module>
Added: donate/src/cc/kune/sandbox/donate/client/Donate.java
===================================================================
--- donate/src/cc/kune/sandbox/donate/client/Donate.java (rev 0)
+++ donate/src/cc/kune/sandbox/donate/client/Donate.java 2011-06-07 16:07:55 UTC (rev 1398)
@@ -0,0 +1,353 @@
+package cc.kune.sandbox.donate.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.ui.FormPanel;
+import com.google.gwt.user.client.ui.Hidden;
+import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.HTMLPanel;
+import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.TextBox;
+import com.google.gwt.user.client.ui.TextBoxBase;
+import com.google.gwt.user.client.ui.VerticalPanel;
+import com.google.gwt.event.dom.client.FocusHandler;
+import com.google.gwt.event.dom.client.FocusEvent;
+import com.google.gwt.event.dom.client.BlurHandler;
+import com.google.gwt.event.dom.client.BlurEvent;
+
+/**
+ * Entry point classes define <code>onModuleLoad()</code>.
+ */
+public class Donate implements EntryPoint {
+ //Definicion de variables
+ private TextBox txtbxOtherValue = new TextBox(); //TextBox otro valor EUROS
+ private TextBox txtbxOtherValueDolar = new TextBox();
+ private String sDefaultValue = "other value"; //Valor por defecto
+ @SuppressWarnings("deprecation")
+ public void onModuleLoad() {
+ RootPanel rootPanel = RootPanel.get();
+
+ HTMLPanel divEntries = new HTMLPanel("");
+ divEntries.setStyleName("entries");
+ rootPanel.add(divEntries, 10, 10);
+
+ HTMLPanel divRightedit = new HTMLPanel("");
+ divRightedit.setStyleName("rightedit");
+ divEntries.add(divRightedit);
+
+
+ HTMLPanel divPost = new HTMLPanel("");
+ divPost.setStyleName("post");
+ divEntries.add(divPost);
+
+ HTML contenidoDivPost = new HTML(getParrafo(null) + getCabecera("Donate to comunes", 2)+
+ getParrafo("Comunes is a non-profit organization dedicated to " +
+ "encourage the commons, those goods collectively owned by everybody, " +
+ "and also serves as an umbrella for other related initiatives. We rely " +
+ "on the generous support of people like you and other collectives to " +
+ "help us continue the work we do.") + getParrafo(null) +
+ getCabecera("Regular donation per month (the most necessary for us)", 3) +
+ getParrafo(null), true);
+ contenidoDivPost.setStyleName("textoPost");
+
+ divPost.add(contenidoDivPost);
+
+ //Opciones para donaciones en Euros
+ HTMLPanel pnListaEuro = new HTMLPanel("");
+ pnListaEuro.setStyleName("p0");
+
+ HTML divListaEUR = new HTML("<ul class='blue'>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions&business=donate%40ourproject.org¤cy_code=EUR&no_shipping=1&t3=M&p3=1&src=1&sra=1&a3=10&lc=es&item_name=Donate to comunes.org&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>10 €/month</span></a></li> " +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions&business=donate%40ourproject.org¤cy_code=EUR&no_shipping=1&t3=M&p3=1&src=1&sra=1&a3=15&lc=es&item_name=Donate to comunes.org&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>15 €/month</span></a></li>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions&business=donate%40ourproject.org¤cy_code=EUR&no_shipping=1&t3=M&p3=1&src=1&sra=1&a3=20&lc=es&item_name=Donate to comunes.org&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>20 €/month</span></a></li>");
+ divListaEUR.setStyleName("cm-btn cm-btn-line");
+ pnListaEuro.add(divListaEUR);
+
+ divPost.add(pnListaEuro);
+ txtbxOtherValue.addBlurHandler(new BlurHandler() {
+ String sDefaultValue = "other value";
+ public void onBlur(BlurEvent event) {
+ String sActualValue = txtbxOtherValue.getText();
+ int iActualValue = 0;
+ if(!sActualValue.equals(""))
+ {
+ iActualValue = Integer.parseInt(sActualValue);
+ }
+ //validate
+ if(sActualValue == "" || iActualValue == 0 || sActualValue != "" + iActualValue)
+ {
+ txtbxOtherValue.setText(sDefaultValue);
+ }
+ }
+ });
+
+ //Configuramos el boton
+ txtbxOtherValue.setName("a3");
+ txtbxOtherValue.setVisibleLength(10);
+ txtbxOtherValue.setTextAlignment(TextBoxBase.ALIGN_CENTER);
+ txtbxOtherValue.setSize("83px", "16px");
+ txtbxOtherValue.setValue(sDefaultValue);
+ txtbxOtherValue.setTitle("Type other value and press Enter");
+
+ txtbxOtherValue.addFocusHandler(new FocusHandler() {
+ //FieldFocused
+ public void onFocus(FocusEvent event) {
+ String sDefaultValue = "other value";
+ //Window.alert(txtbxOtherValue.getText());
+ if(txtbxOtherValue.getText().equals(sDefaultValue))
+ {
+ txtbxOtherValue.setText("");
+ }
+ }
+ });
+
+ HTMLPanel pnOtherValue = new HTMLPanel("");
+ divPost.add(pnOtherValue);
+ pnOtherValue.setStyleName("p1");
+
+ //Campos del form
+ Hidden h1 = new Hidden();
+ h1.setName("business");
+ h1.setValue("donate at ourproject.org");
+
+ Hidden h2 = new Hidden();
+ h2.setName("cmd");
+ h2.setValue("_xclick-subscriptions");
+
+ Hidden h3 = new Hidden();
+ h3.setName("item_name");
+ h3.setValue("Donate to comunes.org");
+
+ Hidden h4 = new Hidden();
+ h4.setName("currency_code");
+ h4.setValue("EUR");
+
+ Hidden h4Dolar = new Hidden();
+ h4Dolar.setName("currency_code");
+ h4Dolar.setValue("USD");
+
+ Hidden h5 = new Hidden();
+ h5.setName("no_shipping");
+ h5.setValue("1");
+
+ Hidden h6 = new Hidden();
+ h6.setName("t3");
+ h6.setValue("M");
+
+ Hidden h7 = new Hidden();
+ h7.setName("p3");
+ h7.setValue("1");
+
+ Hidden h8 = new Hidden();
+ h8.setName("src");
+ h8.setValue("1");
+
+ Hidden h9 = new Hidden();
+ h9.setName("image_url");
+ h9.setValue("http://comunes.org/cm/images/logo-pp.png");
+
+ Hidden h10 = new Hidden();
+ h10.setName("sra");
+ h10.setValue("1");
+
+ Hidden h11 = new Hidden();
+ h11.setName("lc");
+ h11.setValue("us");
+ //Fin campos del form
+
+ FormPanel frmOtherValue = new FormPanel();
+ frmOtherValue.setMethod("get");
+ frmOtherValue.setAction("https://www.paypal.com/cgi-bin/webscr");
+
+ VerticalPanel pnFrmOtherValue = new VerticalPanel();
+
+ pnFrmOtherValue.add(h1);
+ pnFrmOtherValue.add(h2);
+ pnFrmOtherValue.add(h3);
+ pnFrmOtherValue.add(h4);
+ pnFrmOtherValue.add(h5);
+ pnFrmOtherValue.add(h6);
+ pnFrmOtherValue.add(h7);
+ pnFrmOtherValue.add(h8);
+ pnFrmOtherValue.add(h9);
+ pnFrmOtherValue.add(h10);
+ pnFrmOtherValue.add(h11);
+ pnFrmOtherValue.add(txtbxOtherValue);
+
+ frmOtherValue.add(pnFrmOtherValue);
+ pnOtherValue.add(frmOtherValue);
+
+ HTMLPanel pnLabelEUR = new HTMLPanel(" €/month ");
+ pnLabelEUR.setStyleName("p1Label");
+ divPost.add(pnLabelEUR);
+
+ //Opciones para donaciones en Dolares
+ HTMLPanel pnListaDolar = new HTMLPanel("");
+ pnListaDolar.setStyleName("p0");
+
+ HTML divListaUSA = new HTML("<ul class='blue'>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions&business=donate%40ourproject.org¤cy_code=USD&no_shipping=1&t3=M&p3=1&src=1&sra=1&a3=10&lc=es&item_name=Donate to comunes.org&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>10 $/month</span></a></li> " +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions&business=donate%40ourproject.org¤cy_code=USD&no_shipping=1&t3=M&p3=1&src=1&sra=1&a3=15&lc=es&item_name=Donate to comunes.org&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>15 $/month</span></a></li>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions&business=donate%40ourproject.org¤cy_code=USD&no_shipping=1&t3=M&p3=1&src=1&sra=1&a3=20&lc=es&item_name=Donate to comunes.org&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>20 $/month</span></a></li>");
+ divListaUSA.setStyleName("cm-btn cm-btn-line");
+ pnListaDolar.add(divListaUSA);
+
+ divPost.add(pnListaDolar);
+ txtbxOtherValueDolar.addBlurHandler(new BlurHandler() {
+ String sDefaultValue = "other value";
+ public void onBlur(BlurEvent event) {
+ String sActualValue = txtbxOtherValueDolar.getText();
+ int iActualValue = 0;
+ if(!sActualValue.equals(""))
+ {
+ iActualValue = Integer.parseInt(sActualValue);
+ }
+ //validate
+ if(sActualValue == "" || iActualValue == 0 || sActualValue != "" + iActualValue)
+ {
+ txtbxOtherValueDolar.setText(sDefaultValue);
+ }
+ }
+ });
+
+ //Configuramos el boton de Dolar
+ txtbxOtherValueDolar.setName("a3");
+ txtbxOtherValueDolar.setVisibleLength(10);
+ txtbxOtherValueDolar.setTextAlignment(TextBoxBase.ALIGN_CENTER);
+ txtbxOtherValueDolar.setSize("83px", "16px");
+ txtbxOtherValueDolar.setValue(sDefaultValue);
+ txtbxOtherValueDolar.setTitle("Type other value and press Enter");
+
+ txtbxOtherValueDolar.addFocusHandler(new FocusHandler() {
+ //FieldFocused
+ public void onFocus(FocusEvent event) {
+ String sDefaultValue = "other value";
+ //Window.alert(txtbxOtherValueDolar.getText());
+ if(txtbxOtherValueDolar.getText().equals(sDefaultValue))
+ {
+ txtbxOtherValueDolar.setText("");
+ }
+ }
+ });
+
+ HTMLPanel pnOtherValueDolar = new HTMLPanel("");
+ divPost.add(pnOtherValueDolar);
+ pnOtherValueDolar.setStyleName("p1");
+
+ FormPanel frmOtherValueDolar = new FormPanel();
+ frmOtherValueDolar.setMethod("get");
+ frmOtherValueDolar.setAction("https://www.paypal.com/cgi-bin/webscr");
+
+ VerticalPanel pnFrmOtherValueDolar = new VerticalPanel();
+
+ pnFrmOtherValueDolar.add(h1);
+ pnFrmOtherValueDolar.add(h2);
+ pnFrmOtherValueDolar.add(h3);
+ pnFrmOtherValueDolar.add(h4Dolar); //Hidden diferente
+ pnFrmOtherValueDolar.add(h5);
+ pnFrmOtherValueDolar.add(h6);
+ pnFrmOtherValueDolar.add(h7);
+ pnFrmOtherValueDolar.add(h8);
+ pnFrmOtherValueDolar.add(h9);
+ pnFrmOtherValueDolar.add(h10);
+ pnFrmOtherValueDolar.add(h11);
+ pnFrmOtherValueDolar.add(txtbxOtherValueDolar);
+
+ frmOtherValueDolar.add(pnFrmOtherValueDolar);
+ pnOtherValueDolar.add(frmOtherValueDolar);
+
+ HTMLPanel pnLabelDolar = new HTMLPanel(" $/month ");
+ pnLabelDolar.setStyleName("p1Label");
+ divPost.add(pnLabelDolar);
+
+ //Siguiente p�rrafo
+ HTML contenidoDivPost2 = new HTML(getCabecera("Single donation", 3), true);
+ contenidoDivPost2.setStyleName("textoPost");
+
+ divPost.add(contenidoDivPost2);
+
+ //Opciones para donaciones simples en Euros
+ HTMLPanel pnListaEuro2 = new HTMLPanel("");
+ pnListaEuro2.setStyleName("p0");
+
+ HTML divListaEUR2 = new HTML("<ul class='blue'>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Donate to comunes.org¤cy_code=EUR&amount=25&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>25 € </span></a></li>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Donate to comunes.org¤cy_code=EUR&amount=75&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>75 € </span></a></li> " +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Donate to comunes.org¤cy_code=EUR&amount=150&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>150 € </span></a></li>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Donate to comunes.org¤cy_code=EUR&amount=300&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>300 € </span></a></li>");
+ divListaEUR2.setStyleName("cm-btn cm-btn-line");
+ pnListaEuro2.add(divListaEUR2);
+ divPost.add(pnListaEuro2);
+
+ //Opciones para donaciones simples en dolares
+ HTMLPanel pnListaDolar2 = new HTMLPanel("");
+ pnListaDolar2.setStyleName("p0");
+
+ HTML divListaUSA2 = new HTML("<ul class='blue'>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Donate to comunes.org¤cy_code=USD&amount=25&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>25 $ </span></a></li>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Donate to comunes.org¤cy_code=USD&amount=75&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>75 $ </span></a></li>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Donate to comunes.org¤cy_code=USD&amount=150&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>150 $ </span></a></li>" +
+ "<li><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Donate to comunes.org¤cy_code=USD&amount=300&image_url=http://comunes.org/cm/images/logo-pp.png' class='current'><span>300 $ </span></a></li>");
+ divListaUSA2.setStyleName("cm-btn cm-btn-line");
+ pnListaDolar2.add(divListaUSA2);
+
+ divPost.add(pnListaDolar2);
+
+ HTMLPanel pnVacio = new HTMLPanel("");
+ pnVacio.setStyleName("divVacio");
+
+ divPost.add(pnVacio);
+
+ //Texto final
+ HTML contenidoDivPost3 = new HTML(getParrafo("For other amounts use <a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Donate to comunes.org¤cy_code=EUR&image_url=http://comunes.org/cm/images/logo-pp.png'>this link for Euros</a> or <a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Donate to comunes.org¤cy_code=USD&image_url=http://comunes.org/cm/images/logo-pp.png'>this one for USD.</a>") +
+ getParrafo("Please consider donating more if you can afford it.") +
+ getCabecera("Give using your Bank", 3) +
+ "<br />" +
+ getParrafo("<a href='http://comunes.org/bank-info'>See our Bank account info page</a>") +
+ getParrafo("Unless you specify the contrary, we will add you to our donor list.") +
+ getParrafo("If you have doubts please contact us at donate at ourproject dot org.") +
+ getCabecera("Thanks indeed!", 3), true);
+ contenidoDivPost3.setStyleName("textoPost");
+
+ divPost.add(contenidoDivPost3);
+ }
+
+ public String getParrafo(String sTexto)
+ {
+ String p = "<p>";
+ if(sTexto != null)
+ {
+ p += sTexto;
+ }
+ p += "</p>";
+
+ return p;
+ }
+
+ public String getCabecera(String sTexto, int iTipo)
+ {
+ String cab = "";
+ String sCabecera = "";
+ String sFinCabecera = "";
+ switch(iTipo)
+ {
+ case 2:
+ case 3:
+ sCabecera = "<h" + iTipo + ">";
+ sFinCabecera = "</h" + iTipo + ">";
+ break;
+ default:
+ sCabecera = "<h2>";
+ sFinCabecera = "</h2>";
+ break;
+ }
+
+ cab += sCabecera;
+ if(sTexto != null)
+ {
+ cab += sTexto;
+ }
+ cab += sFinCabecera;
+
+ return cab;
+ }
+}
Property changes on: donate/war
___________________________________________________________________
Name: svn:ignore
+ cc.kune.sandbox.donate.Donate
Added: donate/war/Donate.css
===================================================================
--- donate/war/Donate.css (rev 0)
+++ donate/war/Donate.css 2011-06-07 16:07:55 UTC (rev 1398)
@@ -0,0 +1,404 @@
+html {overflow:auto;height:100%;margin-bottom : 0.1em;}
+* {padding:0;margin:0;}
+body {background:#fff;font:0.88em Arial,Helvetica,Geneva,sans-serif;line-height:1.5em;color:#444444;}
+a {color:#FE7047;text-decoration:none;outline:none;font-weight:bold;}
+a:hover {background:inherit;color:#029A00;text-decoration:none;outline:0;}
+a:visited {text-decoration:none;outline:0;}
+a:link h3 {color:#951400;border:none;outline:0;}
+a:link img {border:none;outline:none;}
+p {padding-top:5px;padding-bottom:5px;}
+ul {list-style:none;margin-left:0;padding-left:0;margin-top:0;}
+ol {margin-left:0;margin-left:30px;margin-top:0;}
+img {border:none;padding-top:3px;padding-bottom:3px;}
+.textoPost{float:none;clear: both;}
+.p0{float:left;}
+.p0 ul li{
+ background: url(btn-blue.png) no-repeat top right;
+}
+.p1{float:left;border-bottom: 1px solid #E7E7E7;background-color: #FFFFFF;list-style: none outside none;margin: 10px 0;padding: 5px;}
+.p1 input {margin: 5px 0;}
+
+.p1Label{float:left;background-color: #FFFFFF;list-style: none outside none;margin: 14px 0;padding: 5px;}
+
+.divVacio{clear:both;}
+
+.post-edit-link { margin-left: 10px; border: 1px solid #CCC; padding:3px; text-decoration:none; }
+.post h2 {text-align: inherits; }
+
+entries div {padding-right:15px; border-right: 0px solid #F2F2F2;}
+.entries {width : 590px;float : left;padding : 0 0 15px 0;line-height : 1.7em;}
+.post {text-align: justify; text-justify: newspaper; margin-bottom : 2em;}
+.post ul {list-style : disc;margin : 1px 5px 3px 15px; padding : 2px; }
+.post li ul li { list-style-type : circle; margin-bottom : 0px; }
+.post li ul li ul li { list-style-type : square; margin-bottom : 0px; }
+h1 {font-size : 2em;line-height : 1em;/** text-transform : uppercase; **/ display : inline;margin-bottom : 0.2em;margin-top : 2.5em;}
+entries div h2 {font-size : 2em;line-height : 1em;display : inline;margin-bottom : 0.2em;margin-top : 2.5em;}
+entries div h2 a {color:#444444;}
+entries div h2 a:hover {color:#029A00; background-color: inherit;}
+h3 {font-weight : bold;font-size : 1em;text-transform : uppercase;margin-bottom : 0.2em; /** margin-top : 2.5em; **/ letter-spacing : 0.2em;color : #34353e;
+/** border-bottom : 1px solid silver; **/ }
+entries h3 {clear: both;padding-top: 1em; /** margin-top: 1em; **/ }
+entries div h1.big {margin-bottom: 1.5em;}
+.post h3 {border-bottom : none;letter-spacing : normal;margin-bottom : -0.5em;}
+blockquote {background-color : #f3f3f3;padding : 10px;margin : 15px 0;}
+.big {display : inline;font-size : 3em;}
+.results_content {padding : 0 0 .5em 0;border-bottom : 1px solid silver;}
+span.archive-meta {font-size: .9em;}
+a.archive-permalink {color:#444444;display: block;font-size: 1.2em;}
+.except {margin-top : 1em;}
+div.results_date {margin-top: .5em;font-size: .9em;}
+.archlist {float : left;color : #333;width : 100%;}
+ul.archlist li {display : inline;list-style-type : none;margin-right : 10px;float : left;display : block;width : 215px;}
+ul.archlist li a {float : left;margin-right : 3px;}
+ul.archlist li a:hover {background : #f3f3f3 !important;color : #029A00;}
+div.post p img {max-width: 580px;}
+div.post-tags {margin: .25em 0;}
+
+.post ul li {list-style-image: url("dot1.png");}
+
+.post li li {list-style-image: url("dot2.png");}
+
+.post li li li {list-style-image: url("dot3.png");}
+
+.post li li li li {list-style-image: url("dot4.png");}
+
+h3 {color:#555;font-size:17px;font-weight:bold;letter-spacing:0em;margin-bottom:0.1em;text-transform:none;}
+
+.cm-btn ul {padding: 5px;margin: 10px 0;list-style: none;background-color: #FFF;float: left;clear: left;}
+
+.cm-btn-line ul {border-bottom: 1px solid #E7E7E7;}
+
+.cm-btn ul li {float: left;display: inline; /*For ignore double margin in IE6*/margin: 0 10px;}
+
+.cm-btn ul li a {text-decoration: none;float:left;color: #999;cursor: pointer;font: 900 14px/22px "Arial", Helvetica, sans-serif;}
+
+.cm-btn ul li a span {
+ margin: 0 10px 0 -10px;
+ padding: 1px 8px 5px 18px;
+ position: relative; /*To fix IE6 problem (not displaying)*/
+ float:left;
+}
+
+/*BLUE*/
+.cm-btn ul.blue li a.current, .cm-btn ul.blue li a:hover {
+ background: url(btn-blue.png) no-repeat top right;
+}
+
+.cm-btn ul.blue li a.current {
+ color: #13335b;
+}
+
+.cm-btn ul.blue li a:hover {
+ color: #951400;
+}
+
+.cm-btn ul.blue li a:active {
+ color: #029A00;
+}
+
+.cm-btn ul.blue li a.current span, .cm-btn ul.blue li a:hover span {
+ background: url(btn-blue.png) no-repeat top left;
+}
+
+/*ORANGE*/
+.cm-btn ul.orange li a.current, .cm-btn ul.orange li a:hover {
+ background: url(btn-orange.png) no-repeat top right;
+
+}
+
+.cm-btn ul.orange li a.current {
+ color: #FFFFFF;
+}
+
+.cm-btn ul.orange li a:hover {
+ color: #951400;
+}
+
+.cm-btn ul.orange li a:active {
+ color: #029A00;
+}
+
+
+.cm-btn ul.orange li a.current span, .cm-btn ul.orange li a:hover span {background: url(btn-orange.png) no-repeat top left;}
+
+
+.gwt-DialogBox {
+ border: 2px solid #AAAAAA;
+ background-color: white;
+}
+
+.gwt-DialogBox .Caption {
+ background-image: url(gray_gradient.gif);
+ background-repeat: repeat-x;
+ padding: 4px;
+ padding-bottom: 8px;
+ font-weight: bold;
+ cursor: default;
+}
+
+.gwt-MenuBar {
+ background-color: #C3D9FF;
+ cursor: default;
+}
+
+.gwt-MenuItem {
+ font-size: 80%;
+ margin: 1px;
+ cursor: default;
+}
+
+.gwt-MenuItem-selected {
+ background-color: #E8EEF7;
+}
+
+.gwt-Tree {
+}
+
+.gwt-Tree .gwt-TreeItem {
+ font-size: 80%;
+ cursor: default;
+}
+
+.gwt-Tree .gwt-TreeItem-selected {
+ background-color: #C3D9FF;
+}
+
+.gwt-StackPanel {
+ background-color: white;
+ border: 1px solid #AAAAAA;
+ width: 15em;
+}
+
+.gwt-StackPanel .gwt-StackPanelItem {
+ background-image: url(blue_gradient.gif);
+ background-repeat: repeat-x;
+ background-color: #EEEEEE;
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-StackPanel .gwt-StackPanelItem-selected {
+}
+
+.gwt-TabPanel {
+
+}
+
+.gwt-TabPanelBottom {
+ border-left: 1px solid #87b3ff;
+ border-right: 1px solid #87b3ff;
+ border-bottom: 1px solid #87b3ff;
+}
+
+.gwt-TabBar {
+ font-size: smaller;
+}
+
+.gwt-TabBar .gwt-TabBarFirst {
+ height: 100%;
+ border-bottom: 1px solid #87b3ff;
+ border-right: 1px solid #87b3ff;
+ padding-left: 3px;
+}
+
+.gwt-TabBar .gwt-TabBarRest {
+ border-bottom: 1px solid #87b3ff;
+ padding-right: 3px;
+}
+
+.gwt-TabBar .gwt-TabBarItem {
+ border-top: 1px solid #87b3ff;
+ border-bottom: 1px solid #87b3ff;
+ padding: 2px;
+ cursor: hand;
+ white-space: nowrap;
+ border-right: 1px solid #87b3ff;
+}
+
+.gwt-TabBar .gwt-TabBarItem-selected {
+ font-weight: bold;
+ background-color: #e8eef7;
+ border-top: 1px solid #87b3ff;
+ border-right: 1px solid #87b3ff;
+ border-bottom: 1px solid #e8eef7;
+ padding: 2px;
+ cursor: default;
+ white-space: nowrap;
+}
+
+.gwt-PushButton-up {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-PushButton-up-hovering {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-PushButton-down {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-PushButton-down-hovering {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-ToggleButton-up {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-ToggleButton-up-hovering {
+ background-color: #C3D9FF;
+ padding: 2px;
+ border: 2px solid transparent;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-ToggleButton-down {
+ background-color: #C3D9FF;
+ padding: 2px;
+ background-color: #E8F1FF;
+ border: 2px solid transparent;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-ToggleButton-down-hovering {
+ background-color: #C3D9FF;
+ padding: 2px;
+ background-color: #E8F1FF;
+ border: 2px solid transparent;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+ cursor: pointer;
+ cursor: hand;
+}
+
+.gwt-RichTextArea {
+ border: 1px solid black;
+ background-color: white;
+}
+
+.gwt-RichTextToolbar {
+ background-color: #C3D9FF;
+ padding: 2px;
+}
+
+.gwt-RichTextToolbar .gwt-PushButton-up {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+}
+
+.gwt-RichTextToolbar .gwt-PushButton-up-hovering {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+}
+
+.gwt-RichTextToolbar .gwt-PushButton-down {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+}
+
+.gwt-RichTextToolbar .gwt-PushButton-down-hovering {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+}
+
+.gwt-RichTextToolbar .gwt-ToggleButton-up {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+}
+
+.gwt-RichTextToolbar .gwt-ToggleButton-up-hovering {
+ margin-right: 2px;
+ border: 1px solid #C3D9FF;
+ border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
+}
+
+.gwt-RichTextToolbar .gwt-ToggleButton-down {
+ margin-right: 2px;
+ background-color: #E8F1FF;
+ border: 1px solid #C3D9FF;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+}
+
+.gwt-RichTextToolbar .gwt-ToggleButton-down-hovering {
+ margin-right: 2px;
+ background-color: #E8F1FF;
+ border: 1px solid #C3D9FF;
+ border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
+}
+
+.gwt-HorizontalSplitPanel {
+ border: 8px solid #C3D9FF;
+}
+
+.gwt-HorizontalSplitPanel .splitter {
+ background-color: #C3D9FF;
+ cursor: move;
+}
+
+.gwt-HorizontalSplitPanel .left {
+ background-color: #E8EEF7;
+}
+
+.gwt-VerticalSplitPanel {
+ border: 8px solid #C3D9FF;
+}
+
+.gwt-VerticalSplitPanel .splitter {
+ background-color: #C3D9FF;
+ height: 8px;
+ cursor: move;
+}
+
+.gwt-SuggestBoxPopup {
+ border: 2px solid #C3D9FF;
+}
+
+.gwt-SuggestBoxPopup .item {
+ padding: 2px;
+}
+
+.gwt-SuggestBoxPopup .item-selected {
+ background-color: #C3D9FF;
+ padding: 2px;
+}
+
+.gwt-DisclosurePanel {
+ border: 2px solid #C3D9FF;
+}
+
+.gwt-DisclosurePanel .header {
+ background-color: #e8eef7;
+ cursor: hand;
+}
Added: donate/war/Donate.html
===================================================================
--- donate/war/Donate.html (rev 0)
+++ donate/war/Donate.html 2011-06-07 16:07:55 UTC (rev 1398)
@@ -0,0 +1,36 @@
+<!doctype html>
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+
+ <!-- -->
+ <!-- Consider inlining CSS to reduce the number of requested files -->
+ <!-- -->
+ <link type="text/css" rel="stylesheet" href="Donate.css">
+
+ <!-- -->
+ <!-- Any title is fine -->
+ <!-- -->
+ <title>Wrapper HTML for Donate</title>
+
+ <!-- -->
+ <!-- This script loads your compiled module. -->
+ <!-- If you add any GWT meta tags, they must -->
+ <!-- be added before this line. -->
+ <!-- -->
+ <script language="javascript" src="cc.kune.sandbox.donate.Donate/cc.kune.sandbox.donate.Donate.nocache.js"></script>
+
+ </head>
+
+ <!-- -->
+ <!-- The body can have arbitrary html, or -->
+ <!-- we leave the body empty because we want -->
+ <!-- to create a completely dynamic ui -->
+ <!-- -->
+ <body>
+
+ <!-- OPTIONAL: include this if you want history support -->
+ <iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
+
+ </body>
+</html>
Property changes on: donate/war/WEB-INF
___________________________________________________________________
Name: svn:ignore
+ classes
deploy
lib
Added: donate/war/WEB-INF/web.xml
===================================================================
--- donate/war/WEB-INF/web.xml (rev 0)
+++ donate/war/WEB-INF/web.xml 2011-06-07 16:07:55 UTC (rev 1398)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+ <!-- Default page to serve -->
+ <welcome-file-list>
+ <welcome-file>Donate.html</welcome-file>
+ </welcome-file-list>
+
+</web-app>
Added: donate/war/blue_gradient.gif
===================================================================
(Binary files differ)
Property changes on: donate/war/blue_gradient.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: donate/war/btn-blue.png
===================================================================
(Binary files differ)
Property changes on: donate/war/btn-blue.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: donate/war/btn-orange.png
===================================================================
(Binary files differ)
Property changes on: donate/war/btn-orange.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: donate/war/dot1.png
===================================================================
(Binary files differ)
Property changes on: donate/war/dot1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: donate/war/dot2.png
===================================================================
(Binary files differ)
Property changes on: donate/war/dot2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: donate/war/dot3.png
===================================================================
(Binary files differ)
Property changes on: donate/war/dot3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: donate/war/dot4.png
===================================================================
(Binary files differ)
Property changes on: donate/war/dot4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: donate/war/drafts.gif
===================================================================
(Binary files differ)
Property changes on: donate/war/drafts.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: donate/war/gray_gradient.gif
===================================================================
(Binary files differ)
Property changes on: donate/war/gray_gradient.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: donate/war/home.gif
===================================================================
(Binary files differ)
Property changes on: donate/war/home.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
More information about the kune-commits
mailing list