|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tiles.TilesContainerWrapper
public class TilesContainerWrapper
Wraps a Tiles container to allow easy decoration.
| Field Summary | |
|---|---|
protected TilesContainer |
container
The container to wrap. |
| Constructor Summary | |
|---|---|
TilesContainerWrapper(TilesContainer container)
Constructor. |
|
| Method Summary | |
|---|---|
void |
endContext(org.apache.tiles.request.Request request)
Ends a context, where attribute values are stored independently from others. It must be called after a TilesContainer.startContext(Request) call. |
Object |
evaluate(Attribute attribute,
org.apache.tiles.request.Request request)
Evaluates the given attribute. |
org.apache.tiles.request.ApplicationContext |
getApplicationContext()
Retrieve the containers context. |
AttributeContext |
getAttributeContext(org.apache.tiles.request.Request request)
Retrive the attribute context of the current request. |
Definition |
getDefinition(String definitionName,
org.apache.tiles.request.Request request)
Returns a definition specifying its name. |
TilesContainer |
getWrappedContainer()
Returns the wrapped container. |
boolean |
isValidDefinition(String definition,
org.apache.tiles.request.Request request)
Determine whether or not the definition exists. |
void |
prepare(String preparer,
org.apache.tiles.request.Request request)
Executes a preparer. |
void |
render(Attribute attribute,
org.apache.tiles.request.Request request)
Render the given Attribute. |
void |
render(Definition definition,
org.apache.tiles.request.Request request)
Renders the specified definition. |
void |
render(String definition,
org.apache.tiles.request.Request request)
Render the given tiles request. |
void |
renderContext(org.apache.tiles.request.Request request)
Renders the current context, as it is. |
AttributeContext |
startContext(org.apache.tiles.request.Request request)
Starts a new context, where attribute values are stored independently from others. When the use of the contexts is finished, call TilesContainer.endContext(Request) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TilesContainer container
| Constructor Detail |
|---|
public TilesContainerWrapper(TilesContainer container)
container - The container to wrap.| Method Detail |
|---|
public TilesContainer getWrappedContainer()
public void endContext(org.apache.tiles.request.Request request)
TilesContainerTilesContainer.startContext(Request) call.
endContext in interface TilesContainerrequest - The request.
public Object evaluate(Attribute attribute,
org.apache.tiles.request.Request request)
TilesContainer
evaluate in interface TilesContainerattribute - The attribute to evaluate.request - The request.
public org.apache.tiles.request.ApplicationContext getApplicationContext()
TilesContainer
getApplicationContext in interface TilesContainerpublic AttributeContext getAttributeContext(org.apache.tiles.request.Request request)
TilesContainer
getAttributeContext in interface TilesContainerrequest - The request.
public Definition getDefinition(String definitionName,
org.apache.tiles.request.Request request)
TilesContainer
getDefinition in interface TilesContainerdefinitionName - The name of the definition to find.request - The request context.
public boolean isValidDefinition(String definition,
org.apache.tiles.request.Request request)
TilesContainer
isValidDefinition in interface TilesContainerdefinition - the name of the definition.request - The request.
public void prepare(String preparer,
org.apache.tiles.request.Request request)
TilesContainer
prepare in interface TilesContainerpreparer - The name of the preparer to execute.request - The request.
public void render(String definition,
org.apache.tiles.request.Request request)
TilesContainer
render in interface TilesContainerdefinition - the current definition.request - The request.
public void render(Definition definition,
org.apache.tiles.request.Request request)
TilesContainer
render in interface TilesContainerdefinition - The definition to render.request - The request context.
public void render(Attribute attribute,
org.apache.tiles.request.Request request)
throws IOException
TilesContainer
render in interface TilesContainerattribute - The attribute to render.request - The request.
IOException - If something goes wrong during writing to the output.public void renderContext(org.apache.tiles.request.Request request)
TilesContainer
renderContext in interface TilesContainerrequest - The request.public AttributeContext startContext(org.apache.tiles.request.Request request)
TilesContainerTilesContainer.endContext(Request)
startContext in interface TilesContainerrequest - The request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||