org.apache.commons.jelly.tags.swt
Class LayoutTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.DynaTagSupport
          extended byorg.apache.commons.jelly.MapTagSupport
              extended byorg.apache.commons.jelly.tags.core.UseBeanTag
                  extended byorg.apache.commons.jelly.tags.swt.LayoutTagSupport
                      extended byorg.apache.commons.jelly.tags.swt.LayoutTag
All Implemented Interfaces:
org.apache.commons.jelly.impl.BeanSource, org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.Tag

public class LayoutTag
extends LayoutTagSupport

Creates a new Layout implementations and adds it to the parent Widget.

Version:
1.1
Author:
James Strachan

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
LayoutTag(java.lang.Class layoutClass)
           
 
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.Layout getLayout()
           
protected  void processBean(java.lang.String var, java.lang.Object bean)
          Either defines a variable or adds the current component to the parent
 
Methods inherited from class org.apache.commons.jelly.tags.swt.LayoutTagSupport
getParentWidget, setBeanProperties, setVar
 
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
 

Constructor Detail

LayoutTag

public LayoutTag(java.lang.Class layoutClass)
Method Detail

getLayout

public org.eclipse.swt.widgets.Layout getLayout()
Returns:
the Layout if there is one otherwise null

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 LayoutTagSupport
Throws:
org.apache.commons.jelly.JellyTagException

convertValue

protected java.lang.Object convertValue(java.lang.Object bean,
                                        java.lang.String name,
                                        java.lang.Object value)
                                 throws org.apache.commons.jelly.JellyTagException
Description copied from class: LayoutTagSupport
Provides a strategy method that allows values to be converted, particularly to support integer enumerations and String representations.

Overrides:
convertValue in class LayoutTagSupport
Parameters:
bean - is the bean on which the property is to be set
name - is the name of the property
value - the value of the property
Returns:
the new value
Throws:
org.apache.commons.jelly.JellyTagException
See Also:
LayoutTagSupport.convertValue(java.lang.Object, java.lang.String, java.lang.Object)


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.