Class InputMaskRenderer
- java.lang.Object
-
- javax.faces.render.Renderer
-
- org.primefaces.renderkit.CoreRenderer
-
- org.primefaces.renderkit.InputRenderer
-
- org.primefaces.component.inputmask.InputMaskRenderer
-
public class InputMaskRenderer extends InputRenderer
-
-
Field Summary
-
Fields inherited from class org.primefaces.renderkit.InputRenderer
ARIA_FILTER
-
-
Constructor Summary
Constructors Constructor Description InputMaskRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
void
encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void
encodeMarkup(javax.faces.context.FacesContext context, InputMask inputMask)
protected void
encodeScript(javax.faces.context.FacesContext context, InputMask inputMask)
protected String
translateMaskCharIntoRegex(char c, boolean optional)
protected Pattern
translateMaskIntoRegex(StringBuilder regex, String mask)
protected Pattern
translateMaskIntoRegex(javax.faces.context.FacesContext context, String mask)
Translates the client side mask to to aPattern
base on: https://github.com/digitalBush/jquery.maskedinput a - Represents an alpha character (A-Z,a-z) 9 - Represents a numeric character (0-9) * - Represents an alphanumeric character (A-Z,a-z,0-9) ? - Makes the following input optional-
Methods inherited from class org.primefaces.renderkit.InputRenderer
createStyleClass, createStyleClass, getConvertedValue, isDisabled, isReadOnly, renderAccessibilityAttributes, renderAccessibilityAttributes, renderARIACombobox, renderARIAInvalid, renderARIARequired, renderRTLDirection, shouldDecode
-
Methods inherited from class org.primefaces.renderkit.CoreRenderer
buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteId
-
-
-
-
Method Detail
-
decode
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
- Overrides:
decode
in classjavax.faces.render.Renderer
-
translateMaskIntoRegex
protected Pattern translateMaskIntoRegex(javax.faces.context.FacesContext context, String mask)
Translates the client side mask to to aPattern
base on: https://github.com/digitalBush/jquery.maskedinput a - Represents an alpha character (A-Z,a-z) 9 - Represents a numeric character (0-9) * - Represents an alphanumeric character (A-Z,a-z,0-9) ? - Makes the following input optional- Parameters:
context
- TheFacesContext
mask
- The mask value of component- Returns:
- The generated
Pattern
-
translateMaskIntoRegex
protected Pattern translateMaskIntoRegex(StringBuilder regex, String mask)
-
translateMaskCharIntoRegex
protected String translateMaskCharIntoRegex(char c, boolean optional)
-
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
- Overrides:
encodeEnd
in classjavax.faces.render.Renderer
- Throws:
IOException
-
encodeScript
protected void encodeScript(javax.faces.context.FacesContext context, InputMask inputMask) throws IOException
- Throws:
IOException
-
encodeMarkup
protected void encodeMarkup(javax.faces.context.FacesContext context, InputMask inputMask) throws IOException
- Throws:
IOException
-
-