org.apache.tapestry.contrib.form
Class MaskEdit

java.lang.Object
  extended by org.apache.tapestry.spec.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by 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 characterMeaning 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

Constructor Summary
MaskEdit()
           
 
Method Summary
 String getMask()
           
 String getValue()
           
 IBinding getValueBinding()
           
 boolean isDisabled()
           
 void setDisabled(boolean disabled)
           
 void setMask(String mask)
           
 void setValue(String value)
           
 void setValueBinding(IBinding valueBinding)
           
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, renderComponent
 
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
 
Methods inherited from class org.apache.tapestry.spec.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Constructor Detail

MaskEdit

public MaskEdit()
Method Detail

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)