org.mortbay.html

Class Tag

Known Direct Subclasses:
Break, Image, Input, StyleLink

public class Tag
extends Element

HTML Tag Element. A Tag element is of the generic form <TAG attributes... >
See Also:
Element

Field Summary

protected String
tag

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

Tag(String tag)
Construct with attributes.

Method Summary

void
write(Writer out)
Write element to a Writer.

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

Field Details

tag

protected String tag

Constructor Details

Tag

public Tag(String tag)
Construct with attributes.
Parameters:

Method Details

write

public void write(Writer out)
            throws IOException
Write element to a Writer. This abstract method is called by the Page or other containing Element to write the HTML for this element. This must be implemented by the derived Element classes.
Overrides:
write in interface Element
Parameters:
out - Writer to write the element to.

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