org.paneris.bibliomania.shopping
Class BibliomaniaShoppingTrolleyItem

java.lang.Object
  extended by org.paneris.melati.shopping.ShoppingTrolleyItem
      extended by org.paneris.bibliomania.shopping.BibliomaniaShoppingTrolleyItem

public class BibliomaniaShoppingTrolleyItem
extends org.paneris.melati.shopping.ShoppingTrolleyItem


Field Summary
 
Fields inherited from class org.paneris.melati.shopping.ShoppingTrolleyItem
description, id, locale, melati, price, quantity, trolley
 
Constructor Summary
BibliomaniaShoppingTrolleyItem()
           
 
Method Summary
 java.lang.String displayCurrency(double value)
           
 Book getBook()
           
 DeliveryCharge getDeliveryCharge()
          Work out the cost of delivery.
 double getDeliveryValue()
          Work out the cost of delivery.
 Product getProduct()
           
 void initialise(org.paneris.melati.shopping.ShoppingTrolley trolleyP, org.melati.Melati melatiP, java.lang.Integer idP, java.lang.String descriptionP, java.lang.Double priceP)
           
protected  void load(java.lang.Integer idP)
          Load in information about this product given an id.
protected  void save(BibliomaniaDatabase db, ShopOrder order)
           
 void setGotCharge(boolean c)
           
 
Methods inherited from class org.paneris.melati.shopping.ShoppingTrolleyItem
getDeliveryDisplay, getDescription, getId, getPrice, getPriceDisplay, getQuantity, getQuantityDisplay, getTotalValue, getTotalValueDisplay, getValue, getValueDisplay, newTrolleyItem, setPrice, setQuantity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BibliomaniaShoppingTrolleyItem

public BibliomaniaShoppingTrolleyItem()
Method Detail

initialise

public void initialise(org.paneris.melati.shopping.ShoppingTrolley trolleyP,
                       org.melati.Melati melatiP,
                       java.lang.Integer idP,
                       java.lang.String descriptionP,
                       java.lang.Double priceP)
Overrides:
initialise in class org.paneris.melati.shopping.ShoppingTrolleyItem

load

protected void load(java.lang.Integer idP)
Load in information about this product given an id. Perhaps this id represents a poem troid?

Specified by:
load in class org.paneris.melati.shopping.ShoppingTrolleyItem

save

protected void save(BibliomaniaDatabase db,
                    ShopOrder order)

getDeliveryValue

public double getDeliveryValue()
Work out the cost of delivery. Returns null if a charge cannot be calculated - an error should be displayed.

Specified by:
getDeliveryValue in class org.paneris.melati.shopping.ShoppingTrolleyItem

getDeliveryCharge

public DeliveryCharge getDeliveryCharge()
Work out the cost of delivery. Returns null if a charge cannot be calculated - an error should be displayed.


setGotCharge

public void setGotCharge(boolean c)

getBook

public Book getBook()

getProduct

public Product getProduct()

displayCurrency

public java.lang.String displayCurrency(double value)
Overrides:
displayCurrency in class org.paneris.melati.shopping.ShoppingTrolleyItem


Copyright © 2000-2009 PanEris. All Rights Reserved.