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

java.lang.Object
  extended by org.apache.commons.jelly.TagLibrary
      extended by org.apache.commons.jelly.tags.swing.SwingTagLibrary

public class SwingTagLibrary
extends org.apache.commons.jelly.TagLibrary

A Jelly custom tag library that allows Ant tasks to be called from inside Jelly.

Version:
$Revision: 155420 $
Author:
James Strachan, bob mcwhirter

Field Summary
private  java.util.Map factoryMap
          A map of element name to bean class objects
private static org.apache.commons.logging.Log log
          The Log to which logging calls will be made.
 
Constructor Summary
SwingTagLibrary()
           
 
Method Summary
 org.apache.commons.jelly.impl.TagScript createTagScript(java.lang.String name, org.xml.sax.Attributes attributes)
          Creates a new script to execute the given tag name and attributes
 Factory getFactory(java.lang.String elementName)
           
protected  java.util.Map getFactoryMap()
           
protected  void registerBeanFactory(java.lang.String name, java.lang.Class beanClass)
          Register a bean factory for the given element name and class
protected  void registerFactories()
          Strategy method allowing derived classes to change the registration behaviour
protected  void registerFactory(java.lang.String name, Factory factory)
          Register a widget factory for the given element name
 
Methods inherited from class org.apache.commons.jelly.TagLibrary
createExpression, createTag, getExpressionFactory, getTagClasses, registerTag, registerTagFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
The Log to which logging calls will be made.


factoryMap

private java.util.Map factoryMap
A map of element name to bean class objects

Constructor Detail

SwingTagLibrary

public SwingTagLibrary()
Method Detail

createTagScript

public org.apache.commons.jelly.impl.TagScript createTagScript(java.lang.String name,
                                                               org.xml.sax.Attributes attributes)
                                                        throws org.apache.commons.jelly.JellyException
Creates a new script to execute the given tag name and attributes

Overrides:
createTagScript in class org.apache.commons.jelly.TagLibrary
Throws:
org.apache.commons.jelly.JellyException

getFactory

public Factory getFactory(java.lang.String elementName)
Returns:
the Factory of the Swing component for the given element name

registerFactories

protected void registerFactories()
Strategy method allowing derived classes to change the registration behaviour


registerFactory

protected void registerFactory(java.lang.String name,
                               Factory factory)
Register a widget factory for the given element name


registerBeanFactory

protected void registerBeanFactory(java.lang.String name,
                                   java.lang.Class beanClass)
Register a bean factory for the given element name and class


getFactoryMap

protected java.util.Map getFactoryMap()