public interface TilesContainer
Modifier and Type | Method and Description |
---|---|
void |
endContext(Object... requestItems)
Ends a context, where attribute values are stored independently
from others.
It must be called after a startContext(Object...) call. |
Object |
evaluate(Attribute attribute,
Object... requestItems)
Evaluates the given attribute.
|
TilesApplicationContext |
getApplicationContext()
Retrieve the containers context.
|
AttributeContext |
getAttributeContext(Object... requestItems)
Retrive the attribute context of the current request.
|
void |
init(Map<String,String> initParameters)
Initialize the container with the given
configuration.
|
boolean |
isValidDefinition(String definition,
Object... requestItems)
Determine whether or not the definition exists.
|
void |
prepare(String preparer,
Object... requestItems)
Executes a preparer.
|
void |
render(Attribute attribute,
Object... requestItems)
Render the given Attribute.
|
void |
render(Attribute attribute,
Writer writer,
Object... requestItems)
Deprecated.
|
void |
render(String definition,
Object... requestItems)
Render the given tiles request.
|
void |
renderContext(Object... requestItems)
Renders the current context, as it is.
|
AttributeContext |
startContext(Object... requestItems)
Starts a new context, where attribute values are stored independently
from others.
When the use of the contexts is finished, call endContext(Object...) |
void init(Map<String,String> initParameters)
initParameters
- application contextTilesApplicationContext getApplicationContext()
AttributeContext getAttributeContext(Object... requestItems)
requestItems
- the current request objects.AttributeContext startContext(Object... requestItems)
endContext(Object...)
requestItems
- the current request objects.void endContext(Object... requestItems)
startContext(Object...)
call.requestItems
- the current request objects.void renderContext(Object... requestItems)
requestItems
- the current request objects.void prepare(String preparer, Object... requestItems)
preparer
- The name of the preparer to execute.requestItems
- the current request objects.void render(String definition, Object... requestItems)
definition
- the current definition.requestItems
- the current request objects.@Deprecated void render(Attribute attribute, Writer writer, Object... requestItems) throws IOException
render(Attribute, Object...)
.attribute
- The attribute to render.writer
- A writer. IT WON'T BE EVALUATED!!!requestItems
- the current request objects.IOException
- If something goes wrong during writing to the output.void render(Attribute attribute, Object... requestItems) throws IOException
attribute
- The attribute to render.requestItems
- the current request objects.IOException
- If something goes wrong during writing to the output.Object evaluate(Attribute attribute, Object... requestItems)
attribute
- The attribute to evaluate.requestItems
- the current request objects.Copyright © 2017. All rights reserved.