com.mortbay.HTML
Class Link

java.lang.Object
  |
  +--com.mortbay.HTML.Element
        |
        +--com.mortbay.HTML.Composite
              |
              +--com.mortbay.HTML.Block
                    |
                    +--com.mortbay.HTML.Link

public class Link
extends Block

HTML Link Block This is a HTML reference (not a CSS Link).

See Also:
StyleLink

Fields inherited from class com.mortbay.HTML.Block
Bold, Center, Div, Italic, Left, Listing, Plain, Pre, Quote, Right, Span, Xmp
 
Fields inherited from class com.mortbay.HTML.Composite
elements, nest
 
Fields inherited from class com.mortbay.HTML.Element
ALIGN, attributeMap, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH
 
Constructor Summary
Link(java.lang.String href)
          Construct Link
Link(java.lang.String href, java.lang.Object link)
          Construct Link
 
Method Summary
 Link target(java.lang.String t)
          Set the link target frame
 
Methods inherited from class com.mortbay.HTML.Block
write
 
Methods inherited from class com.mortbay.HTML.Composite
add, contents, nest, replace, reset, setNest, size, unnest
 
Methods inherited from class com.mortbay.HTML.Element
attribute, attribute, attribute, attributes, attributes, bgColor, bottom, center, color, cssClass, cssID, height, height, height, left, middle, right, setAttributesFrom, size, size, style, top, toString, width, width, width, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Link

public Link(java.lang.String href)
Construct Link
Parameters:
href - The target URL of the link

Link

public Link(java.lang.String href,
            java.lang.Object link)
Construct Link
Parameters:
href - The target URL of the link
link - Link Element
Method Detail

target

public Link target(java.lang.String t)
Set the link target frame