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 implementz = "javax.faces.component.behavior.ClientBehaviorHolder", 36 defaultEventName = "valueChange" 37 ) 38 abstract class _HtmlInputSecret extends UIInput implements _AccesskeyProperty, 39 _AltProperty, _UniversalProperties, _FocusBlurProperties, _EventProperties, 40 _StyleProperties, _TabindexProperty, _ChangeSelectProperties, 41 _DisabledReadonlyProperties, _LabelProperty, _RoleProperty 42 { 43 44 static public final String COMPONENT_FAMILY = 45 "javax.faces.Input"; 46 static public final String COMPONENT_TYPE = 47 "javax.faces.HtmlInputSecret"; 48 49 /** 50 * HTML: The maximum number of characters allowed to be entered. 51 * 52 * @JSFProperty 53 * defaultValue = "Integer.MIN_VALUE" 54 */ 55 public abstract int getMaxlength(); 56 57 /** 58 * If true, the value will be re-sent (in plaintext) when the form 59 * is rerendered (see JSF.7.4.4). Default is false. 60 * 61 * @JSFProperty 62 * defaultValue = "false" 63 */ 64 public abstract boolean isRedisplay(); 65 66 /** 67 * HTML: The initial width of this control, in characters. 68 * 69 * @JSFProperty 70 * defaultValue = "Integer.MIN_VALUE" 71 */ 72 public abstract int getSize(); 73 74 /** 75 * If the value of this attribute is "off", render "off" as the value of the attribute. 76 * This indicates that the browser should disable its autocomplete feature for this component. 77 * This is useful for components that perform autocompletion and do not want the browser interfering. 78 * If this attribute is not set or the value is "on", render nothing. 79 * 80 * @return the new autocomplete value 81 * @since 1.2 82 */ 83 @JSFProperty 84 public abstract String getAutocomplete(); 85 86 }