|
HATS 7.5.1 Web API ReferencePublicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.hats.transform.html.HTMLElement
com.ibm.hats.transform.html.AccessibilityLabelElement
public class AccessibilityLabelElement
AccessibilityLabelElement is the HTMLElement which represents an accessibility label which can be used in the following way:
<label for="user_input">User Name</label> <input type="text" id="user_input"/>which appears as
HTMLElementFactory| Field Summary | |
|---|---|
static String |
CLASSNAME
|
| 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, FLAG_CHECKED, FLAG_DISABLED, FLAG_MULTIPLE, FLAG_READ_ONLY, FLAG_SELECTED, tagName |
| Constructor Summary | |
|---|---|
AccessibilityLabelElement()
Class constructor which sets the tag name and sets this label to be invisible by default. |
|
| Method Summary | |
|---|---|
String |
getContent()
Gets the description of the targeted field |
String |
getTarget()
Returns the ID of the targeted html element. |
boolean |
isRenderSurroundingDivInside()
Determines whether or not this label is to be inside or outside the Div. |
boolean |
isVisible()
Determines whether or not this label is set to be visible in regular web browsers. |
String |
render()
Renders the opening tag and content. |
void |
render(StringBuffer buffer)
Renders the opening tag and content. |
String |
renderEndTag()
Renders closing tag |
void |
renderEndTag(StringBuffer buffer)
Renders closing tag |
void |
setContent(String string)
Sets the description for the targeted field |
void |
setRenderSurroundingDivInside(boolean b)
Sets whether the label is hidden by surrounding it in a DIV tag or if the label is on the outside of the DIV
which has its display style set to none |
void |
setTarget(String id)
Sets the targeted html element |
void |
setVisible(boolean b)
Sets the visibility of this label in a regular web browser. |
| 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, 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 |
|---|
public static final String CLASSNAME
| Constructor Detail |
|---|
public AccessibilityLabelElement()
| Method Detail |
|---|
public String getTarget()
public void setTarget(String id)
id - The ID of the element to targetpublic String getContent()
public void setContent(String string)
string - The description of the targeted fieldpublic boolean isVisible()
public void setVisible(boolean b)
DIV tag
which has its display style set to none
b - visibilitypublic boolean isRenderSurroundingDivInside()
true if label is to be inside a DIV, false otherwise.public void setRenderSurroundingDivInside(boolean b)
DIV tag or if the label is on the outside of the DIV
which has its display style set to none
b - set to true if label is to be inside surrounding DIVpublic void render(StringBuffer buffer)
render in class HTMLElementbuffer - HTMLElement.render(java.lang.StringBuffer)public String render()
render in class HTMLElementHTMLElement.render()public void renderEndTag(StringBuffer buffer)
renderEndTag in class HTMLElementbuffer - HTMLElement.renderEndTag(java.lang.StringBuffer)public String renderEndTag()
renderEndTag in class HTMLElementHTMLElement.renderEndTag()
|
HATS 7.5.1 (201005110649) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||