1 package org.rcfaces.core.component;
2
3 import org.rcfaces.core.internal.component.Properties;
4 import org.rcfaces.core.component.TextComponent;
5 import org.apache.commons.logging.Log;
6 import java.util.HashSet;
7 import org.apache.commons.logging.LogFactory;
8 import java.util.Arrays;
9 import java.util.Set;
10
11 /**
12 * <p>The styledText Component is a placeholder for displaying "enhanced" text. It accepts any HTML tags. it's a <A href="/comps/textComponent.html">text Component</A></p>
13 * <p>The styledText Component has the following capabilities :
14 * <ul>
15 * <li>Position & Size</li>
16 * <li>Foreground & Background Color</li>
17 * <li>Text, font & justification</li>
18 * <li>Margin</li>
19 * <li>Help</li>
20 * <li>Visibility</li>
21 * <li>Events Handling</li>
22 * <li>Association with another component</li>
23 * </ul>
24 * </p>
25 *
26 * <p>The default <a href="/apidocs/index.html?org/rcfaces/core/component/StyledTextComponent.html">styledText</a> renderer is linked to the <a href="/jsdocs/index.html?f_styledText.html" target="_blank">f_styledText</a> javascript class. f_lineBreak extends f_text</p>
27 */
28 public class StyledTextComponent extends TextComponent {
29
30 private static final Log LOG = LogFactory.getLog(StyledTextComponent.class);
31
32 public static final String COMPONENT_TYPE="org.rcfaces.core.styledText";
33
34
35 public StyledTextComponent() {
36 setRendererType(COMPONENT_TYPE);
37 }
38
39 public StyledTextComponent(String componentId) {
40 this();
41 setId(componentId);
42 }
43
44 protected Set getCameliaFields() {
45 return CAMELIA_ATTRIBUTES;
46 }
47 }