|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.gui.controlx.impl.TemplatedRenderer
public class TemplatedRenderer
Used the classname by default to get the template to render.
Constructor Summary | |
---|---|
TemplatedRenderer()
Uses the controls class name to construct the template name |
|
TemplatedRenderer(java.lang.String templateName)
|
Method Summary | |
---|---|
java.lang.String |
getMessage(java.lang.String key)
Get the message from the renderer. |
info.magnolia.cms.i18n.Messages |
getMessages()
Get the messages used for the rendering. |
java.lang.String |
getTemplateName()
|
protected java.lang.String |
getTemplateName(Control control)
|
java.lang.String |
render(Control control)
Render the using the template. |
void |
setTemplateName(java.lang.String templateName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplatedRenderer()
public TemplatedRenderer(java.lang.String templateName)
templateName
- Method Detail |
---|
public java.lang.String render(Control control)
render
in interface Renderer
public java.lang.String getMessage(java.lang.String key)
key
-
public info.magnolia.cms.i18n.Messages getMessages()
protected java.lang.String getTemplateName(Control control)
public java.lang.String getTemplateName()
public void setTemplateName(java.lang.String templateName)
templateName
- The templateName to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |