public class TemplateRenderContext extends Object
| Constructor and Description |
|---|
TemplateRenderContext(juzu.impl.template.spi.TemplateStub stub) |
TemplateRenderContext(juzu.impl.template.spi.TemplateStub stub,
Locale locale) |
TemplateRenderContext(juzu.impl.template.spi.TemplateStub stub,
Map<String,Object> attributes) |
TemplateRenderContext(juzu.impl.template.spi.TemplateStub stub,
PropertyMap properties,
Map<String,Object> attributes,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Map<String,?> |
getAttributes() |
Locale |
getLocale() |
Stream |
getPrinter() |
StringBuilder |
render() |
void |
render(Stream printer) |
void |
renderTag(String name,
Renderable body,
Map<String,String> parameters)
Renders a tag.
|
Object |
resolveBean(String expression) |
String |
resolveMessage(juzu.impl.template.spi.juzu.dialect.gtmpl.MessageKey key) |
juzu.impl.template.spi.TemplateStub |
resolveTemplate(String path) |
Object |
setAttribute(String name,
Object value) |
void |
setTitle(String title) |
public TemplateRenderContext(juzu.impl.template.spi.TemplateStub stub)
public TemplateRenderContext(juzu.impl.template.spi.TemplateStub stub,
Map<String,Object> attributes)
public TemplateRenderContext(juzu.impl.template.spi.TemplateStub stub,
Locale locale)
public TemplateRenderContext(juzu.impl.template.spi.TemplateStub stub,
PropertyMap properties,
Map<String,Object> attributes,
Locale locale)
public void renderTag(String name, Renderable body, Map<String,String> parameters) throws IOException
name - the tag namebody - the tag bodyparameters - the tag paremetersIOExceptionpublic Locale getLocale()
public Stream getPrinter()
public void setTitle(String title)
public juzu.impl.template.spi.TemplateStub resolveTemplate(String path)
public Object resolveBean(String expression) throws InvocationTargetException
InvocationTargetExceptionpublic String resolveMessage(juzu.impl.template.spi.juzu.dialect.gtmpl.MessageKey key)
public StringBuilder render() throws IOException
IOExceptionpublic void render(Stream printer) throws IOException
IOExceptionCopyright © 2017 eXo Platform SAS. All rights reserved.