/* Item.java Purpose: Description: History: 2011/10/25 Created by Dennis Chen Copyright (C) 2011 Potix Corporation. All Rights Reserved. */ package org.zkoss.zats.example.search; /** * @author dennis * */ public class Item { String name; String description; double price; int quantity; public Item(String name, String description, double price, int quantity) { super(); this.name = name; this.description = description; this.price = price; this.quantity = quantity; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public double getPrice() { return price; } public void setPrice(double price) { this.price = price; } public int getQuantity() { return quantity; } public void setQuantity(int quantity) { this.quantity = quantity; } public double getTotalPrice(){ return price*quantity; } }