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.html
Class TextInputElement

java.lang.Object
  extended by com.ibm.hats.transform.html.HTMLElement
      extended by com.ibm.hats.transform.html.InputElement
          extended by com.ibm.hats.transform.html.TextInputElement
Direct Known Subclasses:
TextAreaElement

public class TextInputElement
extends InputElement

TextInputElement is the HTMLElement which represents an HTML form input such as the following:

 User Name: <input type="text" name="userid" value="" />
 
which appears as

User Name:

See Also:
HTMLElementFactory.createTextInput(FieldComponentElement)

Field Summary
static String IME_ACTIVE
           
static String IME_AUTO
           
static String IME_DISABLED
           
static String IME_INACTIVE
           
 
Fields inherited from class com.ibm.hats.transform.html.HTMLElement
ATTR_ACCESS_KEY, ATTR_ACTION, ATTR_ALT, ATTR_CLASS_NAME, ATTR_DIR, ATTR_FOR, ATTR_HREF, ATTR_ID, ATTR_IMG_ALT, ATTR_MAX_LENGTH, ATTR_NAME, ATTR_ON_BLUR, ATTR_ON_CHANGE, ATTR_ON_CLICK, ATTR_ON_CUT, ATTR_ON_DROP, ATTR_ON_FOCUS, ATTR_ON_KEY_DOWN, ATTR_ON_KEY_PRESS, ATTR_ON_KEY_UP, ATTR_ON_MOUSEDOWN, ATTR_ON_MOUSEOVER, ATTR_ON_PASTE, ATTR_SIZE, ATTR_SRC, ATTR_STYLE, ATTR_TARGET, ATTR_TYPE, ATTR_VALUE, CLASSNAME, FLAG_CHECKED, FLAG_DISABLED, FLAG_MULTIPLE, FLAG_READ_ONLY, FLAG_SELECTED, tagName
 
Constructor Summary
TextInputElement()
          Constructor for TextInputElement, sets the type attribute to text.
 
Method Summary
 String getAlt()
           
 int getMaxLength()
          Returns the maximum length for the value of this input.
 String getOnChange()
          Returns the onChange attribute.
 String getOnCut()
           
 String getOnDrop()
           
 String getOnKeyDown()
          Gets the onKeyDown attribute.
 String getOnKeyPress()
          Gets the onKeyPress attribute.
 String getOnKeyUp()
          Gets the onKeyUp attribute.
 String getOnPaste()
           
 int getSize()
          Returns the size of this input field.
 void setAlt(String alt)
           
 void setMaxLength(int maxLength)
          Sets the maximum length for this input field.
 void setOnChange(String onChange)
          Sets the onChange attribute.
 void setOnCut(String s)
           
 void setOnDrop(String s)
           
 void setOnKeyDown(String s)
          Sets the onKeyDown attribute.
 void setOnKeyPress(String s)
          Sets the onKeyPress attribute.
 void setOnKeyUp(String s)
          Sets the onKeyUp attribute.
 void setOnPaste(String s)
           
 void setSize(int size)
          Sets the size of this input field.
 
Methods inherited from class com.ibm.hats.transform.html.InputElement
getOnBlur, getOnClick, getOnFocus, getType, getValue, isDisabled, renderEndTag, setDisabled, setOnBlur, setOnClick, setOnFocus, setType, setValue
 
Methods inherited from class com.ibm.hats.transform.html.HTMLElement
addFlag, appendClassName, appendStyle, buildTag, buildTag, getAttribute, getClassName, getDir, getId, getName, getStyle, getTagName, hasFlag, removeFlag, render, render, render, render, renderEndTag, setAlign, setAttribute, setClassName, setDir, setId, setName, setStyle, setTagName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IME_ACTIVE

public static final String IME_ACTIVE
See Also:
Constant Field Values

IME_INACTIVE

public static final String IME_INACTIVE
See Also:
Constant Field Values

IME_AUTO

public static final String IME_AUTO
See Also:
Constant Field Values

IME_DISABLED

public static final String IME_DISABLED
See Also:
Constant Field Values
Constructor Detail

TextInputElement

public TextInputElement()
Constructor for TextInputElement, sets the type attribute to text.

Method Detail

getMaxLength

public int getMaxLength()
Returns the maximum length for the value of this input.

Returns:
int max field length, or -1 if the attribute is not parseable

getOnChange

public String getOnChange()
Returns the onChange attribute.

Returns:
String

getSize

public int getSize()
Returns the size of this input field.

Returns:
int field size, or -1 if the attribute is not parseable

getOnKeyPress

public String getOnKeyPress()
Gets the onKeyPress attribute.

Returns:
String

setOnKeyPress

public void setOnKeyPress(String s)
Sets the onKeyPress attribute.

Parameters:
s - The onKeyPress attribute to be set.

getOnKeyUp

public String getOnKeyUp()
Gets the onKeyUp attribute.

Returns:
String

setOnKeyUp

public void setOnKeyUp(String s)
Sets the onKeyUp attribute.

Parameters:
s - The onKeyUp attribute to be set.

setOnKeyDown

public void setOnKeyDown(String s)
Sets the onKeyDown attribute.

Parameters:
s - The onKeyDown attribute to be set.

getOnKeyDown

public String getOnKeyDown()
Gets the onKeyDown attribute.

Returns:
String

setMaxLength

public void setMaxLength(int maxLength)
Sets the maximum length for this input field.

Parameters:
maxLength - The maxLength to set

setOnChange

public void setOnChange(String onChange)
Sets the onChange attribute.

Parameters:
onChange - The onChange to set

setSize

public void setSize(int size)
Sets the size of this input field.

Parameters:
size - The size to set

setAlt

public void setAlt(String alt)

getAlt

public String getAlt()

setOnPaste

public void setOnPaste(String s)

getOnPaste

public String getOnPaste()

setOnDrop

public void setOnDrop(String s)

getOnDrop

public String getOnDrop()

setOnCut

public void setOnCut(String s)

getOnCut

public String getOnCut()

HATS 7.5.1 (201005110649)