Home » displaytag-1.1.1-src » org » displaytag » util » [javadoc | source]
org.displaytag.util
public class: Anchor [javadoc | source]
java.lang.Object
   org.displaytag.util.Anchor
Anchor object used to output an html link (an <a> tag).
Constructor:
 public Anchor(Href linkHref,
    String linkBody) 
    Creates a new Anchor whit the supplied Href and body text.
    Parameters:
    linkHref - baseHref
    linkBody - String link body
Method from org.displaytag.util.Anchor Summary:
getCloseTag,   getOpenTag,   setClass,   setHref,   setStyle,   setText,   setTitle,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.displaytag.util.Anchor Detail:
 public String getCloseTag() 
    returns the </a> tag.
 public String getOpenTag() 
    Returns the <a> tag, with rendered href and any html attribute.
 public  void setClass(String cssClass) 
    add a "class" attribute to the html link.
 public  void setHref(Href linkHref) 
    setter the anchor Href.
 public  void setStyle(String style) 
    add a "style" attribute to the html link.
 public  void setText(String linkBody) 
    setter for the link body text.
 public  void setTitle(String title) 
    add a "title" attribute to the html link.
 public String toString() 
    returns the full <a href="">body</a>.