org.apache.struts.taglib.tiles

Class DefinitionTagSupport

Implemented Interfaces:
Serializable
Known Direct Subclasses:
DefinitionTag, InsertTag

public class DefinitionTagSupport
extends TagSupport
implements Serializable

Common base class for tags dealing with Tiles definitions. This class defines properties used in Definition Tags. It also extends TagSupport.

Field Summary

protected String
controllerName
Associated Controller name (classname or url)
protected String
controllerType
Associated Controller type
protected String
page
Uri of page assoicated to this definition.
protected String
role
Role associated to definition.

Method Summary

String
getControllerName()
Get controller name.
String
getControllerType()
Get controller type.
String
getPage()
Get the page.
String
getRole()
Get associated role.
String
getTemplate()
Get the template.
void
release()
Release class properties.
void
setController(String controller)
Set associated controller name.
void
setControllerClass(String controller)
Set associated controller name as a classtype and controller type as "classname".
void
setControllerName(String controller)
Set associated controller name.
void
setControllerType(String controllerType)
Set associated controller type.
void
setControllerUrl(String controller)
Set associated controller name as an url, and controller type as "url".
void
setPage(String page)
Set the page.
void
setRole(String role)
Set associated role.
void
setTemplate(String template)
Set the template.

Field Details

controllerName

protected String controllerName
Associated Controller name (classname or url)

controllerType

protected String controllerType
Associated Controller type

page

protected String page
Uri of page assoicated to this definition.

role

protected String role
Role associated to definition.

Method Details

getControllerName

public String getControllerName()
Returns:
Controller name.

getControllerType

public String getControllerType()
Get controller type. Type can be 'classname', 'url'.
Returns:
Controller type.

getPage

public String getPage()
Get the page.
Returns:
Page.

getRole

public String getRole()
Get associated role.
Returns:
Associated role.

getTemplate

public String getTemplate()
Get the template. Same as getPage().
Returns:
Template.

release

public void release()
Release class properties.

setController

public void setController(String controller)
Parameters:
controller - Controller classname or url.

setControllerClass

public void setControllerClass(String controller)
Set associated controller name as a classtype and controller type as "classname". Name denotes a fully qualified classname. Convenience method.
Parameters:
controller - Controller classname.

setControllerName

public void setControllerName(String controller)
Set associated controller name. Name denote a fully qualified classname, or an url. Exact type can be specified with setControllerType.
Parameters:
controller - Controller classname or url

setControllerType

public void setControllerType(String controllerType)
Set associated controller type. Type denotes a fully qualified classname.
Parameters:
controllerType - Type of associated controller.

setControllerUrl

public void setControllerUrl(String controller)
Set associated controller name as an url, and controller type as "url". Name must be an url (not checked). Convenience method.
Parameters:
controller - Controller url

setPage

public void setPage(String page)
Set the page.
Parameters:
page - Page.

setRole

public void setRole(String role)
Set associated role.
Parameters:
role - Associated role.

setTemplate

public void setTemplate(String template)
Set the template. Same as setPage().
Parameters:
template - Template.

Copyright B) 2000-2007 - The Apache Software Foundation