1 package org.fckfaces.taglib.html;
2
3 import javax.faces.component.UIComponent;
4
5 import org.apache.myfaces.taglib.html.HtmlInputTextareaTag;
6 import org.fckfaces.util.Tags;
7
8
9
10
11
12
13 public class FCKFaceEditorTag extends HtmlInputTextareaTag {
14 public static final String COMPONENT_TYPE = "org.fckfaces.Editor";
15 public static final String RENDERER_TYPE = "org.fckfaces.EditorRenderer";
16
17 private String toolbarSet;
18 private String height;
19 private String width;
20
21
22
23
24 public String getComponentType() {
25 return COMPONENT_TYPE;
26 }
27
28
29
30
31 public String getRendererType() {
32 return RENDERER_TYPE;
33 }
34
35
36
37
38 protected void setProperties(UIComponent component) {
39 super.setProperties(component);
40
41 Tags.setString(component, "toolbarSet", toolbarSet);
42
43 }
44
45
46
47
48 public void release() {
49 super.release();
50 toolbarSet = null;
51 }
52
53 public String getToolbarSet() {
54 return toolbarSet;
55 }
56
57 public void setToolbarSet(String toolbarSet) {
58 this.toolbarSet = toolbarSet;
59 }
60
61 public String getHeight() {
62 return height;
63 }
64
65 public void setHeight(String height) {
66 this.height = height;
67 }
68
69 public String getWidth() {
70 return width;
71 }
72
73 public void setWidth(String width) {
74 this.width = width;
75 }
76 }