org.apache.commons.jelly.tags.swt
Class LayoutTagSupport
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.swt.LayoutTagSupport
- All Implemented Interfaces:
- org.apache.commons.jelly.impl.BeanSource, org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.Tag
- Direct Known Subclasses:
- LayoutDataTag, LayoutTag
- public abstract class LayoutTagSupport
- extends org.apache.commons.jelly.tags.core.UseBeanTag
An abstract base class for Layout or LayoutData tags.
- Version:
- 1.1
- Author:
- James Strachan
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
protected java.lang.Object |
convertValue(java.lang.Object bean,
java.lang.String name,
java.lang.Object value)
Provides a strategy method that allows values to be converted,
particularly to support integer enumerations and String representations. |
org.eclipse.swt.widgets.Widget |
getParentWidget()
|
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)
|
void |
setVar(java.lang.String var)
Sets the name of the variable to use to expose the new Layout object. |
Methods inherited from class org.apache.commons.jelly.tags.core.UseBeanTag |
addIgnoreProperty, convertToClass, doTag, getBean, getDefaultClass, getIgnorePropertySet, isIgnoreUnknownProperties, loadClass, newInstance, 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, invokeBody, 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, invokeBody, setBody, setContext, setParent |
LayoutTagSupport
public LayoutTagSupport(java.lang.Class layoutClass)
getParentWidget
public org.eclipse.swt.widgets.Widget getParentWidget()
- Returns:
- the parent widget which this widget will be added to.
setVar
public void setVar(java.lang.String var)
- Sets the name of the variable to use to expose the new Layout object.
If this attribute is not set then the parent widget tag will have its
layout property set.
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
- Overrides:
processBean
in class org.apache.commons.jelly.tags.core.UseBeanTag
setBeanProperties
protected void setBeanProperties(java.lang.Object bean,
java.util.Map attributes)
throws org.apache.commons.jelly.JellyTagException
- Overrides:
setBeanProperties
in class org.apache.commons.jelly.tags.core.UseBeanTag
- See Also:
UseBeanTag.setBeanProperties(java.lang.Object, java.util.Map)
convertValue
protected java.lang.Object convertValue(java.lang.Object bean,
java.lang.String name,
java.lang.Object value)
throws org.apache.commons.jelly.JellyTagException
- Provides a strategy method that allows values to be converted,
particularly to support integer enumerations and String representations.
- Parameters:
bean
- is the bean on which the property is to be setname
- is the name of the propertyvalue
- the value of the property- Returns:
- the new value
Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.