1 package test.javabean;2 3 /**4 * Example of a JavaBean with tags to generate the associated BeanInfo class.5 *6 * @javabean.class7 * displayName="Simple Bean"8 * name="SimpleI18NBean"9 * shortDescription="Simple example of JavaBean BeanInfo generation"10 *11 * @javabean.icons12 * color16="/toolbarButtonGraphics/general/Stop16.gif"13 *14 * @javabean.attribute15 * name="literal"16 * value="A sample attribute"17 *18 * @javabean.attribute19 * name="expression"20 * value="new StringBuffer()"21 * rtexpr="true"22 *23 */24 public class SimpleI18NBean extends SimpleBean {25 26 /** Constructs a new SimpleI18NBean. */27 public SimpleI18NBean() {28 }29 30 /**31 * The first method32 *33 * @javabean.method34 * displayName="My First Method"35 * name="myFirstMethod"36 * shortDescription="Example of method without parameters"37 */38 public void myFirstMethod() {39 }40 41 /**42 * The second method43 *44 * @param param1 Description of the Parameter 145 * @param param2 Description of the Parameter 246 *47 * @javabean.method48 * displayName="My Second Method"49 * name="mySecondMethod"50 * shortDescription="Example of method with parameters"51 *52 * @javabean.param53 * class="java.lang.String"54 * displayName="Parameter 1"55 * name="param1"56 *57 * @javabean.param58 * class="boolean"59 * displayName="Parameter 2"60 * name="param2"61 */62 public void mySecondMethod(String param1, boolean param2) {63 }64 }