java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
javax.faces.component.html.HtmlInputText
org.primefaces.component.api.AbstractPrimeHtmlInputText
org.primefaces.extensions.component.inputphone.InputPhone
All Implemented Interfaces:
EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.EditableValueHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.component.ValueHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, org.primefaces.component.api.InputHolder, org.primefaces.component.api.MixedClientBehaviorHolder, org.primefaces.component.api.RTLAware, org.primefaces.component.api.Widget

public class InputPhone extends org.primefaces.component.api.AbstractPrimeHtmlInputText implements org.primefaces.component.api.Widget, org.primefaces.component.api.InputHolder, org.primefaces.component.api.MixedClientBehaviorHolder, org.primefaces.component.api.RTLAware
InputPhone component.
Since:
7.0
Author:
Jasper de Vries <jepsar@gmail.com>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    static enum 
     
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class javax.faces.component.UIInput

    ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE, CONVERSION_MESSAGE_ID, EMPTY_STRING_AS_NULL_PARAM_NAME, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME

    Fields inherited from class javax.faces.component.UIComponent

    ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY

    Fields inherited from interface org.primefaces.component.api.Widget

    ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    protected static Country
    getCountry(String clientId, Map<String,String> params)
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    void
    queueEvent(javax.faces.event.FacesEvent event)
     
    void
    setAllowDropdown(boolean allowDropdown)
     
    void
    setAutoHideDialCode(boolean autoHideDialCode)
     
    void
    setAutoPlaceholder(String autoPlaceholder)
     
    void
    setExcludeCountries(Object excludeCountries)
     
    void
    setFixDropdownWidth(boolean fixDropdownWidth)
     
    void
    setFormatAsYouType(boolean formatAsYouType)
     
    void
    setFormatOnDisplay(boolean formatOnDisplay)
     
    void
    setGeoIpLookup(String geoIpLookup)
     
    void
    setInitialCountry(String initialCountry)
     
    void
    setInputStyle(String inputStyle)
     
    void
    setInputStyleClass(String inputStyleClass)
     
    void
    setLabelledBy(String labelledBy)
     
    void
    setLocalizedCountries(Object localizedCountries)
     
    void
    setNationalMode(boolean nationalMode)
     
    void
    setOnlyCountries(Object onlyCountries)
     
    void
    setPlaceholder(String placeholder)
     
    void
    setPlaceholderNumberType(String placeholderNumberType)
     
    void
    setPreferredCountries(Object preferredCountries)
     
    void
    setSeparateDialCode(boolean separateDialCode)
     
    void
     
    void
    setWidgetVar(String widgetVar)
     

    Methods inherited from class org.primefaces.component.api.AbstractPrimeHtmlInputText

    getInputmode, getOncontextmenu, getOncopy, getOncut, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOninput, getOninvalid, getOnpaste, getOnreset, getOnscroll, getOnsearch, getOnwheel, setInputmode, setOncontextmenu, setOncopy, setOncut, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOninput, setOninvalid, setOnpaste, setOnreset, setOnscroll, setOnsearch, setOnwheel

    Methods inherited from class javax.faces.component.html.HtmlInputText

    getAccesskey, getAlt, getAutocomplete, getDir, getLabel, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRole, getSize, getStyle, getStyleClass, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setAlt, setAutocomplete, setDir, setDisabled, setLabel, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setRole, setSize, setStyle, setStyleClass, setTabindex, setTitle

    Methods inherited from class javax.faces.component.UIInput

    addValidator, addValueChangeListener, 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, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent

    Methods inherited from class javax.faces.component.UIComponent

    encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree

    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 org.primefaces.component.api.RTLAware

    getDir, isRTL

    Methods inherited from interface javax.faces.component.ValueHolder

    getConverter, getLocalValue, setConverter

    Methods inherited from interface org.primefaces.component.api.Widget

    resolveWidgetVar, resolveWidgetVar
  • Field Details

  • Constructor Details

    • InputPhone

      public InputPhone()
  • Method Details

    • getFamily

      public String getFamily()
      Overrides:
      getFamily in class javax.faces.component.UIInput
    • getDefaultEventName

      public String getDefaultEventName()
      Specified by:
      getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHolder
      Overrides:
      getDefaultEventName in class javax.faces.component.html.HtmlInputText
    • getInputClientId

      public String getInputClientId()
      Specified by:
      getInputClientId in interface org.primefaces.component.api.InputHolder
    • getValidatableInputClientId

      public String getValidatableInputClientId()
      Specified by:
      getValidatableInputClientId in interface org.primefaces.component.api.InputHolder
    • getLabelledBy

      public String getLabelledBy()
      Specified by:
      getLabelledBy in interface org.primefaces.component.api.InputHolder
    • setLabelledBy

      public void setLabelledBy(String labelledBy)
      Specified by:
      setLabelledBy in interface org.primefaces.component.api.InputHolder
    • getPlaceholder

      public String getPlaceholder()
    • setPlaceholder

      public void setPlaceholder(String placeholder)
    • getWidgetVar

      public String getWidgetVar()
    • setWidgetVar

      public void setWidgetVar(String widgetVar)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • isAllowDropdown

      public boolean isAllowDropdown()
    • setAllowDropdown

      public void setAllowDropdown(boolean allowDropdown)
    • isAutoHideDialCode

      public boolean isAutoHideDialCode()
    • setAutoHideDialCode

      public void setAutoHideDialCode(boolean autoHideDialCode)
    • getAutoPlaceholder

      public String getAutoPlaceholder()
    • getAutoPlaceholderEnum

      public InputPhone.AutoPlaceholder getAutoPlaceholderEnum()
    • setAutoPlaceholder

      public void setAutoPlaceholder(String autoPlaceholder)
    • getExcludeCountries

      public Object getExcludeCountries()
    • setExcludeCountries

      public void setExcludeCountries(Object excludeCountries)
    • isFixDropdownWidth

      public boolean isFixDropdownWidth()
    • setFixDropdownWidth

      public void setFixDropdownWidth(boolean fixDropdownWidth)
    • isFormatOnDisplay

      public boolean isFormatOnDisplay()
    • setFormatOnDisplay

      public void setFormatOnDisplay(boolean formatOnDisplay)
    • isFormatAsYouType

      public boolean isFormatAsYouType()
    • setFormatAsYouType

      public void setFormatAsYouType(boolean formatAsYouType)
    • getInitialCountry

      public String getInitialCountry()
    • setInitialCountry

      public void setInitialCountry(String initialCountry)
    • isNationalMode

      public boolean isNationalMode()
    • setNationalMode

      public void setNationalMode(boolean nationalMode)
    • getOnlyCountries

      public Object getOnlyCountries()
    • setOnlyCountries

      public void setOnlyCountries(Object onlyCountries)
    • getPlaceholderNumberType

      public String getPlaceholderNumberType()
    • getPlaceholderNumberTypeEnum

      public InputPhone.PlaceholderNumberType getPlaceholderNumberTypeEnum()
    • setPlaceholderNumberType

      public void setPlaceholderNumberType(String placeholderNumberType)
    • getPreferredCountries

      public Object getPreferredCountries()
    • setPreferredCountries

      public void setPreferredCountries(Object preferredCountries)
    • isSeparateDialCode

      public boolean isSeparateDialCode()
    • setSeparateDialCode

      public void setSeparateDialCode(boolean separateDialCode)
    • getInputStyle

      public String getInputStyle()
    • setInputStyle

      public void setInputStyle(String inputStyle)
    • getInputStyleClass

      public String getInputStyleClass()
    • setInputStyleClass

      public void setInputStyleClass(String inputStyleClass)
    • getGeoIpLookup

      public String getGeoIpLookup()
    • setGeoIpLookup

      public void setGeoIpLookup(String geoIpLookup)
    • getLocalizedCountries

      public Object getLocalizedCountries()
    • setLocalizedCountries

      public void setLocalizedCountries(Object localizedCountries)
    • getEventNames

      public Collection<String> getEventNames()
      Specified by:
      getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder
      Overrides:
      getEventNames in class org.primefaces.component.api.AbstractPrimeHtmlInputText
    • getUnobstrusiveEventNames

      public Collection<String> getUnobstrusiveEventNames()
      Specified by:
      getUnobstrusiveEventNames in interface org.primefaces.component.api.MixedClientBehaviorHolder
    • queueEvent

      public void queueEvent(javax.faces.event.FacesEvent event)
      Overrides:
      queueEvent in class javax.faces.component.UIComponentBase
    • getCountry

      protected static Country getCountry(String clientId, Map<String,String> params)