|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.framework.Block
public class Block
A Block is a representation of a page within a component. It has two renderers,
'head' and 'body', and a processor.
Blocks can be configured in a 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).
| Nested Class Summary | |
|---|---|
(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. |
| Field Summary | |
|---|---|
protected Parameter[] |
paramDefinition
|
protected Parameter[] |
specific
|
| Constructor Summary | |
|---|---|
Block(String name,
String mimetype,
Component parent,
String cla)
|
|
| Method Summary | |
|---|---|
(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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Parameter[] specific
protected Parameter[] paramDefinition
| Constructor Detail |
|---|
public Block(String name,
String mimetype,
Component parent,
String cla)
| Method Detail |
|---|
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()
null
Map<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()
public String toString()
toString in class ObjectProcessor setProcessor(Processor p)
Renderer putRenderer(Renderer.Type type,
Renderer renderer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||