com.ibm.hats.transform.actions
Class AllowSignedNumericOnlyAction
java.lang.Object
com.ibm.hats.transform.actions.ScriptAction
com.ibm.hats.transform.actions.AllowSignedNumericOnlyAction
public class AllowSignedNumericOnlyAction
- extends ScriptAction
This class represents the action to allow only signed numeric characters.
This action is typically used in the onKeyPress() event of an input field
to restrict that input field to only allow a user to enter digits (0-9) or other
numeric symbols (commas, periods, etc).
The current implementation of this class generates the following:
allowSignedNumeric(event)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllowSignedNumericOnlyAction
public AllowSignedNumericOnlyAction()
- Constructs a new
AllowSignedNumericOnlyAction object.
AllowSignedNumericOnlyAction
public AllowSignedNumericOnlyAction(String keytype)
- Constructs a new
AllowSignedNumericOnlyAction object.
- Parameters:
keytype - The type of key event
generateScript
public String generateScript(String language,
ContextAttributes contextAttributes)
- Returns the generated script. The following script is generated:
allowSignedNumeric(event)
- Specified by:
generateScript in class ScriptAction
- Parameters:
language - The language.contextAttributes - The context attributes.
- Returns:
- The generated script.