SimpleServlets v5.5.0

com.simpleservlets.htmlobjects
Class HTMLFont

java.lang.Object
  extended by com.simpleservlets.htmlobjects.GenericHTMLElement
      extended by com.simpleservlets.htmlobjects.HTMLFont
All Implemented Interfaces:
HTMLElement

public class HTMLFont
extends GenericHTMLElement
implements HTMLElement

Specified font for text, <font> tag.

Author:
Paul Hyde

Field Summary
 
Fields inherited from interface com.simpleservlets.htmlobjects.HTMLElement
ZERO_LEN_ARRAY
 
Constructor Summary
HTMLFont(HTMLColor color)
           
HTMLFont(HTMLElement element, String size, HTMLColor color)
           
HTMLFont(String size)
           
HTMLFont(String size, HTMLColor color)
           
HTMLFont(String text, String size, HTMLColor color)
           
 
Method Summary
 void setColor(HTMLColor color)
           
 void setFace(String face)
          The name of the font to use.
 void setSize(String size)
          Sets the absolute or relative size of the font.
 
Methods inherited from class com.simpleservlets.htmlobjects.GenericHTMLElement
add, add, addSibling, addSibling, getAttributes, getChildren, getName, getParent, hasAttributes, hasChildren, isSafeToWrapWithWhitespace, removeAllAttributes, removeAllChildren, removeAttribute, removeChild, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeGroup, setParent, setSafeToWrapWithWhitespace, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.simpleservlets.htmlobjects.HTMLElement
add, add, addSibling, addSibling, getAttributes, getChildren, getName, getParent, hasAttributes, hasChildren, isSafeToWrapWithWhitespace, removeAllAttributes, removeAllChildren, removeAttribute, removeChild, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeGroup, setParent, setStyle
 

Constructor Detail

HTMLFont

public HTMLFont(HTMLElement element,
                String size,
                HTMLColor color)

HTMLFont

public HTMLFont(String text,
                String size,
                HTMLColor color)

HTMLFont

public HTMLFont(String size,
                HTMLColor color)

HTMLFont

public HTMLFont(String size)

HTMLFont

public HTMLFont(HTMLColor color)
Method Detail

setSize

public void setSize(String size)
Sets the absolute or relative size of the font. Relative sizes are the most flexible ( "+1", "-2", etc.).


setColor

public void setColor(HTMLColor color)

setFace

public void setFace(String face)
The name of the font to use. Proceed with caution as the font named must be available on the user's browser.


SimpleServlets v5.5.0

Copyright © 2001-2007 Programix Incorporated. All rights reserved. SimpleServlets is free and is OSI Certified Open Source Software under the BSD license.