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 LinkElement

java.lang.Object
  extended by com.ibm.hats.transform.html.HTMLElement
      extended by com.ibm.hats.transform.html.LinkElement

public class LinkElement
extends HTMLElement

LinkElement is the HTMLElement which represents an HTML link to another location.

 <a href="http://www.ibm.com" />IBM</a>
 
which appears as

IBM

See Also:
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

LinkElement

public LinkElement()
Class constructor which sets the tag name to A.

Method Detail

render

public void render(StringBuffer buffer)
Overriden to render the content with the opening tag.

Overrides:
render in class HTMLElement
See Also:
HTMLElement.render(StringBuffer)

render

public String render()
Overriden to render the content with the opening tag.

Overrides:
render in class HTMLElement
Returns:
String
See Also:
HTMLElement.render()

setHref

public void setHref(String href)
Sets the href attribute to the specified String.

Parameters:
href -

getHref

public String getHref()
Gets the href attribute.

Returns:
String

setTarget

public void setTarget(String target)
Sets the target attribute.

Parameters:
target -

getTarget

public String getTarget()
Gets the target attribute

Returns:
String

setOnClick

public void setOnClick(String onClick)
Sets the onClick attribute of this HTMLElement.

Parameters:
onClick - the onClick

getOnClick

public String getOnClick()
Returns the onClick attribute of this HTMLElement.

Returns:
String

getContent

public String getContent()
Returns the content.

Returns:
String

setContent

public void setContent(String content)
Sets the content.

Parameters:
content - The content to set

HATS 7.5.1 (201005110649)