org.mortbay.html

Class Link


public class Link
extends Block

HTML Link Block. This is a HTML reference (not a CSS Link).
See Also:
StyleLink

Field Summary

Fields inherited from class org.mortbay.html.Block

Bold, Center, Div, Italic, Left, Listing, Plain, Pre, Quote, Right, Span, Xmp

Fields inherited from class org.mortbay.html.Composite

elements, nest

Fields inherited from class org.mortbay.html.Element

ALIGN, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH, attributeMap, noAttributes

Constructor Summary

Link(String href)
Construct Link.
Link(String href, Object link)
Construct Link.

Method Summary

Link
target(String t)
Set the link target frame.

Methods inherited from class org.mortbay.html.Block

write

Methods inherited from class org.mortbay.html.Composite

add, contents, nest, replace, reset, setNest, size, unnest, write

Methods inherited from class org.mortbay.html.Element

attribute, attribute, attribute, attributes, attributes, bgColor, bottom, center, color, cssClass, cssID, height, height, height, left, middle, right, setAttributesFrom, size, size, size, style, toString, top, width, width, width, write, write, write

Constructor Details

Link

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

Link

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

Method Details

target

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

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.