org.apache.tapestry.contrib.form
Class MaskEdit

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

public abstract 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
Author:
Malcolm Edgar

Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
MaskEdit()
           
 
Method Summary
abstract  String getMask()
           
abstract  String getValue()
           
abstract  boolean isDisabled()
           
abstract  void setDisabled(boolean disabled)
           
abstract  void setMask(String mask)
           
abstract  void setValue(String value)
           
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, getContainedRenderers, getInnerRenderers, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
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 String getMask()

setMask

public abstract void setMask(String mask)

getValue

public abstract String getValue()

setValue

public abstract void setValue(String value)

isDisabled

public abstract boolean isDisabled()

setDisabled

public abstract void setDisabled(boolean disabled)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.