1 33 34 package com.icesoft.icefaces.samples.showcase.components.expandableTable; 35 36 import java.util.GregorianCalendar ; 37 38 46 public class SalesRecord { 47 48 protected String description = ""; 50 protected GregorianCalendar date; 51 protected int quantity; 52 protected double price; 53 54 59 public String getDescription() { 60 return description; 61 } 62 63 68 public void setDescription(String description) { 69 this.description = description; 70 } 71 72 77 public GregorianCalendar getDate() { 78 return date; 79 } 80 81 86 public String getDateString() { 87 return date.get(GregorianCalendar.DAY_OF_MONTH) + "/" + 88 date.get(GregorianCalendar.MONTH) + "/" + 89 date.get(GregorianCalendar.YEAR); 90 } 91 92 97 public void setDate(GregorianCalendar date) { 98 this.date = date; 99 } 100 101 106 public int getQuantity() { 107 return quantity; 108 } 109 110 115 public void setQuantity(int quantity) { 116 this.quantity = quantity; 117 } 118 119 124 public double getPrice() { 125 return price; 126 } 127 128 133 public void setPrice(double price) { 134 this.price = price; 135 } 136 137 142 public double getTotal() { 143 return price * quantity; 144 } 145 } | Popular Tags |