public class Block extends Object
Component. A typical block configuration - this one is the
'applications' block (the former 'Applications' admin page) which is one of the
core components - looks like this:
<block name="applications" classification="mmbase.admin" mimetype="text/html">
<title xml:lang="en">Applications</title>
<title xml:lang="nl">Applicaties</title>
<description xml:lang="en">Shows an overview of all MMBase apps1 applications</description>
<body jsp="applications.jspx">
<param name="application" type="String" />
</body>
</block>
Renderers, of which one can be obtained using getRenderer(org.mmbase.framework.Renderer.Type).| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
Block.BlockContainer
A wrapper class for a certain block in a type, which defined its weighted place in between
it's child block of the same type.
|
static class |
Block.Type
Every block can be assigned a hierarchal 'Type', which can classify it.
|
| Modifier and Type | Field and Description |
|---|---|
protected Parameter[] |
paramDefinition |
protected Parameter[] |
specific |
| Constructor and Description |
|---|
Block(String name,
String mimetype,
Component parent,
String cla) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addParameters(Parameter... params) |
Parameters |
createParameters()
Before rendering, it may have to be fed with certain parameters.
|
Block.Type[] |
getClassification()
Returns the 'classification' of this block.
|
Block.Type[] |
getClassification(String filter) |
Component |
getComponent() |
LocalizedString |
getDescription()
Description for this block.
|
String |
getMimeType()
Mimetype for this block.
|
String |
getName()
Name for this block.
|
Processor |
getProcessor() |
Renderer |
getRenderer(Renderer.Type type) |
(package private) Map<Renderer.Type,Renderer> |
getRenderers()
All renderers assiociated with this Block.
|
LocalizedString |
getTitle()
A localized title for this block.
|
(package private) Renderer |
putRenderer(Renderer.Type type,
Renderer renderer) |
(package private) Processor |
setProcessor(Processor p) |
String |
toString() |
protected Parameter[] specific
protected Parameter[] paramDefinition
public String getName()
null. The name identifies the block uniquely (between
the blocks of its component).public LocalizedString getTitle()
public String getMimeType()
public Block.Type[] getClassification()
public Block.Type[] getClassification(String filter)
public LocalizedString getDescription()
nullMap<Renderer.Type,Renderer> getRenderers()
#getRenderer(Renderer.Type).public Renderer getRenderer(Renderer.Type type)
nullpublic Processor getProcessor()
nullvoid addParameters(Parameter... params)
public Parameters createParameters()
Renderer.render(org.mmbase.util.functions.Parameters, java.io.Writer, org.mmbase.framework.RenderHints).public Component getComponent()
Renderer putRenderer(Renderer.Type type, Renderer renderer)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}