1 4 package com.nightlabs.ipanema.store.test; 5 6 import com.nightlabs.ipanema.store.Product; 7 8 15 public class Container extends Product 16 { 17 private int height; 18 private int width; 19 private String color; 20 21 public Container() { } 22 23 29 public Container(String organisationID, String productID, Product extendedProduct, 30 String nature) 31 { 32 super(organisationID, productID, extendedProduct, nature, null, false); 33 } 34 35 38 public String getColor() 39 { 40 return color; 41 } 42 45 public void setColor(String color) 46 { 47 this.color = color; 48 getFieldMetaData("color").setValueInherited(false); 49 } 50 53 public int getHeight() 54 { 55 return height; 56 } 57 60 public void setHeight(int height) 61 { 62 this.height = height; 63 getFieldMetaData("height").setValueInherited(false); 64 } 65 68 public int getWidth() 69 { 70 return width; 71 } 72 75 public void setWidth(int width) 76 { 77 this.width = width; 78 getFieldMetaData("width").setValueInherited(false); 79 } 80 } 81 | Popular Tags |