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

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

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

The Swing tag library.

In addition to the tag descriptions in the tag doc, implements the following basic components:

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

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
 

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

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()


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