[kune-commits] r1420 - donate/src/cc/kune/sandbox/donate/client
Esteban Carreras Genis
ecarrerasg at ourproject.org
Sun Jun 26 12:45:35 CEST 2011
Author: ecarrerasg
Date: 2011-06-26 12:45:35 +0200 (Sun, 26 Jun 2011)
New Revision: 1420
Added:
donate/src/cc/kune/sandbox/donate/client/DonatePanel.java
donate/src/cc/kune/sandbox/donate/client/DonatePanel.ui.xml
Modified:
donate/src/cc/kune/sandbox/donate/client/Donate.java
Log:
UiBinder changes
Modified: donate/src/cc/kune/sandbox/donate/client/Donate.java
===================================================================
--- donate/src/cc/kune/sandbox/donate/client/Donate.java 2011-06-26 03:26:13 UTC (rev 1419)
+++ donate/src/cc/kune/sandbox/donate/client/Donate.java 2011-06-26 10:45:35 UTC (rev 1420)
@@ -1,20 +1,7 @@
package cc.kune.sandbox.donate.client;
import com.google.gwt.core.client.EntryPoint;
-import com.google.gwt.user.client.ui.Anchor;
-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.TextBox;
-import com.google.gwt.user.client.ui.HTML;
-import com.google.gwt.user.client.ui.TextBoxBase;
-import com.google.gwt.user.client.ui.Label;
-import com.google.gwt.user.client.ui.FormPanel;
-import com.google.gwt.user.client.ui.FlowPanel;
-import com.google.gwt.event.dom.client.BlurHandler;
-import com.google.gwt.event.dom.client.BlurEvent;
-import com.google.gwt.event.dom.client.FocusHandler;
-import com.google.gwt.event.dom.client.FocusEvent;
/**
* Entry point classes define <code>onModuimport com.google.gwt.user.client.ui.VerticalPanel;
@@ -23,506 +10,9 @@
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class Donate implements EntryPoint {
- //Cons
- private final String sDefaultValue = "other value";
- private final String sDefaultTitle = "Type other value and press Enter";
- //Definition of variables
- private TextBox txtbxOtherValueEUR = new TextBox();
- private TextBox txtbxOtherValueDollar = new TextBox();
-
- @SuppressWarnings("deprecation")
public void onModuleLoad() {
- RootPanel rootPanel = RootPanel.get();
- rootPanel.setHeight("100%");
-
- //Parent div
- HTMLPanel divEntries = new HTMLPanel("");
- divEntries.setStyleName("entries");
- rootPanel.add(divEntries, 10, 10);
-
- //Child empty div
- HTMLPanel divRightedit = new HTMLPanel("");
- divRightedit.setStyleName("rightedit");
- divEntries.add(divRightedit);
-
- //Child content div
- HTMLPanel divPost = new HTMLPanel("");
- divPost.setStyleName("post");
- divEntries.add(divPost);
-
- HTML divTitle = new HTML("Donate to Comunes", true);
- divPost.add(divTitle);
- divTitle.setStyleName("title");
-
- HTML divIntro = new HTML("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.", true);
- divIntro.setStyleName("intro");
- divPost.add(divIntro);
-
- HTML divTitleRegular = new HTML("Regular donation per month (the most necessary for us)", true);
- divTitleRegular.setStyleName("titleRegular");
- divPost.add(divTitleRegular);
-
- //Panel for Regular Donations in Euros
- HTMLPanel divRegularDonationsEUR = new HTMLPanel("");
- divRegularDonationsEUR.setStyleName("pnlOptions");
- divPost.add(divRegularDonationsEUR);
- divRegularDonationsEUR.setSize("550px", "28px");
-
- HTMLPanel pnlRegularDonation10EUR = new HTMLPanel("");
- pnlRegularDonation10EUR.setStyleName("option");
- divRegularDonationsEUR.add(pnlRegularDonation10EUR);
- pnlRegularDonation10EUR.setSize("115px", "28px");
-
- Anchor lnk1EUR = new Anchor();
- lnk1EUR.setStyleName("optionLeft");
- lnk1EUR.setHTML("10 \u20AC/month");
- lnk1EUR.setHref("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");
- pnlRegularDonation10EUR.add(lnk1EUR);
- lnk1EUR.setSize("85px", "28px");
-
- HTMLPanel pnlRegularDonation15EUR = new HTMLPanel("");
- pnlRegularDonation15EUR.setStyleName("option");
- divRegularDonationsEUR.add(pnlRegularDonation15EUR);
- pnlRegularDonation15EUR.setSize("115px", "28px");
-
- Anchor lnk2EUR = new Anchor();
- lnk2EUR.setHref("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");
- lnk2EUR.setStyleName("optionLeft");
- lnk2EUR.setHTML("15 \u20AC/month");
- pnlRegularDonation15EUR.add(lnk2EUR);
- lnk2EUR.setSize("85px", "28px");
-
- HTMLPanel pnlRegularDonation20EUR = new HTMLPanel("");
- pnlRegularDonation20EUR.setStyleName("option");
- divRegularDonationsEUR.add(pnlRegularDonation20EUR);
- pnlRegularDonation20EUR.setSize("115px", "28px");
-
- Anchor lnk3EUR = new Anchor();
- lnk3EUR.setStyleName("optionLeft");
- lnk3EUR.setHTML("20 \u20AC/month");
- lnk3EUR.setHref("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");
- pnlRegularDonation20EUR.add(lnk3EUR);
- lnk3EUR.setSize("85px", "28px");
-
- HTMLPanel pnlRegularDonationOtherEUR = new HTMLPanel("");
- pnlRegularDonationOtherEUR.setStyleName("optionOther");
- divRegularDonationsEUR.add(pnlRegularDonationOtherEUR);
- pnlRegularDonationOtherEUR.setSize("174px", "28px");
-
- FormPanel formPanelEUR = new FormPanel();
- formPanelEUR.setAction("https://www.paypal.com/cgi-bin/webscr");
- formPanelEUR.setMethod(FormPanel.METHOD_GET);
- pnlRegularDonationOtherEUR.add(formPanelEUR);
-
- FlowPanel flowPanelEUR = new FlowPanel();
- formPanelEUR.setWidget(flowPanelEUR);
- flowPanelEUR.setSize("100%", "100%");
- txtbxOtherValueEUR.setVisibleLength(10);
- txtbxOtherValueEUR.setName("a3");
-
- //Other Value Euro events
- txtbxOtherValueEUR.addFocusHandler(new FocusHandler() {
- public void onFocus(FocusEvent event) {
- String sDefaultValue = "other value";
- //Window.alert(txtbxOtherValue.getText());
- if(txtbxOtherValueEUR.getText().equals(sDefaultValue))
- {
- txtbxOtherValueEUR.setText("");
- }
- }
- });
-
- txtbxOtherValueEUR.addBlurHandler(new BlurHandler() {
- String sDefaultValue = "other value";
- public void onBlur(BlurEvent event) {
- String sActualValue = txtbxOtherValueEUR.getText();
- int iActualValue = 0;
- if(!sActualValue.equals(""))
- {
- iActualValue = Integer.parseInt(sActualValue);
- }
- //validate
- if(sActualValue == "" || iActualValue == 0 || sActualValue != "" + iActualValue)
- {
- txtbxOtherValueEUR.setText(sDefaultValue);
- }
- }
- });
- //End Other Value Euro events
-
- Hidden h1EUR = new Hidden("business");
- h1EUR.setDefaultValue("donate at ourproject.org");
- flowPanelEUR.add(h1EUR);
-
- Hidden h2EUR = new Hidden("cmd");
- h2EUR.setDefaultValue("_xclick-subscriptions");
- flowPanelEUR.add(h2EUR);
-
- Hidden h3EUR = new Hidden("item_name");
- h3EUR.setDefaultValue(" Donate to comunes.org");
- flowPanelEUR.add(h3EUR);
-
- Hidden h4EUR = new Hidden("currency_code");
- h4EUR.setDefaultValue("EUR");
- flowPanelEUR.add(h4EUR);
-
- Hidden h5EUR = new Hidden("no_shipping");
- h5EUR.setDefaultValue("1");
- flowPanelEUR.add(h5EUR);
-
- Hidden h6EUR = new Hidden("t3");
- h6EUR.setDefaultValue("M");
- flowPanelEUR.add(h6EUR);
-
- Hidden h7EUR = new Hidden("p3");
- h7EUR.setDefaultValue("1");
- flowPanelEUR.add(h7EUR);
-
- Hidden h8EUR = new Hidden("src");
- h8EUR.setDefaultValue("1");
- flowPanelEUR.add(h8EUR);
-
- Hidden h9EUR = new Hidden("image_url");
- h9EUR.setDefaultValue("http://comunes.org/cm/images/logo-pp.png");
- flowPanelEUR.add(h9EUR);
-
- Hidden h10EUR = new Hidden("sra");
- h10EUR.setDefaultValue("1");
- flowPanelEUR.add(h10EUR);
-
- Hidden h11EUR = new Hidden("lc");
- h11EUR.setDefaultValue("us");
- flowPanelEUR.add(h11EUR);
-
- flowPanelEUR.add(txtbxOtherValueEUR);
- txtbxOtherValueEUR.setSize("83px", "16px");
- txtbxOtherValueEUR.setTextAlignment(TextBoxBase.ALIGN_CENTER);
- txtbxOtherValueEUR.setText(sDefaultValue);
- txtbxOtherValueEUR.setTitle(sDefaultTitle);
-
- Label lblOtherEUR = new Label("\u20AC/month");
- flowPanelEUR.add(lblOtherEUR);
- lblOtherEUR.setStyleName("labelOther");
- //End of Panel for Regular Donations in Euros
-
- //Panel for Regular Donations in Dollars
- HTMLPanel divRegularDonationsDollar = new HTMLPanel("");
- divRegularDonationsDollar.setStyleName("pnlOptions");
- divPost.add(divRegularDonationsDollar);
- divRegularDonationsDollar.setSize("550px", "28px");
-
- HTMLPanel pnlRegularDonation10Dollar = new HTMLPanel("");
- pnlRegularDonation10Dollar.setStyleName("option");
- divRegularDonationsDollar.add(pnlRegularDonation10Dollar);
- pnlRegularDonation10Dollar.setSize("115px", "28px");
-
- Anchor lnk1Dollar = new Anchor();
- lnk1Dollar.setStyleName("optionLeft");
- lnk1Dollar.setHTML("10 $/month");
- lnk1Dollar.setHref("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");
- pnlRegularDonation10Dollar.add(lnk1Dollar);
- lnk1Dollar.setSize("85px", "28px");
-
- HTMLPanel pnlRegularDonation15Dollar = new HTMLPanel("");
- pnlRegularDonation15Dollar.setStyleName("option");
- divRegularDonationsDollar.add(pnlRegularDonation15Dollar);
- pnlRegularDonation15Dollar.setSize("115px", "28px");
-
- Anchor lnk2Dollar = new Anchor();
- lnk2Dollar.setStyleName("optionLeft");
- lnk2Dollar.setHTML("15 $/month");
- lnk2Dollar.setHref("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");
- pnlRegularDonation15Dollar.add(lnk2Dollar);
- lnk2Dollar.setSize("85px", "28px");
-
- HTMLPanel pnlRegularDonation20Dollar = new HTMLPanel("");
- pnlRegularDonation20Dollar.setStyleName("option");
- divRegularDonationsDollar.add(pnlRegularDonation20Dollar);
- pnlRegularDonation20Dollar.setSize("115px", "28px");
-
- Anchor lnk3Dollar = new Anchor();
- lnk3Dollar.setStyleName("optionLeft");
- lnk3Dollar.setHTML("20 $/month");
- lnk3Dollar.setHref("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");
- pnlRegularDonation20Dollar.add(lnk3Dollar);
- lnk3Dollar.setSize("85px", "28px");
-
- HTMLPanel pnlRegularDonationOtherDollar = new HTMLPanel("");
- pnlRegularDonationOtherDollar.setStyleName("optionOther");
- divRegularDonationsDollar.add(pnlRegularDonationOtherDollar);
- pnlRegularDonationOtherDollar.setSize("174px", "28px");
-
- FormPanel formPanelDollar = new FormPanel();
- formPanelDollar.setMethod(FormPanel.METHOD_GET);
- formPanelDollar.setAction("https://www.paypal.com/cgi-bin/webscr");
- pnlRegularDonationOtherDollar.add(formPanelDollar);
-
- FlowPanel flowPanelDollar = new FlowPanel();
- formPanelDollar.setWidget(flowPanelDollar);
- flowPanelDollar.setSize("100%", "100%");
- txtbxOtherValueDollar.setName("a3");
- txtbxOtherValueDollar.setVisibleLength(10);
-
- txtbxOtherValueDollar.setTitle("Type other value and press Enter");
- txtbxOtherValueDollar.setTextAlignment(TextBoxBase.ALIGN_CENTER);
- txtbxOtherValueDollar.setText("other value");
-
- //Other Value Dollar events
- txtbxOtherValueDollar.addFocusHandler(new FocusHandler() {
- public void onFocus(FocusEvent event) {
- String sDefaultValue = "other value";
- //Window.alert(txtbxOtherValue.getText());
- if(txtbxOtherValueDollar.getText().equals(sDefaultValue))
- {
- txtbxOtherValueDollar.setText("");
- }
- }
- });
-
- txtbxOtherValueDollar.addBlurHandler(new BlurHandler() {
- String sDefaultValue = "other value";
- public void onBlur(BlurEvent event) {
- String sActualValue = txtbxOtherValueDollar.getText();
- int iActualValue = 0;
- if(!sActualValue.equals(""))
- {
- iActualValue = Integer.parseInt(sActualValue);
- }
- //validate
- if(sActualValue == "" || iActualValue == 0 || sActualValue != "" + iActualValue)
- {
- txtbxOtherValueDollar.setText(sDefaultValue);
- }
- }
- });
- //End Other Value Dollar events
-
- Hidden h1Dollar = new Hidden("business");
- h1Dollar.setDefaultValue("donate at ourproject.org");
- flowPanelDollar.add(h1Dollar);
-
- Hidden h2Dollar = new Hidden("cmd");
- h2Dollar.setDefaultValue("_xclick-subscriptions");
- flowPanelDollar.add(h2Dollar);
-
- Hidden h3Dollar = new Hidden("item_name");
- h3Dollar.setDefaultValue(" Donate to comunes.org");
- flowPanelDollar.add(h3Dollar);
-
- Hidden h4Dollar = new Hidden("currency_code");
- h4Dollar.setDefaultValue("USD");
- flowPanelDollar.add(h4Dollar);
-
- Hidden h5Dollar = new Hidden("no_shipping");
- h5Dollar.setDefaultValue("1");
- flowPanelDollar.add(h5Dollar);
-
- Hidden h6Dollar = new Hidden("t3");
- h6Dollar.setDefaultValue("M");
- flowPanelDollar.add(h6Dollar);
-
- Hidden h7Dollar = new Hidden("p3");
- h7Dollar.setDefaultValue("1");
- flowPanelDollar.add(h7Dollar);
-
- Hidden h8Dollar = new Hidden("src");
- h8Dollar.setDefaultValue("1");
- flowPanelDollar.add(h8Dollar);
-
- Hidden h9Dollar = new Hidden("image_url");
- h9Dollar.setDefaultValue("http://comunes.org/cm/images/logo-pp.png");
- flowPanelDollar.add(h9Dollar);
-
- Hidden h10Dollar = new Hidden("sra");
- h10Dollar.setDefaultValue("1");
- flowPanelDollar.add(h10Dollar);
-
- Hidden h11Dollar = new Hidden("lc");
- h11Dollar.setDefaultValue("us");
- flowPanelDollar.add(h11Dollar);
-
- flowPanelDollar.add(txtbxOtherValueDollar);
- txtbxOtherValueDollar.setSize("83px", "16px");
-
- Label lblOtherDollar = new Label("$/month");
- lblOtherDollar.setStyleName("labelOther");
- flowPanelDollar.add(lblOtherDollar);
-
- HTML divTitleSingle = new HTML("Single donation", true);
- divPost.add(divTitleSingle);
- divTitleSingle.setStyleName("titleRegular");
-
- HTMLPanel divSingleDonationEUR = new HTMLPanel("");
- divSingleDonationEUR.setStyleName("pnlOptions");
- divPost.add(divSingleDonationEUR);
- divSingleDonationEUR.setSize("340px", "28px");
-
- HTMLPanel pnlRegularDonation25EUR = new HTMLPanel("");
- pnlRegularDonation25EUR.setStyleName("option");
- divSingleDonationEUR.add(pnlRegularDonation25EUR);
- pnlRegularDonation25EUR.setSize("75px", "28px");
-
- Anchor lnk1SingleEUR = new Anchor();
- lnk1SingleEUR.setStyleName("optionLeft");
- lnk1SingleEUR.setHTML("25 \u20AC");
- lnk1SingleEUR.setHref("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");
- pnlRegularDonation25EUR.add(lnk1SingleEUR);
- lnk1SingleEUR.setSize("45px", "28px");
-
- HTMLPanel pnlRegularDonation75EUR = new HTMLPanel("");
- pnlRegularDonation75EUR.setStyleName("option");
- divSingleDonationEUR.add(pnlRegularDonation75EUR);
- pnlRegularDonation75EUR.setSize("75px", "28px");
-
- Anchor lnk2SingleEUR = new Anchor();
- lnk2SingleEUR.setStyleName("optionLeft");
- lnk2SingleEUR.setHTML("75 \u20AC");
- lnk2SingleEUR.setHref("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");
- pnlRegularDonation75EUR.add(lnk2SingleEUR);
- lnk2SingleEUR.setSize("45px", "28px");
-
- HTMLPanel pnlRegularDonation150EUR = new HTMLPanel("");
- pnlRegularDonation150EUR.setStyleName("option");
- divSingleDonationEUR.add(pnlRegularDonation150EUR);
- pnlRegularDonation150EUR.setSize("75px", "28px");
-
- Anchor lnk3SingleEUR = new Anchor();
- lnk3SingleEUR.setStyleName("optionLeft");
- lnk3SingleEUR.setHTML("100 \u20AC");
- lnk3SingleEUR.setHref("https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name= Donate to comunes.org¤cy_code=EUR&amount=100&image_url=http://comunes.org/cm/images/logo-pp.png");
- pnlRegularDonation150EUR.add(lnk3SingleEUR);
- lnk3SingleEUR.setSize("45px", "28px");
-
- HTMLPanel pnlRegularDonation300EUR = new HTMLPanel("");
- pnlRegularDonation300EUR.setStyleName("option");
- divSingleDonationEUR.add(pnlRegularDonation300EUR);
- pnlRegularDonation300EUR.setSize("75px", "28px");
-
- Anchor lnk4SingleEUR = new Anchor();
- lnk4SingleEUR.setStyleName("optionLeft");
- lnk4SingleEUR.setHTML("300 \u20AC");
- lnk4SingleEUR.setHref("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");
- pnlRegularDonation300EUR.add(lnk4SingleEUR);
- lnk4SingleEUR.setSize("45px", "28px");
-
- HTMLPanel divSingleDonationDollar = new HTMLPanel("");
- divSingleDonationDollar.setStyleName("pnlOptions");
- divPost.add(divSingleDonationDollar);
- divSingleDonationDollar.setSize("340px", "28px");
-
- HTMLPanel pnlRegularDonation25Dollar = new HTMLPanel("");
- pnlRegularDonation25Dollar.setStyleName("option");
- divSingleDonationDollar.add(pnlRegularDonation25Dollar);
- pnlRegularDonation25Dollar.setSize("75px", "28px");
-
- Anchor lnk1SingleDollar = new Anchor();
- lnk1SingleDollar.setStyleName("optionLeft");
- lnk1SingleDollar.setHTML("25 $");
- lnk1SingleDollar.setHref("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");
- pnlRegularDonation25Dollar.add(lnk1SingleDollar);
- lnk1SingleDollar.setSize("45px", "28px");
-
- HTMLPanel pnlRegularDonation75Dollar = new HTMLPanel("");
- pnlRegularDonation75Dollar.setStyleName("option");
- divSingleDonationDollar.add(pnlRegularDonation75Dollar);
- pnlRegularDonation75Dollar.setSize("75px", "28px");
-
- Anchor lnk2SingleDollar = new Anchor();
- lnk2SingleDollar.setStyleName("optionLeft");
- lnk2SingleDollar.setHTML("75 $");
- lnk2SingleDollar.setHref("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");
- pnlRegularDonation75Dollar.add(lnk2SingleDollar);
- lnk2SingleDollar.setSize("45px", "28px");
-
- HTMLPanel pnlRegularDonation100Dollar = new HTMLPanel("");
- pnlRegularDonation100Dollar.setStyleName("option");
- divSingleDonationDollar.add(pnlRegularDonation100Dollar);
- pnlRegularDonation100Dollar.setSize("75px", "28px");
-
- Anchor lnk3SingleDollar = new Anchor();
- lnk3SingleDollar.setStyleName("optionLeft");
- lnk3SingleDollar.setHTML("100 $");
- lnk3SingleDollar.setHref("https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name= Donate to comunes.org¤cy_code=USD&amount=100&image_url=http://comunes.org/cm/images/logo-pp.png");
- pnlRegularDonation100Dollar.add(lnk3SingleDollar);
- lnk3SingleDollar.setSize("45px", "28px");
-
- HTMLPanel pnlRegularDonation300Dollar = new HTMLPanel("");
- pnlRegularDonation300Dollar.setStyleName("option");
- divSingleDonationDollar.add(pnlRegularDonation300Dollar);
- pnlRegularDonation300Dollar.setSize("75px", "28px");
-
- Anchor lnk4SingleDollar = new Anchor();
- lnk4SingleDollar.setStyleName("optionLeft");
- lnk4SingleDollar.setHTML("300 $");
- lnk4SingleDollar.setHref("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");
- pnlRegularDonation300Dollar.add(lnk4SingleDollar);
- lnk4SingleDollar.setSize("45px", "28px");
-
- HTMLPanel divTextOther = new HTMLPanel("");
- divTextOther.setStyleName("divTextDonate");
- divPost.add(divTextOther);
-
- HTML htmlOther = new HTML("For other amounts use", true);
- htmlOther.setStyleName("textDonate");
- divTextOther.add(htmlOther);
- htmlOther.setWidth("148px");
-
- Anchor lnkTextOtherEUR = new Anchor();
- lnkTextOtherEUR.setText("this link for Euros");
- lnkTextOtherEUR.setStyleName("textDonate");
- lnkTextOtherEUR.setHTML("this link for Euros");
- lnkTextOtherEUR.setHref("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");
- divTextOther.add(lnkTextOtherEUR);
- lnkTextOtherEUR.setSize("127px", "28px");
-
- HTML htmlOther2 = new HTML("or", true);
- htmlOther2.setStyleName("textDonate");
- divTextOther.add(htmlOther2);
- htmlOther2.setWidth("17px");
-
- Anchor lnkTextOtherDollar = new Anchor();
- lnkTextOtherDollar.setText("this link for USD.");
- lnkTextOtherDollar.setStyleName("textDonate");
- lnkTextOtherDollar.setHTML("this link for USD.");
- lnkTextOtherDollar.setHref("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");
- divTextOther.add(lnkTextOtherDollar);
- lnkTextOtherDollar.setSize("127px", "28px");
-
- HTML htmlOther3 = new HTML("Please consider donating more if you can afford it. ", true);
- htmlOther3.setStyleName("textDonateNewLine");
- divTextOther.add(htmlOther3);
- htmlOther3.setWidth("471px");
-
- HTML divTitleBank = new HTML("Give using your Bank", true);
- divTitleBank.setStyleName("titleRegular");
- divPost.add(divTitleBank);
-
- HTMLPanel divTextOtherBank = new HTMLPanel("");
- divTextOtherBank.setStyleName("divTextOtherBank");
- divPost.add(divTextOtherBank);
-
- Anchor lnkBank = new Anchor();
- lnkBank.setText("See our Bank account info page");
- lnkBank.setStyleName("textDonate");
- lnkBank.setHTML("See our Bank account info page");
- lnkBank.setHref("http://comunes.org/bank-info/");
- divTextOtherBank.add(lnkBank);
- lnkBank.setSize("471px", "28px");
-
- HTML htmlBank1 = new HTML("Unless you specify the contrary, we will add you to our donor list. ", true);
- htmlBank1.setStyleName("textDonateNewLine");
- divTextOtherBank.add(htmlBank1);
- htmlBank1.setWidth("471px");
-
- HTML htmlBank2 = new HTML("If you have doubts please contact us at donate at ourproject dot org. ", true);
- htmlBank2.setStyleName("textDonateNewLine");
- divTextOtherBank.add(htmlBank2);
- htmlBank2.setWidth("471px");
-
- HTML divTitleFinal = new HTML("Thanks indeed!", true);
- divTitleFinal.setStyleName("titleRegular");
- divPost.add(divTitleFinal);
- //End of Panel for Regular Donations in Dollars
+ final DonatePanel dPanel = new DonatePanel();
+ RootPanel.get().add(dPanel);
}
}
\ No newline at end of file
Added: donate/src/cc/kune/sandbox/donate/client/DonatePanel.java
===================================================================
--- donate/src/cc/kune/sandbox/donate/client/DonatePanel.java (rev 0)
+++ donate/src/cc/kune/sandbox/donate/client/DonatePanel.java 2011-06-26 10:45:35 UTC (rev 1420)
@@ -0,0 +1,335 @@
+package cc.kune.sandbox.donate.client;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.dom.client.BlurEvent;
+import com.google.gwt.event.dom.client.BlurHandler;
+import com.google.gwt.event.dom.client.FocusEvent;
+import com.google.gwt.event.dom.client.FocusHandler;
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.uibinder.client.UiBinder;
+import com.google.gwt.uibinder.client.UiField;
+import com.google.gwt.user.client.ui.Anchor;
+import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.FlowPanel;
+import com.google.gwt.user.client.ui.FormPanel;
+import com.google.gwt.user.client.ui.HTMLPanel;
+import com.google.gwt.user.client.ui.TextBox;
+import com.google.gwt.user.client.ui.Widget;
+
+public class DonatePanel extends Composite {
+ //Cons
+ private final String DEFAULT_VALUE = "other value";
+ private final String DEFAULT_TITLE = "Type other value and press Enter";
+ private final String NAME_TB = "a3";
+ private final int REGULAR_DONATION_EURO = 1;
+ private final int REGULAR_DONATION_DOLLAR = 2;
+ private final int SINGLE_DONATION_EURO = 3;
+ private final int SINGLE_DONATION_DOLLAR = 4;
+ private final String EURO_REGULAR_DONATION = " \u20AC/month";
+ private final String DOLLAR_REGULAR_DONATION = " $/month";
+ private final String EURO_DONATION = " \u20AC";
+ private final String DOLLAR_DONATION = " $";
+ private final String LNK_EURO_REGULAR_DONATION_1 = "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";
+ private final String LNK_EURO_REGULAR_DONATION_2 = "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";
+ private final String LNK_EURO_REGULAR_DONATION_3 = "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";
+ private final String LNK_EURO_SINGLE_DONATION_1 = "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";
+ private final String LNK_EURO_SINGLE_DONATION_2 = "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";
+ private final String LNK_EURO_SINGLE_DONATION_3 = "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";
+ private final String LNK_EURO_SINGLE_DONATION_4 = "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";
+ private final String LNK_DOLLAR_REGULAR_DONATION_1 = "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";
+ private final String LNK_DOLLAR_REGULAR_DONATION_2 = "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";
+ private final String LNK_DOLLAR_REGULAR_DONATION_3 = "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";
+ private final String LNK_DOLLAR_SINGLE_DONATION_1 = "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";
+ private final String LNK_DOLLAR_SINGLE_DONATION_2 = "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";
+ private final String LNK_DOLLAR_SINGLE_DONATION_3 = "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";
+ private final String LNK_DOLLAR_SINGLE_DONATION_4 = "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";
+ private final String LNK_REGULAR_OTHER_VALUE_EUROS = "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&lc=es&item_name= Donate to comunes.org&image_url=http://comunes.org/cm/images/logo-pp.png";
+ private final String LNK_REGULAR_OTHER_VALUE_DOLLAR = "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&lc=es&item_name= Donate to comunes.org&image_url=http://comunes.org/cm/images/logo-pp.png";
+ private final String LNK_SINGLE_OTHER_VALUE_EUROS = "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";
+ private final String LNK_SINGLE_OTHER_VALUE_DOLLAR = "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";
+ private final String LNK_BANK = "http://comunes.org/bank-info/";
+
+ @UiField
+ HTMLPanel divEntries;
+ @UiField
+ HTMLPanel divRightedit;
+ @UiField
+ HTMLPanel divPost;
+ @UiField
+ HTMLPanel divPostTitle;
+ @UiField
+ Label lblPostTitle;
+ @UiField
+ HTMLPanel divIntro;
+ @UiField
+ Label lblPostIntro;
+ @UiField
+ HTMLPanel divTitleRegular;
+ @UiField
+ Label lblRegularTitle;
+ @UiField
+ HTMLPanel divRegularDonationsEuros;
+ @UiField
+ HTMLPanel optRegularDonationEuros1;
+ @UiField
+ Anchor lnkEuros1;
+ @UiField
+ HTMLPanel optRegularDonationEuros2;
+ @UiField
+ Anchor lnkEuros2;
+ @UiField
+ HTMLPanel optRegularDonationEuros3;
+ @UiField
+ Anchor lnkEuros3;
+ @UiField
+ HTMLPanel optRegularDonationOtherEuros;
+ @UiField
+ FormPanel formPanelEuros;
+ @UiField
+ FlowPanel flowPanelEuros;
+ @UiField
+ TextBox txtbxOtherValueEuros;
+ @UiField
+ Label lblOtherValueEuros;
+ @UiField
+ HTMLPanel divRegularDonationsDollar;
+ @UiField
+ HTMLPanel optRegularDonationDollar1;
+ @UiField
+ Anchor lnkDollar1;
+ @UiField
+ HTMLPanel optRegularDonationDollar2;
+ @UiField
+ Anchor lnkDollar2;
+ @UiField
+ HTMLPanel optRegularDonationDollar3;
+ @UiField
+ Anchor lnkDollar3;
+ @UiField
+ HTMLPanel optRegularDonationOtherDollar;
+ @UiField
+ FormPanel formPanelDollar;
+ @UiField
+ FlowPanel flowPanelDollar;
+ @UiField
+ TextBox txtbxOtherValueDollar;
+ @UiField
+ Label lblOtherValueDollar;
+ @UiField
+ HTMLPanel divTitleSingle;
+ @UiField
+ Label lblSingleTitle;
+ @UiField
+ HTMLPanel divSingleDonationEuros;
+ @UiField
+ HTMLPanel optSingleDonationEuros1;
+ @UiField
+ Anchor lnkSingleEuros1;
+ @UiField
+ HTMLPanel optSingleDonationEuros2;
+ @UiField
+ Anchor lnkSingleEuros2;
+ @UiField
+ HTMLPanel optSingleDonationEuros3;
+ @UiField
+ Anchor lnkSingleEuros3;
+ @UiField
+ HTMLPanel optSingleDonationEuros4;
+ @UiField
+ Anchor lnkSingleEuros4;
+ @UiField
+ HTMLPanel divSingleDonationDollar;
+ @UiField
+ HTMLPanel optSingleDonationDollar1;
+ @UiField
+ Anchor lnkSingleDollar1;
+ @UiField
+ HTMLPanel optSingleDonationDollar2;
+ @UiField
+ Anchor lnkSingleDollar2;
+ @UiField
+ HTMLPanel optSingleDonationDollar3;
+ @UiField
+ Anchor lnkSingleDollar3;
+ @UiField
+ HTMLPanel optSingleDonationDollar4;
+ @UiField
+ Anchor lnkSingleDollar4;
+ @UiField
+ HTMLPanel divTextOther;
+ @UiField
+ Anchor lnkTextSingleOtherEuros;
+ @UiField
+ Anchor lnkTextSingleOtherDollar;
+ @UiField
+ HTMLPanel divTextOther2;
+ @UiField
+ HTMLPanel divTitleBank;
+ @UiField
+ Label lblTitleBank;
+ @UiField
+ HTMLPanel divTextOther3;
+ @UiField
+ Anchor lnkTextBank;
+ @UiField
+ HTMLPanel divTextOther4;
+ @UiField
+ HTMLPanel divTextOther5;
+ @UiField
+ HTMLPanel divTitleFinal;
+ @UiField
+ Label lblTitleFinal;
+
+ private static DonatePanelUiBinder uiBinder = GWT.create(DonatePanelUiBinder.class);
+
+ interface DonatePanelUiBinder extends UiBinder<Widget, DonatePanel> {
+ }
+
+ public DonatePanel() {
+ initWidget(uiBinder.createAndBindUi(this));
+ //Config of Dollar Regular Donations
+ lnkEuros1.setHTML(getTextDonation(REGULAR_DONATION_EURO, 10));
+ lnkEuros1.setHref(LNK_EURO_REGULAR_DONATION_1);
+
+ lnkEuros2.setHTML(getTextDonation(REGULAR_DONATION_EURO, 15));
+ lnkEuros2.setHref(LNK_EURO_REGULAR_DONATION_2);
+
+ lnkEuros3.setHTML(getTextDonation(REGULAR_DONATION_EURO, 20));
+ lnkEuros3.setHref(LNK_EURO_REGULAR_DONATION_3);
+
+ formPanelEuros.setMethod(FormPanel.METHOD_GET);
+ formPanelEuros.setAction(LNK_REGULAR_OTHER_VALUE_EUROS);
+
+ txtbxOtherValueEuros.setVisibleLength(10);
+ txtbxOtherValueEuros.setName(NAME_TB);
+ txtbxOtherValueEuros.setText(DEFAULT_VALUE);
+ txtbxOtherValueEuros.setTitle(DEFAULT_TITLE);
+
+ txtbxOtherValueEuros.addFocusHandler(new FocusHandler() {
+ public void onFocus(FocusEvent event) {
+ if(txtbxOtherValueEuros.getText().equals(DEFAULT_VALUE))
+ {
+ txtbxOtherValueEuros.setText("");
+ }
+ }
+ });
+
+ txtbxOtherValueEuros.addBlurHandler(new BlurHandler() {
+
+ @Override
+ public void onBlur(BlurEvent event) {
+ String sActualValue = txtbxOtherValueEuros.getText();
+ int iActualValue = 0;
+ if(!sActualValue.equals(""))
+ {
+ iActualValue = Integer.parseInt(sActualValue);
+ }
+
+ //validate
+ if(sActualValue == "" || iActualValue == 0)
+ {
+ txtbxOtherValueEuros.setText(DEFAULT_VALUE);
+ }
+ }
+ });
+
+ //Config of Dollar Regular Donations
+ lnkDollar1.setHTML(getTextDonation(REGULAR_DONATION_DOLLAR, 10));
+ lnkDollar1.setHref(LNK_DOLLAR_REGULAR_DONATION_1);
+
+ lnkDollar2.setHTML(getTextDonation(REGULAR_DONATION_DOLLAR, 15));
+ lnkDollar2.setHref(LNK_DOLLAR_REGULAR_DONATION_2);
+
+ lnkDollar3.setHTML(getTextDonation(REGULAR_DONATION_DOLLAR, 20));
+ lnkDollar3.setHref(LNK_DOLLAR_REGULAR_DONATION_3);
+
+ formPanelDollar.setAction(LNK_REGULAR_OTHER_VALUE_DOLLAR);
+ formPanelDollar.setMethod(FormPanel.METHOD_GET);
+
+ txtbxOtherValueDollar.setVisibleLength(10);
+ txtbxOtherValueDollar.setName(NAME_TB);
+ txtbxOtherValueDollar.setText(DEFAULT_VALUE);
+ txtbxOtherValueDollar.setTitle(DEFAULT_TITLE);
+
+ txtbxOtherValueDollar.addFocusHandler(new FocusHandler() {
+ public void onFocus(FocusEvent event) {
+ if(txtbxOtherValueDollar.getText().equals(DEFAULT_VALUE))
+ {
+ txtbxOtherValueDollar.setText("");
+ }
+ }
+ });
+
+ txtbxOtherValueDollar.addBlurHandler(new BlurHandler() {
+ public void onBlur(BlurEvent event) {
+ String sActualValue = txtbxOtherValueDollar.getText();
+ int iActualValue = 0;
+ if(!sActualValue.equals(""))
+ {
+ iActualValue = Integer.parseInt(sActualValue);
+ }
+ //validate
+ if(sActualValue == "" || iActualValue == 0)
+ {
+ txtbxOtherValueDollar.setText(DEFAULT_VALUE);
+ }
+ }
+ });
+
+ //Config of Euros Single Donations
+ lnkSingleEuros1.setHTML(getTextDonation(SINGLE_DONATION_EURO, 25));
+ lnkSingleEuros1.setHref(LNK_EURO_SINGLE_DONATION_1);
+
+ lnkSingleEuros2.setHTML(getTextDonation(SINGLE_DONATION_EURO, 75));
+ lnkSingleEuros2.setHref(LNK_EURO_SINGLE_DONATION_2);
+
+ lnkSingleEuros3.setHTML(getTextDonation(SINGLE_DONATION_EURO, 150));
+ lnkSingleEuros3.setHref(LNK_EURO_SINGLE_DONATION_3);
+
+ lnkSingleEuros4.setHTML(getTextDonation(SINGLE_DONATION_EURO, 300));
+ lnkSingleEuros4.setHref(LNK_EURO_SINGLE_DONATION_4);
+
+ //Config of Dollar Single Donations
+ lnkSingleDollar1.setHTML(getTextDonation(SINGLE_DONATION_DOLLAR, 25));
+ lnkSingleDollar1.setHref(LNK_DOLLAR_SINGLE_DONATION_1);
+
+ lnkSingleDollar2.setHTML(getTextDonation(SINGLE_DONATION_DOLLAR, 75));
+ lnkSingleDollar2.setHref(LNK_DOLLAR_SINGLE_DONATION_2);
+
+ lnkSingleDollar3.setHTML(getTextDonation(SINGLE_DONATION_DOLLAR, 150));
+ lnkSingleDollar3.setHref(LNK_DOLLAR_SINGLE_DONATION_3);
+
+ lnkSingleDollar4.setHTML(getTextDonation(SINGLE_DONATION_DOLLAR, 300));
+ lnkSingleDollar4.setHref(LNK_DOLLAR_SINGLE_DONATION_4);
+
+ //other text
+ lnkTextSingleOtherEuros.setHref(LNK_SINGLE_OTHER_VALUE_EUROS);
+ lnkTextSingleOtherDollar.setHref(LNK_SINGLE_OTHER_VALUE_DOLLAR);
+
+ lnkTextBank.setHref(LNK_BANK);
+ }
+
+ /*
+ * Function to get the text of link for donations by type
+ */
+ private String getTextDonation (int iTypeDonation, int iValueDonation)
+ {
+ String sText = "" + iValueDonation;
+ switch (iTypeDonation)
+ {
+ case REGULAR_DONATION_EURO:
+ sText += EURO_REGULAR_DONATION;
+ break;
+ case SINGLE_DONATION_EURO:
+ sText += EURO_DONATION;
+ break;
+ case REGULAR_DONATION_DOLLAR:
+ sText += DOLLAR_REGULAR_DONATION;
+ break;
+ case SINGLE_DONATION_DOLLAR:
+ sText += DOLLAR_DONATION;
+ break;
+ }
+ return sText;
+ }
+}
Property changes on: donate/src/cc/kune/sandbox/donate/client/DonatePanel.java
___________________________________________________________________
Name: svn:executable
+ *
Added: donate/src/cc/kune/sandbox/donate/client/DonatePanel.ui.xml
===================================================================
--- donate/src/cc/kune/sandbox/donate/client/DonatePanel.ui.xml (rev 0)
+++ donate/src/cc/kune/sandbox/donate/client/DonatePanel.ui.xml 2011-06-26 10:45:35 UTC (rev 1420)
@@ -0,0 +1,330 @@
+<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
+<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
+ xmlns:g="urn:import:com.google.gwt.user.client.ui">
+ <ui:style>
+ a {
+ color: #FE7047;
+ font-weight: bold;
+ outline: medium none;
+ text-decoration: none;
+ }
+
+ a:hover {
+ background: inherit;
+ color: #029A00;
+ outline: 0 none;
+ text-decoration: none;
+ }
+
+ a:visited {
+ outline: 0 none;
+ text-decoration: none;
+ }
+
+ .entries {
+ float: left;
+ line-height: 1.7em;
+ padding: 0 0 15px;
+ width: 590px;
+ }
+
+ div#entries {
+ border-right: 0 solid #F2F2F2;
+ padding-right: 15px;
+ }
+
+ .rightedit{
+ }
+
+ .post {
+ margin-bottom: 2em;
+ text-align: justify;
+ }
+
+ .titlePost {
+ display: inline;
+ font-size: 2em;
+ line-height: 1em;
+ margin-bottom: 0.2em;
+ margin-top: 2.5em;
+ font-weight: bold;
+ }
+
+ .introPost {
+ padding-bottom: 5px;
+ padding-top: 5px;
+ }
+
+ .titleRegular {
+ clear: both;
+ padding-top: 1em;
+ border-bottom: medium none;
+ letter-spacing: normal;
+ margin-bottom: -0.5em;
+ color: #555555;
+ font-size: 17px;
+ font-weight: bold;
+ text-transform: none
+ }
+
+ .pnlOptions {
+ border-bottom: 1px solid #E7E7E7;
+ background-color: #FFFFFF;
+ clear: left;
+ float: left;
+ list-style: none outside none;
+ margin: 10px 10px;
+ margin-top: 15px;
+ padding: 5px;
+ display: inline;
+ with: 550px;
+ height: 28px;
+ }
+
+ .option {
+ background: url("btn-blue.png") no-repeat scroll right top transparent;
+ float: left;
+ margin-right: 10px;
+ width: 115px;
+ height: 28px;
+ }
+
+ .optionSingle {
+ background: url("btn-blue.png") no-repeat scroll right top transparent;
+ float: left;
+ margin-right: 10px;
+ width: 75px;
+ height: 28px;
+ }
+
+ .option a {
+ background: url("btn-blue.png") no-repeat scroll left top transparent;
+ color: #13335B;
+ cursor: pointer;
+ float: left;
+ font: 900 14px/22px "Arial",Helvetica,sans-serif;
+ text-decoration: none;
+ padding: 1px 8px 5px 18px;
+ }
+
+ .option a:hover {
+ color: #951400;
+ }
+
+ .option a:active {
+ color: #029A00;
+ }
+
+ .optionSingle a {
+ background: url("btn-blue.png") no-repeat scroll left top transparent;
+ color: #13335B;
+ cursor: pointer;
+ float: left;
+ font: 900 14px/22px "Arial",Helvetica,sans-serif;
+ text-decoration: none;
+ padding: 1px 8px 5px 18px;
+ }
+
+ .optionSingle a:hover {
+ color: #951400;
+ }
+
+ .optionSingle a:active {
+ color: #029A00;
+ }
+
+ .lnkBotonBlue {
+ width: 85px;
+ height: 28px;
+ }
+
+ .lnkBotonBlueSingle {
+ width: 45px;
+ height: 28px;
+ }
+
+ .optionOther {
+ float: left;
+ width: 174px;
+ height: 28px;
+ }
+
+ .otherValue {
+ width: 83px;
+ height: 16px;
+ text-align: center;
+ margin: 5px 10px;
+ float: left;
+ }
+
+ .labelOther {
+ float: left;
+ }
+
+ .divTextDonate {
+ clear: both;
+ float: none;
+ }
+
+ .textDonateNewLine {
+ clear: both;
+ float: none;
+ margin-top: 10px;
+ margin-bottom: 10px;
+ }
+
+ </ui:style>
+
+ <g:HTMLPanel addStyleNames="{style.entries}" ui:field="divEntries">
+ <g:HTMLPanel addStyleNames="{style.rightedit}" ui:field="divRightedit">
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.post}" ui:field="divPost">
+ <g:HTMLPanel ui:field="divPostTitle">
+ <g:Label addStyleNames="{style.titlePost}" ui:field="lblPostTitle">
+ Donate to comunes
+ </g:Label>
+ </g:HTMLPanel>
+ <g:HTMLPanel ui:field="divIntro">
+ <g:Label addStyleNames="{style.introPost}" ui:field="lblPostIntro">
+ 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.
+ </g:Label>
+ </g:HTMLPanel>
+ <g:HTMLPanel ui:field="divTitleRegular">
+ <g:Label addStyleNames="{style.titleRegular}" ui:field="lblRegularTitle">
+ Regular donation per month (the most necessary for us)
+ </g:Label>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.pnlOptions}" ui:field="divRegularDonationsEuros">
+ <g:HTMLPanel addStyleNames="{style.option}" ui:field="optRegularDonationEuros1">
+ <g:Anchor addStyleNames="{style.lnkBotonBlue}" ui:field="lnkEuros1"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.option}" ui:field="optRegularDonationEuros2">
+ <g:Anchor addStyleNames="{style.lnkBotonBlue}" ui:field="lnkEuros2"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.option}" ui:field="optRegularDonationEuros3">
+ <g:Anchor addStyleNames="{style.lnkBotonBlue}" ui:field="lnkEuros3"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.optionOther}" ui:field="optRegularDonationOtherEuros">
+ <g:FormPanel ui:field="formPanelEuros">
+ <g:FlowPanel ui:field="flowPanelEuros">
+ <g:TextBox addStyleNames="{style.otherValue}" ui:field="txtbxOtherValueEuros">
+ </g:TextBox>
+ <g:Hidden name="business" value="donate at ourproject.org"></g:Hidden>
+ <g:Hidden name="cmd" value="_xclick-subscriptions"></g:Hidden>
+ <g:Hidden name="item_name" value=" Donate to comunes.org"></g:Hidden>
+ <g:Hidden name="currency_code" value="EUR"></g:Hidden>
+ <g:Hidden name="no_shipping" value="1"></g:Hidden>
+ <g:Hidden name="t3" value="M"></g:Hidden>
+ <g:Hidden name="p3" value="1"></g:Hidden>
+ <g:Hidden name="src" value="1"></g:Hidden>
+ <g:Hidden name="image_url" value="http://comunes.org/cm/images/logo-pp.png"></g:Hidden>
+ <g:Hidden name="sra" value="1"></g:Hidden>
+ <g:Hidden name="lc" value="us"></g:Hidden>
+ <g:Label addStyleNames="{style.labelOther}" ui:field="lblOtherValueEuros">
+ €/month
+ </g:Label>
+ </g:FlowPanel>
+
+ </g:FormPanel>
+ </g:HTMLPanel>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.pnlOptions}" ui:field="divRegularDonationsDollar">
+ <g:HTMLPanel addStyleNames="{style.option}" ui:field="optRegularDonationDollar1">
+ <g:Anchor addStyleNames="{style.lnkBotonBlue}" ui:field="lnkDollar1"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.option}" ui:field="optRegularDonationDollar2">
+ <g:Anchor addStyleNames="{style.lnkBotonBlue}" ui:field="lnkDollar2"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.option}" ui:field="optRegularDonationDollar3">
+ <g:Anchor addStyleNames="{style.lnkBotonBlue}" ui:field="lnkDollar3"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.optionOther}" ui:field="optRegularDonationOtherDollar">
+ <g:FormPanel ui:field="formPanelDollar">
+ <g:FlowPanel ui:field="flowPanelDollar">
+ <g:TextBox addStyleNames="{style.otherValue}" ui:field="txtbxOtherValueDollar">
+ </g:TextBox>
+ <g:Hidden name="business" value="donate at ourproject.org"></g:Hidden>
+ <g:Hidden name="cmd" value="_xclick-subscriptions"></g:Hidden>
+ <g:Hidden name="item_name" value=" Donate to comunes.org"></g:Hidden>
+ <g:Hidden name="currency_code" value="USD"></g:Hidden>
+ <g:Hidden name="no_shipping" value="1"></g:Hidden>
+ <g:Hidden name="t3" value="M"></g:Hidden>
+ <g:Hidden name="p3" value="1"></g:Hidden>
+ <g:Hidden name="src" value="1"></g:Hidden>
+ <g:Hidden name="image_url" value="http://comunes.org/cm/images/logo-pp.png"></g:Hidden>
+ <g:Hidden name="sra" value="1"></g:Hidden>
+ <g:Hidden name="lc" value="us"></g:Hidden>
+ <g:Label addStyleNames="{style.labelOther}" ui:field="lblOtherValueDollar">
+ €/month
+ </g:Label>
+ </g:FlowPanel>
+ </g:FormPanel>
+ </g:HTMLPanel>
+ </g:HTMLPanel>
+ <g:HTMLPanel ui:field="divTitleSingle">
+ <g:Label addStyleNames="{style.titleRegular}" ui:field="lblSingleTitle">
+ Single donation
+ </g:Label>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.pnlOptions}" ui:field="divSingleDonationEuros">
+ <g:HTMLPanel addStyleNames="{style.optionSingle}" ui:field="optSingleDonationEuros1">
+ <g:Anchor addStyleNames="{style.lnkBotonBlueSingle}" ui:field="lnkSingleEuros1"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.optionSingle}" ui:field="optSingleDonationEuros2">
+ <g:Anchor addStyleNames="{style.lnkBotonBlueSingle}" ui:field="lnkSingleEuros2"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.optionSingle}" ui:field="optSingleDonationEuros3">
+ <g:Anchor addStyleNames="{style.lnkBotonBlueSingle}" ui:field="lnkSingleEuros3"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.optionSingle}" ui:field="optSingleDonationEuros4">
+ <g:Anchor addStyleNames="{style.lnkBotonBlueSingle}" ui:field="lnkSingleEuros4"></g:Anchor>
+ </g:HTMLPanel>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.pnlOptions}" ui:field="divSingleDonationDollar">
+ <g:HTMLPanel addStyleNames="{style.optionSingle}" ui:field="optSingleDonationDollar1">
+ <g:Anchor addStyleNames="{style.lnkBotonBlueSingle}" ui:field="lnkSingleDollar1"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.optionSingle}" ui:field="optSingleDonationDollar2">
+ <g:Anchor addStyleNames="{style.lnkBotonBlueSingle}" ui:field="lnkSingleDollar2"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.optionSingle}" ui:field="optSingleDonationDollar3">
+ <g:Anchor addStyleNames="{style.lnkBotonBlueSingle}" ui:field="lnkSingleDollar3"></g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.optionSingle}" ui:field="optSingleDonationDollar4">
+ <g:Anchor addStyleNames="{style.lnkBotonBlueSingle}" ui:field="lnkSingleDollar4"></g:Anchor>
+ </g:HTMLPanel>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.divTextDonate}" ui:field="divTextOther">
+ For other amounts use
+ <g:Anchor ui:field="lnkTextSingleOtherEuros">this link for Euros</g:Anchor>
+ or
+ <g:Anchor ui:field="lnkTextSingleOtherDollar">this one for USD.</g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.textDonateNewLine}" ui:field="divTextOther2">
+ Please consider donating more if you can afford it.
+ </g:HTMLPanel>
+ <g:HTMLPanel ui:field="divTitleBank">
+ <g:Label addStyleNames="{style.titleRegular}" ui:field="lblTitleBank">
+ Give using your Bank
+ </g:Label>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.textDonateNewLine}" ui:field="divTextOther3">
+ <g:Anchor ui:field="lnkTextBank">See our Bank account info page</g:Anchor>
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.textDonateNewLine}" ui:field="divTextOther4">
+ Unless you specify the contrary, we will add you to our donor list.
+ </g:HTMLPanel>
+ <g:HTMLPanel addStyleNames="{style.textDonateNewLine}" ui:field="divTextOther5">
+ If you have doubts please contact us at donate at ourproject dot org.
+ </g:HTMLPanel>
+ <g:HTMLPanel ui:field="divTitleFinal">
+ <g:Label addStyleNames="{style.titleRegular}" ui:field="lblTitleFinal">
+ Thanks indeed!
+ </g:Label>
+ </g:HTMLPanel>
+ </g:HTMLPanel>
+ </g:HTMLPanel>
+</ui:UiBinder>
\ No newline at end of file
Property changes on: donate/src/cc/kune/sandbox/donate/client/DonatePanel.ui.xml
___________________________________________________________________
Name: svn:executable
+ *
More information about the kune-commits
mailing list