org.apache.myfaces.html5.component.input
Class HtmlInputText

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIInput
                  extended by javax.faces.component.html.HtmlInputText
                      extended by org.apache.myfaces.html5.component.input.AbstractHtml5BaseInputText
                          extended by org.apache.myfaces.html5.component.input.Html5BaseInputText
                              extended by org.apache.myfaces.html5.component.input.AbstractHtmlInputText
                                  extended by org.apache.myfaces.html5.component.input.HtmlInputText
All Implemented Interfaces:
EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.EditableValueHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, Draggable, Html5GlobalProperties, Html5InputProperties, PlaceHolderProperty

public class HtmlInputText
extends AbstractHtmlInputText
implements javax.faces.component.behavior.ClientBehaviorHolder


Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
 
Fields inherited from class org.apache.myfaces.html5.component.input.AbstractHtmlInputText
ROWS_DEFAULT_VALUE
 
Fields inherited from class javax.faces.component.UIInput
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
 
Fields inherited from class javax.faces.component.UIComponent
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY
 
Constructor Summary
HtmlInputText()
           
 
Method Summary
 int getCols()
          Column count to set size, defaults to 10.
 String getDefaultEventName()
           
 Collection<String> getEventNames()
           
 String getFamily()
           
 String getPlaceholder()
          Hint to show on the input, when nothing is typed.
 int getRows()
          Number of rows to display, defaults to 1.
 String getType()
          HTML type of the input.
 void setCols(int cols)
           
 void setPlaceholder(String placeholder)
           
 void setRows(int rows)
           
 void setType(String type)
           
 
Methods inherited from class org.apache.myfaces.html5.component.input.Html5BaseInputText
getAnimationEnd, getDataList, getDir, getLang, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOnformchange, getOnforminput, getOninput, getOninvalid, getOnmousewheel, getStyle, getStyleClass, getSuggestions, getTitle, isAutoFocus, isDraggable, isHidden, setAnimationEnd, setAutoFocus, setDataList, setDir, setDraggable, setHidden, setLang, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnformchange, setOnforminput, setOninput, setOninvalid, setOnmousewheel, setStyle, setStyleClass, setSuggestions, setTitle
 
Methods inherited from class javax.faces.component.html.HtmlInputText
getAccesskey, getAlt, getAutocomplete, getLabel, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getSize, getTabindex, isDisabled, isReadonly, setAccesskey, setAlt, setAutocomplete, setDisabled, setLabel, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setSize, setTabindex
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, broadcast, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValue
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTree
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, setConverter
 

Field Detail

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values
Constructor Detail

HtmlInputText

public HtmlInputText()
Method Detail

getFamily

public String getFamily()
Overrides:
getFamily in class Html5BaseInputText

getEventNames

public Collection<String> getEventNames()
Specified by:
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
getEventNames in class Html5BaseInputText

getDefaultEventName

public String getDefaultEventName()
Specified by:
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
getDefaultEventName in class Html5BaseInputText

getType

public String getType()
Description copied from class: AbstractHtmlInputText
HTML type of the input.
Possible values are "text"(default), "search", "url", "tel" and "textarea". If this is set to "textarea", pattern is ignored.

Specified by:
getType in class AbstractHtmlInputText
Returns:
See Also:
Html5BaseInputText.getSuggestions(), AbstractHtmlInputText#getList(), AbstractHtmlInputText.getCols(), AbstractHtmlInputText.getRows()

setType

public void setType(String type)

getCols

public int getCols()
Description copied from class: AbstractHtmlInputText
Column count to set size, defaults to 10. Value of this property is used as size in "text", "search", "tel", "url" and "password" types. It is also used as cols in "textarea" type.

Specified by:
getCols in class AbstractHtmlInputText

setCols

public void setCols(int cols)

getRows

public int getRows()
Description copied from class: AbstractHtmlInputText
Number of rows to display, defaults to 1. Value of this property is used as rows in "textarea" type. It is ignored if the type is one of "text", "search", "tel", "url" and "password". If type is not set, and this property is set to a number larger than 1, type will be automatically set to "textarea".

Specified by:
getRows in class AbstractHtmlInputText

setRows

public void setRows(int rows)

getPlaceholder

public String getPlaceholder()
Description copied from interface: PlaceHolderProperty
Hint to show on the input, when nothing is typed.

Specified by:
getPlaceholder in interface PlaceHolderProperty

setPlaceholder

public void setPlaceholder(String placeholder)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.