package lectures.state_properties;
import util.annotations.WebDocuments;
import util.annotations.EditablePropertyNames;
import util.annotations.PropertyNames;
import util.annotations.StructurePattern;
import util.annotations.StructurePatternNames;
import bus.uigen.ObjectEditor;
@StructurePattern(StructurePatternNames.BEAN_PATTERN)
@PropertyNames({ "Height"})
@EditablePropertyNames({"Height"})
@WebDocuments({"Lectures/StateProperties.pptx", "Lectures/StateProperties.pdf", "Videos/StateProperties.avi"})
public class ABMISpreadsheetNotFollowingBeanConventions {
double height ;
double weight;
public double getWeight() {
return weight;
}
public void set(double newWeight, double newHeight) {
weight = newWeight;
height = newHeight;
}
public double getHeight() {
return height;
}
public void setHeight(int newHeight) {
height = newHeight;
}
public double BMI() {
return weight/(height*height);
}
public static void main (String[] args) {
ObjectEditor.edit(new ABMISpreadsheetNotFollowingBeanConventions() );
}
}