PayPalViewShoppingCartHyperlink Class Reference

Inherits er::wopaypal::PayPalSingleItemHyperlink.

Collaboration diagram for PayPalViewShoppingCartHyperlink:

Collaboration graph
[legend]

List of all members.

Public Member Functions

String onClickString ()
 PayPalViewShoppingCartHyperlink (WOContext context)
String viewShoppingCartHref ()

Static Protected Attributes

static String PAYPAL_CGI_COMMAND = "?cmd=_cart&display=1"


Detailed Description

PayPalViewShoppingCartHyperlink is a WOComponent that allows you to embed text, an image, etc. inside the hyperlink, or assign the string through through its bindings.

It returns the appropriate url to view the user's PayPal shopping cart in a new window.


Constructor & Destructor Documentation

PayPalViewShoppingCartHyperlink ( WOContext  context  ) 

Constructor

Parameters:
context WOContext


Member Function Documentation

String onClickString (  ) 

onClickString basically takes the viewShoppingCartHref and embeds it in a JavaScript window.open() method, as per PayPal's instructions. The JavaScript called tells the browser to open a new window that loads the viewShoppingCartHref url and has the characteristics given...

Returns:
String that contains the JavaScript code for the viewShoppingCart link

String viewShoppingCartHref (  ) 

viewShoppingCartHref assembles the URL for the item, based on the values of the bindings it reads from the WOComponent. It gets the values, and most of it's code from the superclass.

Returns:
String containing the url to view the user's PayPal shopping cart.


Member Data Documentation

String PAYPAL_CGI_COMMAND = "?cmd=_cart&display=1" [static, protected]

The cgi command we're calling on PayPal's server.

Reimplemented from PayPalSingleItemHyperlink.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:37 2012 for Project Wonder by  doxygen 1.5.8