org.paneris.jammyjoes.shopping
Class JammyJoesShoppingTrolleyItem
java.lang.Object
org.paneris.jammyjoes.shopping.ShoppingTrolleyItem
org.paneris.jammyjoes.shopping.JammyJoesShoppingTrolleyItem
public class JammyJoesShoppingTrolleyItem
- extends ShoppingTrolleyItem
Methods inherited from class org.paneris.jammyjoes.shopping.ShoppingTrolleyItem |
displayCurrency, 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 |
JammyJoesShoppingTrolleyItem
public JammyJoesShoppingTrolleyItem()
initialise
public void initialise(ShoppingTrolley trolley,
org.melati.Melati melati,
java.lang.Integer id,
java.lang.String description,
java.lang.Double price)
- Description copied from class:
ShoppingTrolleyItem
- public Constructor to build a trolley item from some id
- Overrides:
initialise
in class ShoppingTrolleyItem
load
protected void load(java.lang.Integer id)
- Specified by:
load
in class ShoppingTrolleyItem
save
protected void save(JammyjoesDatabase db,
ShopOrder order)
getDeliveryValue
public double getDeliveryValue()
- Specified by:
getDeliveryValue
in class ShoppingTrolleyItem
getWeightDisplay
public java.lang.String getWeightDisplay()
getWeight
public double getWeight()
getMass
public double getMass()
getProduct
public Product getProduct()
getStocklevel
public java.lang.Integer getStocklevel()
enoughStock
public boolean enoughStock()
Copyright © 2001-2008 PanEris. All Rights Reserved.