org.paneris.bibliomania.shopping
Class BibliomaniaShoppingTrolleyItem
java.lang.Object
org.paneris.melati.shopping.ShoppingTrolleyItem
org.paneris.bibliomania.shopping.BibliomaniaShoppingTrolleyItem
public class BibliomaniaShoppingTrolleyItem
- extends org.paneris.melati.shopping.ShoppingTrolleyItem
Fields inherited from class org.paneris.melati.shopping.ShoppingTrolleyItem |
description, id, locale, melati, price, quantity, trolley |
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 |
BibliomaniaShoppingTrolleyItem
public BibliomaniaShoppingTrolleyItem()
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.