1 package org.rcfaces.core.component;
2
3 import org.rcfaces.core.component.TextEntryComponent;
4 import org.rcfaces.core.internal.component.Properties;
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 passwordEntry Component is based on the standard HTML tag <INPUT TYPE="password"> and is a <a href="/comps/textEntryComponent.html">textEntry Component</a>.</p>
13 * <p>The passwordEntry Component has the following capabilities :
14 * <ul>
15 * <li>Position & Size</li>
16 * <li>Foreground & Background Color</li>
17 * <li>Text & font</li>
18 * <li>Help</li>
19 * <li>Visibility, Read-Only, Disabled</li>
20 * <li>Events Handling</li>
21 * </ul>
22 * </p>
23 *
24 * <p>The default <a href="/apidocs/index.html?org/rcfaces/core/component/PasswordEntrykComponent.html">passwordEntry</a> renderer is linked to the <a href="/jsdocs/index.html?f_passwordEntry.html" target="_blank">f_passwordEntry</a> javascript class. f_passwordEntry extends f_textEntry</p>
25 *
26 * <p> Table of component style classes: </p>
27 * <table border="1" cellpadding="3" cellspacing="0" width="100%">
28 * <tbody>
29 *
30 * <tr style="text-align:left">
31 * <th width="33%">Style Name</th>
32 * <th width="50%">Description</th>
33 * </tr>
34 *
35 * <tr style="text-align:left">
36 * <td width="33%">f_passwordEntry</td>
37 * <td width="50%">Defines styles for the INPUT element</td>
38 * </tr>
39 *
40 * </tbody>
41 * </table>
42 */
43 public class PasswordEntryComponent extends TextEntryComponent {
44
45 private static final Log LOG = LogFactory.getLog(PasswordEntryComponent.class);
46
47 public static final String COMPONENT_TYPE="org.rcfaces.core.passwordEntry";
48
49
50 public PasswordEntryComponent() {
51 setRendererType(COMPONENT_TYPE);
52 }
53
54 public PasswordEntryComponent(String componentId) {
55 this();
56 setId(componentId);
57 }
58
59 protected Set getCameliaFields() {
60 return CAMELIA_ATTRIBUTES;
61 }
62 }