org.mortbay.html

Class Font


public class Font
extends Block

HTML Font Block. Each Element added to the List (which is a Composite) is treated as a new List Item.
See Also:
Block

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

Font()
Default constructor.
Font(String attributes)
Construct a block using the passed string as the tag.
Font(int size)
Font(int size, String attributes)
Font(int size, boolean relativeSize)

Method Summary

Font
face(String face)

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

Font

public Font()
Default constructor.

Font

public Font(String attributes)
Construct a block using the passed string as the tag.
Parameters:

Font

public Font(int size)

Font

public Font(int size,
            String attributes)

Font

public Font(int size,
            boolean relativeSize)

Method Details

face

public Font face(String face)

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