1 27 package olstore.client; 28 29 import java.awt.image.BufferedImage; 30 31 34 public class Item { 35 36 37 private String title; 38 39 40 private String description; 41 42 43 private String price; 44 45 46 private String category; 47 48 49 private String id; 50 51 52 private BufferedImage image; 53 54 63 public Item(String title, String description, String price, 64 String category, String id, BufferedImage image) { 65 66 this.title = title; 67 this.description = description; 68 this.price = price; 69 this.category = category; 70 this.id = id; 71 this.image = image; 72 } 73 74 78 public String getCategory() { 79 return category; 80 } 81 82 86 public void setCategory(String category) { 87 this.category = category; 88 } 89 90 94 public String getDescription() { 95 return description; 96 } 97 98 103 public void setDescription(String description) { 104 this.description = description; 105 } 106 107 111 public BufferedImage getImage() { 112 return image; 113 } 114 115 119 public void setImage(BufferedImage image) { 120 this.image = image; 121 } 122 123 127 public String getPrice() { 128 return price; 129 } 130 131 135 public void setPrice(String price) { 136 this.price = price; 137 } 138 139 143 public String getTitle() { 144 return title; 145 } 146 147 151 public void setTitle(String title) { 152 this.title = title; 153 } 154 155 159 public String getId() { 160 return id; 161 } 162 } 163 | Popular Tags |