This project has retired. For details please refer to its Attic page.
PutListAttributeTag (Tiles 2 2.2.2 API)

org.apache.tiles.jsp.taglib
Class PutListAttributeTag

Package class diagram package PutListAttributeTag
java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.apache.tiles.jsp.taglib.PutListAttributeTag
All Implemented Interfaces:
JspTag, SimpleTag

public class PutListAttributeTag
extends SimpleTagSupport

PutList tag implementation.

Since:
Tiles 1.0
Version:
$Rev: 927562 $ $Date: 2010-03-25 20:35:34 +0100 (gio, 25 mar 2010) $

Constructor Summary
PutListAttributeTag()
           
 
Method Summary
 void doTag()
          
 boolean getInherit()
          If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here.
 String getName()
          Returns the name of the attribute.
 String getRole()
          Returns the role to check.
 String getType()
          Deprecated. Do not use, ignored.
 boolean isCascade()
          Checks if the attribute should be cascaded to nested definitions.
 void setCascade(boolean cascade)
          Sets the property that tells if the attribute should be cascaded to nested definitions.
 void setInherit(boolean inherit)
          If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here.
 void setName(String name)
          Sets the name of the attribute.
 void setRole(String role)
          Sets the role to check.
 void setType(String type)
          Deprecated. Do not use, ignored.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PutListAttributeTag

public PutListAttributeTag()
Method Detail

getName

public String getName()
Returns the name of the attribute.

Returns:
The name of the attribute.

setName

public void setName(String name)
Sets the name of the attribute.

Parameters:
name - The name of the attribute.

isCascade

public boolean isCascade()
Checks if the attribute should be cascaded to nested definitions.

Returns:
true if the attribute will be cascaded.
Since:
2.1.0

setCascade

public void setCascade(boolean cascade)
Sets the property that tells if the attribute should be cascaded to nested definitions.

Parameters:
cascade - true if the attribute will be cascaded.
Since:
2.1.0

getRole

public String getRole()
Returns the role to check. If the user is in the specified role, the tag is taken into account; otherwise, the tag is ignored (skipped).

Returns:
The role to check.

setRole

public void setRole(String role)
Sets the role to check. If the user is in the specified role, the tag is taken into account; otherwise, the tag is ignored (skipped).

Parameters:
role - The role to check.

getType

@Deprecated
public String getType()
Deprecated. Do not use, ignored.

Returns content type: string, template or definition.

Returns:
The attribute type.

setType

@Deprecated
public void setType(String type)
Deprecated. Do not use, ignored.

Sets content type: string, template or definition.

Parameters:
type - The attribute type.

setInherit

public void setInherit(boolean inherit)
If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here. By default, it is 'false'

Parameters:
inherit - The "inherit" value.
Since:
2.1.0

getInherit

public boolean getInherit()
If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here. By default, it is 'false'

Returns:
The "inherit" value.
Since:
2.1.0

doTag

public void doTag()
           throws JspException,
                  IOException

Specified by:
doTag in interface SimpleTag
Overrides:
doTag in class SimpleTagSupport
Throws:
JspException
IOException


Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.