com.ibm.hats.transform.actions
Class ConvertToUpperCaseAction
java.lang.Object
com.ibm.hats.transform.actions.ScriptAction
com.ibm.hats.transform.actions.ConvertToUpperCaseAction
public class ConvertToUpperCaseAction
- extends ScriptAction
This class represents the action to convert all inputted characters into uppercase.
This action is typically used in the onKeyPress() event of an input field.
The current implementation of this class generates the following:
convertToUpperCase(event)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertToUpperCaseAction
public ConvertToUpperCaseAction()
- Constructs a new
ConvertToUpperCaseAction object.
ConvertToUpperCaseAction
public ConvertToUpperCaseAction(String keytype)
- Constructs a new
ConvertToUpperCaseAction 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:
convertToUpperCase(event)
- Specified by:
generateScript in class ScriptAction
- Parameters:
language - The language.contextAttributes - The context attributes.
- Returns:
- The generated script.