public abstract class AbstractRenderer extends Object implements Renderer
Renderer.Type| Modifier and Type | Field and Description |
|---|---|
protected Renderer.Type |
type |
| Constructor and Description |
|---|
AbstractRenderer(Renderer.Type t,
Block p) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decorateIntro(RenderHints hints,
Writer w,
String extraClass)
This utility method, which of course must be used in conjuction with
decorateOutro(org.mmbase.framework.RenderHints, java.io.Writer)
can be used in concretizations of this class, for easy production of the div which is
requested by the contract of a (Renderer.Type.BODY) renderer for text/html. |
protected void |
decorateOutro(RenderHints hints,
Writer w) |
Block |
getBlock()
Every renderer renders for a certain block.
|
Parameter[] |
getParameters()
A renderer may need certain parameters.
|
Renderer.Type |
getType()
Describes what kind of renderer this is
|
URI |
getUri()
An URI which may identify the implementation of this Renderer.
|
URI |
getUri(Parameters blockParameters,
RenderHints hints)
Ann URL which may identify a specific rendition
|
abstract void |
render(Parameters blockParameters,
Writer w,
RenderHints hints)
Renders to a writer.
|
protected final Renderer.Type type
public AbstractRenderer(Renderer.Type t, Block p)
public Renderer.Type getType()
Rendererpublic Block getBlock()
Rendererpublic URI getUri()
Rendererpublic URI getUri(Parameters blockParameters, RenderHints hints)
Rendererprotected void decorateIntro(RenderHints hints, Writer w, String extraClass) throws IOException
decorateOutro(org.mmbase.framework.RenderHints, java.io.Writer)
can be used in concretizations of this class, for easy production of the div which is
requested by the contract of a (Renderer.Type.BODY) renderer for text/html.IOExceptionprotected void decorateOutro(RenderHints hints, Writer w) throws IOException
IOExceptionpublic Parameter[] getParameters()
RenderergetParameters in interface Rendererpublic abstract void render(Parameters blockParameters, Writer w, RenderHints hints) throws FrameworkException
Rendererrender in interface RendererFrameworkExceptionMMBase 1.9-SNAPSHOT - ${javadoctimestamp}