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: 155420 $
- Author:
- James Strachan
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. |
javax.swing.Action |
getAction()
|
void |
invokeBody(org.apache.commons.jelly.XMLOutput output)
|
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 |
addIgnoreProperty, doTag, getBean, getDefaultClass, getIgnorePropertySet, isIgnoreUnknownProperties, loadClass, setBean, setIgnoreUnknownProperties, validateBeanProperties |
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, 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, setBody, setContext, setParent |
ActionTag
public ActionTag()
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
invokeBody
public void invokeBody(org.apache.commons.jelly.XMLOutput output)
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)
Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.