org.apache.tapestry.contrib.form
Class MaskEdit

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.apache.tapestry.AbstractComponent
          extended byorg.apache.tapestry.BaseComponent
              extended byorg.apache.tapestry.contrib.form.MaskEdit
All Implemented Interfaces:
org.apache.tapestry.IComponent, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder

public abstract class MaskEdit
extends org.apache.tapestry.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
Author:
Malcolm Edgar

Constructor Summary
MaskEdit()
           
 
Method Summary
abstract  java.lang.String getMask()
           
abstract  java.lang.String getValue()
           
abstract  boolean isDisabled()
           
abstract  void setDisabled(boolean disabled)
           
abstract  void setMask(java.lang.String mask)
           
abstract  void setValue(java.lang.String value)
           
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
 
Methods inherited from class org.apache.hivemind.impl.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.IComponent
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

MaskEdit

public MaskEdit()
Method Detail

getMask

public abstract java.lang.String getMask()

setMask

public abstract void setMask(java.lang.String mask)

getValue

public abstract java.lang.String getValue()

setValue

public abstract void setValue(java.lang.String value)

isDisabled

public abstract boolean isDisabled()

setDisabled

public abstract void setDisabled(boolean disabled)