org.apache.commons.jelly.tags.swing
Class ConstraintTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.DynaTagSupport
org.apache.commons.jelly.DynaBeanTagSupport
org.apache.commons.jelly.tags.swing.ConstraintTag
- All Implemented Interfaces:
- org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.Tag
- public class ConstraintTag
- extends org.apache.commons.jelly.DynaBeanTagSupport
This class represents a layout-manager constraints as passed in
the second argument of Container#add(Component,Object)
.
In essence, it looks really like nothing else than a bean-class...
with getConstraintObject()
.
Probably a shorter java-source is do-able.
TODO: this class should probably be extended with special treatment for dimensios
using the converter package.
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Methods inherited from class org.apache.commons.jelly.DynaBeanTagSupport |
getAttributeType, getDynaBean, setContext, setDynaBean |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, 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, setParent |
factory
protected Factory factory
var
protected java.lang.String var
bean
protected java.lang.Object bean
ConstraintTag
public ConstraintTag(Factory factory)
createBean
protected void createBean(Factory factory)
throws java.lang.InstantiationException
- Throws:
java.lang.InstantiationException
beforeSetAttributes
public void beforeSetAttributes()
throws org.apache.commons.jelly.JellyTagException
- Throws:
org.apache.commons.jelly.JellyTagException
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
throws org.apache.commons.jelly.JellyTagException
- Throws:
org.apache.commons.jelly.JellyTagException
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.JellyTagException
- Children invocation... just nothing...
- Throws:
org.apache.commons.jelly.JellyTagException
getBean
public java.lang.Object getBean()
getConstraintObject
public java.lang.Object getConstraintObject()
- Returns the attached constraint object.
Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.