KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > examples > inputhtmlexample > EditorFace


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.inputhtmlexample;
17
18 /**
19  * @author Sylvain Vieujot (latest modification by $Author: svieujot $)
20  * @version $Revision: 1.1 $ $Date: 2005/03/26 20:31:37 $
21  */

22 public class EditorFace {
23     
24     private String JavaDoc text = "Defaut unformated text.";
25     
26     // Options
27
private boolean allowEditSource = true;
28     private boolean showPropertiesToolBox = false;
29     private boolean showLinksToolBox = false;
30     private boolean showImagesToolBox = false;
31     private boolean showTablesToolBox = false;
32     private boolean showCleanupExpressionsToolBox = false;
33     private boolean showDebugToolBox = false;
34
35     public String JavaDoc getText() {
36         return text;
37     }
38     public void setText(String JavaDoc text) {
39         this.text = text;
40     }
41     
42     public boolean isAllowEditSource() {
43         return allowEditSource;
44     }
45     public void setAllowEditSource(boolean allowEditSource) {
46         this.allowEditSource = allowEditSource;
47     }
48     public boolean isShowImagesToolBox() {
49         return showImagesToolBox;
50     }
51     public void setShowImagesToolBox(boolean showImagesToolBox) {
52         this.showImagesToolBox = showImagesToolBox;
53     }
54     public boolean isShowLinksToolBox() {
55         return showLinksToolBox;
56     }
57     public void setShowLinksToolBox(boolean showLinksToolBox) {
58         this.showLinksToolBox = showLinksToolBox;
59     }
60     public boolean isShowPropertiesToolBox() {
61         return showPropertiesToolBox;
62     }
63     public void setShowPropertiesToolBox(boolean showPropertiesToolBox) {
64         this.showPropertiesToolBox = showPropertiesToolBox;
65     }
66     public boolean isShowTablesToolBox(){
67         return showTablesToolBox;
68     }
69     public void setShowTablesToolBox(boolean showTablesToolBox){
70         this.showTablesToolBox = showTablesToolBox;
71     }
72     public boolean isShowCleanupExpressionsToolBox() {
73         return showCleanupExpressionsToolBox;
74     }
75     public void setShowCleanupExpressionsToolBox(boolean showCleanupExpressionsToolBox) {
76         this.showCleanupExpressionsToolBox = showCleanupExpressionsToolBox;
77     }
78     public boolean isShowDebugToolBox(){
79         return showDebugToolBox;
80     }
81     public void setShowDebugToolBox(boolean showDebugToolBox){
82         this.showDebugToolBox = showDebugToolBox;
83     }
84 }
85
Popular Tags