1 package org.rcfaces.core.component;
2
3 import org.rcfaces.core.internal.component.Properties;
4 import org.rcfaces.core.component.ButtonComponent;
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 submitButton Component is based on the standard HTML tag <INPUT TYPE="submit">. It is a <a href="/comps/buttonComponent.html">button Component</a>.</p>
13 * <p>The submitButton 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/SubmitButtonComponent.html">submitButton</a> renderer is linked to the <a href="/jsdocs/index.html?f_submitButton.html" target="_blank">f_submitButton</a> javascript class. f_submitButton extends f_button</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_imageSubmitButton</td>
37 * <td width="50%">Defines styles for the wrapper A element</td>
38 * </tr>
39 *
40 * </tbody>
41 * </table>
42 */
43 public class SubmitButtonComponent extends ButtonComponent {
44
45 private static final Log LOG = LogFactory.getLog(SubmitButtonComponent.class);
46
47 public static final String COMPONENT_TYPE="org.rcfaces.core.submitButton";
48
49
50 public SubmitButtonComponent() {
51 setRendererType(COMPONENT_TYPE);
52 }
53
54 public SubmitButtonComponent(String componentId) {
55 this();
56 setId(componentId);
57 }
58
59 protected Set getCameliaFields() {
60 return CAMELIA_ATTRIBUTES;
61 }
62 }