KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > code_folds > JavaFoldsTest > testJavaFolds


1 /*
2  * Initial Comment Fold
3  * Created on 15 September 2004, 10:48
4  */

5
6 package code_folds.JavaFoldsTest;
7
8 // import section fold
9
import javax.swing.JApplet JavaDoc;
10 import javax.swing.JButton JavaDoc;
11
12
13 /**
14  * Outer Class Javadoc Fold
15  * Demonstration of Code Folding functionality file.
16  * @author Martin Roskanin
17  */

18 public class testJavaFolds {
19     
20     /** One Line Field Javadoc Fold*/
21     JButton JavaDoc button;
22     
23     /**
24      * Multi-line Field Favadoc Fold
25      */

26     JApplet JavaDoc applet;
27     
28     /** One-line Constructor Javadoc Fold */
29     public testJavaFolds() {} //One-line Constructor Fold
30

31     /**
32      * Multi-line Constructor Javadoc Fold
33      */

34     public testJavaFolds(String JavaDoc s) { //Multi-line Constructor Fold
35
button = new JButton JavaDoc();
36         applet = new JApplet JavaDoc();
37     }
38     
39     
40     /** One-line Method Javadoc Fold */
41     public void methodOne(){} // One-line Method Fold
42

43     /**
44      * Multi-line Method Javadoc Fold
45      */

46     public void methodTwo(){ // Multi-line Method Fold
47
System.out.println(""); //NOI18N
48
}
49  
50     public void firstMethod(){} public void secondMethod(){} public void thirdMethod(){}
51     
52     /** One-line InnerClass Javadoc Fold */
53     public static class InnerClassOne{}
54     
55     /**
56      * Multi-line InnerClass Javadoc Fold
57      */

58     public static class InnerClassTwo{ //Multi-line InnerClass Fold
59
}
60     
61     public static class InnerClassThree{
62         /** One Line InnerClass Field Javadoc Fold*/
63         JButton JavaDoc button;
64
65         /**
66          * Multi-line InnerClass Field Favadoc Fold
67          */

68         JApplet JavaDoc applet;
69
70         /** One-line InnerClass Constructor Javadoc Fold */
71         public InnerClassThree() {} //One-line InnerClass Constructor Fold
72

73         /**
74          * Multi-line InnerClass Constructor Javadoc Fold
75          */

76         public InnerClassThree(String JavaDoc s) { //Multi-line InnerClass Constructor Fold
77
button = new JButton JavaDoc();
78             applet = new JApplet JavaDoc();
79         }
80
81
82         /** One-line InnerClass Method Javadoc Fold */
83         public void methodOne(){} // One-line InnerClass Method Fold
84

85         /**
86          * Multi-line InnerClass Method Javadoc Fold
87          */

88         public void methodTwo(){ // Multi-line InnerClass Method Fold
89
System.out.println(""); //NOI18N
90
}
91         
92         public void firstMethod(){} public void secondMethod(){} public void thirdMethod(){}
93     }
94
95     public static class InnerClassFour{
96         public InnerClassFour(){
97         }
98         
99         /** One-line InnerClassInInnerClass Javadoc Fold */
100         public static class InnerClassInInnerClassOne{} //One-line InnerClassInInnerClass Fold
101

102         /**
103          * Multi-line InnerClassInInnerClass Javadoc Fold
104          *
105          */

106         public static class InnerClassInInnerClassTwo{ //Multi-line InnerClassInInnerClass Fold
107
/** One Line InnerClassInInnerClass Field Javadoc Fold*/
108             JButton JavaDoc button;
109
110             /**
111              * Multi-line InnerClassInInnerClass Field Favadoc Fold
112              */

113             JApplet JavaDoc applet;
114             
115             /** One-line InnerClassInInnerClass Constructor Javadoc Fold */
116             public InnerClassInInnerClassTwo() {} //One-line InnerClassInInnerClassTwo Constructor Fold
117

118             /**
119              * Multi-line InnerClassInInnerClassTwo Constructor Javadoc Fold
120              */

121             public InnerClassInInnerClassTwo(String JavaDoc s) { //Multi-line InnerClassInInnerClass Constructor Fold
122
button = new JButton JavaDoc();
123                 applet = new JApplet JavaDoc();
124             }
125             
126             /** One-line InnerClassInInnerClass Method Javadoc Fold */
127             public void methodOne(){} // One-line InnerClassInInnerClass Method Fold
128

129             /**
130              * Multi-line InnerClassInInnerClass Method Javadoc Fold
131              */

132             public void methodTwo(){ // Multi-line InnerClassInInnerClass Method Fold
133
System.out.println(""); //NOI18N
134
}
135             
136             public void firstMethod(){} public void secondMethod(){} public void thirdMethod(){}
137             
138         }
139        
140     }
141     
142 }
143
Popular Tags