KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > examples > example1 > UCaseForm


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.examples.example1;
17
18 import java.io.Serializable JavaDoc;
19
20 /**
21  * DOCUMENT ME!
22  * @author Manfred Geiler
23  * @version $Revision: 1.1 $ $Date: 2005/03/24 16:47:10 $
24  */

25 public class UCaseForm
26         implements Serializable JavaDoc
27 {
28     private String JavaDoc text = "";
29
30     public void uppercase()
31     {
32         text = text.toUpperCase();
33     }
34
35     public void lowercase()
36     {
37         text = text.toLowerCase();
38     }
39
40     public String JavaDoc getText()
41     {
42         return text;
43     }
44
45     public void setText(String JavaDoc text)
46     {
47         this.text = text;
48     }
49
50     /**
51      * Test method for method binding.
52      */

53     public String JavaDoc jumpHome()
54     {
55         System.out.println("JumpHome Action was called.");
56         return "jump_home";
57     }
58
59 }
60
Popular Tags