View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package javax.faces.component.html;
20  
21  import javax.faces.component.UIInput;
22  
23  import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
24  import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
25  
26  /**
27   * Renders as an HTML input tag with its type set to "password".
28   *
29   */
30  @JSFComponent
31  (name = "h:inputSecret",
32  clazz = "javax.faces.component.html.HtmlInputSecret",template=true,
33  tagClass = "org.apache.myfaces.taglib.html.HtmlInputSecretTag",
34  defaultRendererType = "javax.faces.Secret"
35  )
36  abstract class _HtmlInputSecret extends UIInput implements _AccesskeyProperty,
37      _AltProperty, _UniversalProperties, _FocusBlurProperties, _EventProperties,
38      _StyleProperties, _TabindexProperty, _ChangeSelectProperties, 
39      _DisabledReadonlyProperties, _LabelProperty
40  {
41  
42    static public final String COMPONENT_FAMILY =
43      "javax.faces.Input";
44    static public final String COMPONENT_TYPE =
45      "javax.faces.HtmlInputSecret";
46  
47    /**
48     * HTML: The maximum number of characters allowed to be entered.
49     * 
50     * @JSFProperty
51     *   defaultValue = "Integer.MIN_VALUE"
52     */
53    public abstract int getMaxlength();
54    
55    /**
56     * If true, the value will be re-sent (in plaintext) when the form
57     * is rerendered (see JSF.7.4.4). Default is false.
58     * 
59     * @JSFProperty
60     *   defaultValue = "false"
61     */
62    public abstract boolean isRedisplay();
63    
64    /**
65     * HTML: The initial width of this control, in characters.
66     * 
67     * @JSFProperty
68     *   defaultValue = "Integer.MIN_VALUE"
69     */
70    public abstract int getSize();
71  
72    /**
73     * If the value of this attribute is "off", render "off" as the value of the attribute.
74     * This indicates that the browser should disable its autocomplete feature for this component.
75     * This is useful for components that perform autocompletion and do not want the browser interfering.
76     * If this attribute is not set or the value is "on", render nothing.
77     *
78     * @return  the new autocomplete value
79     * @since 1.2
80     */
81    @JSFProperty
82    public abstract String getAutocomplete();
83    
84  }