org.apache.commons.jelly.tags.swing
Class FontTag

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.DynaTagSupport
              |
              +--org.apache.commons.jelly.MapTagSupport
                    |
                    +--org.apache.commons.jelly.tags.swing.FontTag
All Implemented Interfaces:
org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.Tag

public class FontTag
extends org.apache.commons.jelly.MapTagSupport

Creates an Font and attaches it to the parent component or exports the font as a reusable variable that can be attached to multiple widgets.

Version:
$Revision: 1.7 $
Author:
James Strachan

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
FontTag()
           
 
Method Summary
protected  java.awt.Font createFont(java.util.Map map)
          Factory method to create a new Font based on the given properties
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 java.awt.Font getFont()
           
 
Methods inherited from class org.apache.commons.jelly.MapTagSupport
createAttributes, getAttributes, setAttribute
 
Methods inherited from class org.apache.commons.jelly.DynaTagSupport
getAttributeType
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jelly.Tag
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent
 

Constructor Detail

FontTag

public FontTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Overrides:
doTag in class org.apache.commons.jelly.TagSupport

getFont

public java.awt.Font getFont()
Returns:
the Font object for this tag

createFont

protected java.awt.Font createFont(java.util.Map map)
Factory method to create a new Font based on the given properties


Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.