|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer<A>
public class PrefixSuffixRenderer<A extends Action>
A wrapping renderer for HTML output that can wrap the HTML generated by a parent renderer with a prefix and/or suffix.
Field Summary | |
---|---|
private JspContext |
context
|
private Renderer<? super A> |
parent
|
private String |
prefix
|
private String |
suffix
|
Constructor Summary | |
---|---|
PrefixSuffixRenderer(JspContext context,
Renderer<? super A> parent,
String prefix,
String suffix)
Create a prefix/suffix renderer with an initial parent. |
|
PrefixSuffixRenderer(JspContext context,
String prefix,
String suffix)
Create a prefix/suffix renderer that has no initial parent. |
Method Summary | |
---|---|
Renderer<? super A> |
getParent()
Get the current parent renderer. |
void |
render(A action)
Render the action in the client application. |
void |
setParent(Renderer<? super A> parent)
Set a parent renderer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private JspContext context
private Renderer<? super A extends Action> parent
private String prefix
private String suffix
Constructor Detail |
---|
public PrefixSuffixRenderer(JspContext context, String prefix, String suffix)
context
- The jsp contextprefix
- Optional prefix stringsuffix
- Optional suffix stringpublic PrefixSuffixRenderer(JspContext context, Renderer<? super A> parent, String prefix, String suffix)
context
- The jsp contextparent
- The initial parent rendererprefix
- Optional prefix stringsuffix
- Optional suffix stringMethod Detail |
---|
public void render(A action)
Renderer
render
in interface Renderer<A extends Action>
action
- The action to renderpublic Renderer<? super A> getParent()
WrappingRenderer
getParent
in interface WrappingRenderer<A extends Action>
public void setParent(Renderer<? super A> parent)
WrappingRenderer
setParent
in interface WrappingRenderer<A extends Action>
parent
- The parent renderer that should be
wrapped by this renderer
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |