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

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.DynaTagSupport
          extended byorg.apache.commons.jelly.DynaBeanTagSupport
              extended byorg.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.


Nested Class Summary
static class ConstraintTag.ConstantFactory
           
static class ConstraintTag.HereFactory
           
 
Field Summary
protected  java.lang.Object bean
           
protected  Factory factory
           
protected  java.lang.String var
           
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ConstraintTag(Factory factory)
           
 
Method Summary
 void beforeSetAttributes()
           
protected  void createBean(Factory factory)
           
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Children invocation... just nothing...
 java.lang.Object getBean()
           
 java.lang.Object getConstraintObject()
          Returns the attached constraint object.
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 
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
 

Field Detail

factory

protected Factory factory

var

protected java.lang.String var

bean

protected java.lang.Object bean
Constructor Detail

ConstraintTag

public ConstraintTag(Factory factory)
Method Detail

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.