KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > javabean > SimpleI18NBean


1 package test.javabean;
2
3 /**
4  * Example of a JavaBean with tags to generate the associated BeanInfo class.
5  *
6  * @javabean.class
7  * displayName="Simple Bean"
8  * name="SimpleI18NBean"
9  * shortDescription="Simple example of JavaBean BeanInfo generation"
10  *
11  * @javabean.icons
12  * color16="/toolbarButtonGraphics/general/Stop16.gif"
13  *
14  * @javabean.attribute
15  * name="literal"
16  * value="A sample attribute"
17  *
18  * @javabean.attribute
19  * 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 method
32      *
33      * @javabean.method
34      * 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 method
43      *
44      * @param param1 Description of the Parameter 1
45      * @param param2 Description of the Parameter 2
46      *
47      * @javabean.method
48      * displayName="My Second Method"
49      * name="mySecondMethod"
50      * shortDescription="Example of method with parameters"
51      *
52      * @javabean.param
53      * class="java.lang.String"
54      * displayName="Parameter 1"
55      * name="param1"
56      *
57      * @javabean.param
58      * class="boolean"
59      * displayName="Parameter 2"
60      * name="param2"
61      */

62     public void mySecondMethod(String JavaDoc param1, boolean param2) {
63     }
64 }
Popular Tags