com.actuate.activeportal.beans
Class LinkBean

java.lang.Object
  extended by com.actuate.activeportal.beans.LinkBean
All Implemented Interfaces:
java.io.Serializable

public class LinkBean
extends java.lang.Object
implements java.io.Serializable

This bean generates an HTML link tag using the following properties: link, linkAttributes and text.

The toString() method generates
<A HREF="link" linkAttributes>text</A>

By default the link class is "hyperlink".

See Also:
Serialized Form

Constructor Summary
LinkBean()
          Construct a LinkBean with no link and no text.
LinkBean(java.lang.String link, java.lang.String text)
          Construct a LinkBean with specified link and text.
LinkBean(java.lang.String link, java.lang.String text, boolean encodeText)
           
 
Method Summary
 java.lang.String getLink()
          Returns the link.
 java.lang.String getLinkAttributes()
          Returns the linkAttributes.
 java.lang.String getText()
          Returns the text.
 void setLink(java.lang.String link)
          Sets the link.
 void setLinkAttributes(java.lang.String linkAttributes)
          Sets the linkAttributes.
 void setText(java.lang.String text)
          Sets the text.
 java.lang.String toString()
          Return the HTML code for rendering the link.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkBean

public LinkBean()
Construct a LinkBean with no link and no text.


LinkBean

public LinkBean(java.lang.String link,
                java.lang.String text)
Construct a LinkBean with specified link and text.


LinkBean

public LinkBean(java.lang.String link,
                java.lang.String text,
                boolean encodeText)
Method Detail

toString

public java.lang.String toString()
Return the HTML code for rendering the link.

Overrides:
toString in class java.lang.Object

getLink

public java.lang.String getLink()
Returns the link.

Returns:
String the link

getText

public java.lang.String getText()
Returns the text.

Returns:
String the text

setLink

public void setLink(java.lang.String link)
Sets the link.

Parameters:
link - The link to set

setText

public void setText(java.lang.String text)
Sets the text.

Parameters:
text - The text to set

getLinkAttributes

public java.lang.String getLinkAttributes()
Returns the linkAttributes.

Returns:
String the link attributes

setLinkAttributes

public void setLinkAttributes(java.lang.String linkAttributes)
Sets the linkAttributes. This can be any valid html attributes of the html <a... > tag

Parameters:
linkAttributes - The linkAttributes to set