org.apache.commons.jelly.tags.swing
Class SwingTagLibrary
java.lang.Object
|
+--org.apache.commons.jelly.TagLibrary
|
+--org.apache.commons.jelly.tags.swing.SwingTagLibrary
- public class SwingTagLibrary
- extends TagLibrary
A Jelly custom tag library that allows Ant tasks to be called from inside Jelly.
- Version:
- $Revision: 1.6 $
- Author:
- James Strachan, bob mcwhirter
Method Summary |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwingTagLibrary
public SwingTagLibrary()
createTagScript
public TagScript createTagScript(java.lang.String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
- Creates a new script to execute the given tag name and attributes
- Overrides:
createTagScript
in class TagLibrary
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()
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.