1 32 package net.sf.retrotranslator.tests; 33 34 37 public class TestBean { 38 39 private boolean visible; 40 private char sign; 41 private byte code; 42 private short width; 43 private int height; 44 private float opacity; 45 private long area; 46 private double weight; 47 private String name; 48 private String direction; 49 private String state; 50 51 public TestBean( 52 boolean visible, char sign, byte code, short width, 53 int height, float opacity, long area, double weight, String name) { 54 this.direction = "right"; 55 this.visible = visible; 56 this.sign = sign; 57 this.code = code; 58 this.width = width; 59 this.height = height; 60 this.opacity = opacity; 61 this.area = area; 62 this.weight = weight; 63 this.name = name; 64 } 65 66 public TestBean( 67 String name, double weight, long area, float opacity, 68 int height, short width, byte code, char sign, boolean visible) { 69 this.direction = "reverse"; 70 this.name = name; 71 this.weight = weight; 72 this.area = area; 73 this.opacity = opacity; 74 this.height = height; 75 this.width = width; 76 this.code = code; 77 this.sign = sign; 78 this.visible = visible; 79 } 80 81 public TestBean(String state) { 82 this.direction = "A"; 83 this.state = state; 84 } 85 86 public TestBean() { 87 this.direction = "B"; 88 } 89 90 public boolean isVisible() { 91 return visible; 92 } 93 94 public char getSign() { 95 return sign; 96 } 97 98 public byte getCode() { 99 return code; 100 } 101 102 public short getWidth() { 103 return width; 104 } 105 106 public int getHeight() { 107 return height; 108 } 109 110 public float getOpacity() { 111 return opacity; 112 } 113 114 public long getArea() { 115 return area; 116 } 117 118 public double getWeight() { 119 return weight; 120 } 121 122 public String getName() { 123 return name; 124 } 125 126 public String getDirection() { 127 return direction; 128 } 129 130 public String getState() { 131 return state; 132 } 133 134 public void setState(String state) { 135 this.state = state; 136 } 137 } 138 | Popular Tags |