org.apache.tapestry.contrib.form
Class MaskEdit
java.lang.Object
org.apache.tapestry.spec.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.apache.tapestry.contrib.form.MaskEdit
- All Implemented Interfaces:
- IComponent, ILocatable, ILocationHolder, IRender
public class MaskEdit
- extends BaseComponent
Provides a mask edit HTML <input type="text"> form element.
Mask edit field validates the text the user enters against a
mask that encodes the valid forms the text can take. The mask can
also format text that is displayed to the user.
Mask character | Meaning in mask |
l | Mixed case letter character [a..z, A..Z] |
L | Upper case letter character [A..Z] |
a | Mixed case alpha numeric character [a..z, A..Z, 0..1] |
A | Upper case alpha numeric character [A..Z, 0..9] |
# | Numeric character [0..9] |
_ | Reserved character for display, do not use. |
others | Non editable character for display. |
This component requires JavaScript to be enabled in the client browser.
[Component Reference]
- Since:
- 2.3
- Version:
- $Id: MaskEdit.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- Malcolm Edgar
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, cleanupAfterRender, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString |
MaskEdit
public MaskEdit()
getMask
public String getMask()
setMask
public void setMask(String mask)
getValue
public String getValue()
setValue
public void setValue(String value)
getValueBinding
public IBinding getValueBinding()
setValueBinding
public void setValueBinding(IBinding valueBinding)
isDisabled
public boolean isDisabled()
setDisabled
public void setDisabled(boolean disabled)