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 InputElement

java.lang.Object
  extended by com.ibm.hats.transform.html.HTMLElement
      extended by com.ibm.hats.transform.html.InputElement
Direct Known Subclasses:
ButtonElement, CheckboxElement, HiddenElement, RadioInputElement, TextInputElement

public class InputElement
extends HTMLElement

InputElement is the parent class for all form related HTMLElements with the tag name of input. It is subclassed by elements with specific type attributes. It is recommended that you use the specific subclasses of InputElement instead of InputElement itself.


Field Summary
 
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
InputElement()
          Class constructor which sets the tag name of the element to input.
 
Method Summary
 String getOnBlur()
          Returns the onBlur attribute.
 String getOnClick()
          Returns the onClick attribute.
 String getOnFocus()
          Returns the onFocus attribute.
 String getType()
          Gets the type attribute.
 String getValue()
          Gets the initialValue.
 boolean isDisabled()
          Determines whether or not the disabled flag has been set on this CheckboxElement.
 void renderEndTag(StringBuffer buffer)
          Does nothing.
 void setDisabled(boolean value)
          Adds or removes the disabled flag on this CheckBoxElement.
 void setOnBlur(String onBlur)
          Sets the onBlur attribute.
 void setOnClick(String onClick)
          Sets the onClick attribute.
 void setOnFocus(String onFocus)
          Sets the onFocus attribute.
 void setType(String type)
          Sets the type attribute.
 void setValue(String value)
          Sets the initialValue.
 
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
 

Constructor Detail

InputElement

public InputElement()
Class constructor which sets the tag name of the element to input.

Method Detail

renderEndTag

public void renderEndTag(StringBuffer buffer)
Does nothing. This method is overridden because input elements do not require closing tags.

Overrides:
renderEndTag in class HTMLElement

getOnClick

public String getOnClick()
Returns the onClick attribute.

Returns:
String

getOnFocus

public String getOnFocus()
Returns the onFocus attribute.

Returns:
String

getOnBlur

public String getOnBlur()
Returns the onBlur attribute.

Returns:
String

getType

public String getType()
Gets the type attribute.

Returns:
String

setOnClick

public void setOnClick(String onClick)
Sets the onClick attribute.

Parameters:
onClick - The onClick to set

setOnFocus

public void setOnFocus(String onFocus)
Sets the onFocus attribute.

Parameters:
onFocus - The onFocus to set

setOnBlur

public void setOnBlur(String onBlur)
Sets the onBlur attribute.

Parameters:
onBlur - The onBlur to set

setType

public void setType(String type)
Sets the type attribute.

Parameters:
type - The type to set

getValue

public String getValue()
Gets the initialValue.

Returns:
String

setValue

public void setValue(String value)
Sets the initialValue.

Parameters:
value - The initialValue to set.

isDisabled

public boolean isDisabled()
Determines whether or not the disabled flag has been set on this CheckboxElement.

Returns:
boolean

setDisabled

public void setDisabled(boolean value)
Adds or removes the disabled flag on this CheckBoxElement.

Parameters:
value - true to add the flag, false to remove the flag

HATS 7.5.1 (201005110649)