org.apache.commons.jelly.tags.swing
Class ActionTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.DynaTagSupport
org.apache.commons.jelly.MapTagSupport
org.apache.commons.jelly.tags.core.UseBeanTag
org.apache.commons.jelly.tags.swing.ActionTag
- All Implemented Interfaces:
- org.apache.commons.jelly.impl.BeanSource, org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.Tag
- public class ActionTag
- extends org.apache.commons.jelly.tags.core.UseBeanTag
Creates a Swing Action which on invocation will execute the body of this tag.
The Action is then output as a variable for reuse if the 'var' attribute is specified
otherwise the action is added to the parent JellySwing widget.
- Version:
- $Revision: 1.7 $
- Author:
- James Strachan
Field Summary |
private static org.apache.commons.logging.Log |
log
The Log to which logging calls will be made. |
Fields inherited from class org.apache.commons.jelly.tags.core.UseBeanTag |
|
Fields inherited from class org.apache.commons.jelly.MapTagSupport |
|
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
protected java.lang.String |
capitalize(java.lang.String text)
|
protected java.lang.Class |
convertToClass(java.lang.Object classObject)
An existing Action could be specified via the 'action' attribute or an action class
may be specified via the 'class' attribute, otherwise a default Action class is created. |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
javax.swing.Action |
getAction()
|
protected java.lang.Object |
newInstance(java.lang.Class theClass,
java.util.Map attributes,
org.apache.commons.jelly.XMLOutput output)
An existing Action could be specified via the 'action' attribute or an action class
may be specified via the 'class' attribute, otherwise a default Action class is created. |
protected void |
processBean(java.lang.String var,
java.lang.Object bean)
Either defines a variable or adds the current component to the parent |
protected void |
setBeanProperties(java.lang.Object bean,
java.util.Map attributes)
Perform the strange setting of Action properties using its custom API |
Methods inherited from class org.apache.commons.jelly.tags.core.UseBeanTag |
getBean, getDefaultClass, loadClass, setBean |
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, isTrim, setBody, setContext, 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 |
log
private static final org.apache.commons.logging.Log log
- The Log to which logging calls will be made.
ActionTag
public ActionTag()
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.JellyTagException
- Throws:
org.apache.commons.jelly.JellyTagException
getAction
public javax.swing.Action getAction()
- Returns:
- the Action object for this tag
convertToClass
protected java.lang.Class convertToClass(java.lang.Object classObject)
throws org.apache.commons.jelly.MissingAttributeException,
java.lang.ClassNotFoundException
- An existing Action could be specified via the 'action' attribute or an action class
may be specified via the 'class' attribute, otherwise a default Action class is created.
- Throws:
org.apache.commons.jelly.MissingAttributeException
java.lang.ClassNotFoundException
newInstance
protected java.lang.Object newInstance(java.lang.Class theClass,
java.util.Map attributes,
org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.JellyTagException
- An existing Action could be specified via the 'action' attribute or an action class
may be specified via the 'class' attribute, otherwise a default Action class is created.
- Throws:
org.apache.commons.jelly.JellyTagException
processBean
protected void processBean(java.lang.String var,
java.lang.Object bean)
throws org.apache.commons.jelly.JellyTagException
- Either defines a variable or adds the current component to the parent
- Throws:
org.apache.commons.jelly.JellyTagException
setBeanProperties
protected void setBeanProperties(java.lang.Object bean,
java.util.Map attributes)
throws org.apache.commons.jelly.JellyTagException
- Perform the strange setting of Action properties using its custom API
- Throws:
org.apache.commons.jelly.JellyTagException
capitalize
protected java.lang.String capitalize(java.lang.String text)