|
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.LinkElement
public class LinkElement
LinkElement is the HTMLElement which represents an HTML link to another location.
<a href="http://www.ibm.com" />IBM</a>which appears as
HTMLElementFactory.createLink(FunctionKeyComponentElement),
HTMLElementFactory.createLink(ListItemComponentElement),
HTMLElementFactory.createLink(URLComponentElement)| 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 | |
|---|---|
LinkElement()
Class constructor which sets the tag name to A. |
|
| Method Summary | |
|---|---|
String |
getContent()
Returns the content. |
String |
getHref()
Gets the href attribute. |
String |
getOnClick()
Returns the onClick attribute of this HTMLElement. |
String |
getTarget()
Gets the target attribute |
String |
render()
Overriden to render the content with the opening tag. |
void |
render(StringBuffer buffer)
Overriden to render the content with the opening tag. |
void |
setContent(String content)
Sets the content. |
void |
setHref(String href)
Sets the href attribute to the specified String. |
void |
setOnClick(String onClick)
Sets the onClick attribute of this HTMLElement. |
void |
setTarget(String target)
Sets the target attribute. |
| 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, renderEndTag, 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 |
|---|
public LinkElement()
A.
| Method Detail |
|---|
public void render(StringBuffer buffer)
render in class HTMLElementHTMLElement.render(StringBuffer)public String render()
render in class HTMLElementHTMLElement.render()public void setHref(String href)
href attribute to the specified String.
href - public String getHref()
href attribute.
public void setTarget(String target)
target attribute.
target - public String getTarget()
target attribute
public void setOnClick(String onClick)
onClick attribute of this HTMLElement.
onClick - the onClickpublic String getOnClick()
onClick attribute of this HTMLElement.
public String getContent()
public void setContent(String content)
content - The content to set
|
HATS 7.5.1 (201005110649) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||