org.apache.tapestry.contrib.form.MaskEdit Maven / Gradle / Ivy
// Copyright 2004, 2005 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry.contrib.form;
import 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 ]
*
* @author Malcolm Edgar
* @since 2.3
*/
public abstract class MaskEdit extends BaseComponent
{
public abstract String getMask();
public abstract void setMask(String mask);
public abstract String getValue();
public abstract void setValue(String value);
public abstract boolean isDisabled();
public abstract void setDisabled(boolean disabled);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy