HATS 7.5.1 Web API Reference

Publicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product.

com.ibm.hats.transform.actions
Class AllowAlphabeticOnlyAction

java.lang.Object
  extended by com.ibm.hats.transform.actions.ScriptAction
      extended by com.ibm.hats.transform.actions.AllowAlphabeticOnlyAction

public class AllowAlphabeticOnlyAction
extends ScriptAction

This class represents the action to allow only alphabetic 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 alphabetic (A-z) characters.

The current implementation of this class generates the following:

     allowAlphabeticOnly(event)
 


Field Summary
 
Fields inherited from class com.ibm.hats.transform.actions.ScriptAction
LANG_JAVASCRIPT
 
Constructor Summary
AllowAlphabeticOnlyAction()
          Constructs a new AllowAlphabeticOnlyAction object.
AllowAlphabeticOnlyAction(String keytype)
          Constructs a new AllowAlphabeticOnlyAction object.
 
Method Summary
 String generateScript(String language, ContextAttributes contextAttributes)
          Returns the generated script.
 
Methods inherited from class com.ibm.hats.transform.actions.ScriptAction
combineScriptActions, combineScriptActions, generateScript, generateScript, generateScript, generateScript, generateScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowAlphabeticOnlyAction

public AllowAlphabeticOnlyAction()
Constructs a new AllowAlphabeticOnlyAction object.


AllowAlphabeticOnlyAction

public AllowAlphabeticOnlyAction(String keytype)
Constructs a new AllowAlphabeticOnlyAction object.

Parameters:
keytype - The type of key event
Method Detail

generateScript

public String generateScript(String language,
                             ContextAttributes contextAttributes)
Returns the generated script. The following script is generated:

     allowAlphabeticOnly(event)
 

Specified by:
generateScript in class ScriptAction
Parameters:
language - The language.
contextAttributes - The context attributes.
Returns:
The generated script.

HATS 7.5.1 (201005110649)