org.mmbase.framework
Enum Renderer.Type

java.lang.Object
  extended by java.lang.Enum<Renderer.Type>
      extended by org.mmbase.framework.Renderer.Type
All Implemented Interfaces:
Serializable, Comparable<Renderer.Type>
Enclosing interface:
Renderer

public static enum Renderer.Type
extends Enum<Renderer.Type>


Enum Constant Summary
BODY
          A body typed renderer renders the actual content of a block.
HEAD
          Rendering for 'HEAD' typically happens in the <head> block of HTML, and can e.g.
NOT
          Not yet rendering
 
Method Summary
 Renderer getEmpty(Block block)
          Returns a renderer that does nothing.
static Renderer.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Renderer.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOT

public static final Renderer.Type NOT
Not yet rendering


HEAD

public static final Renderer.Type HEAD
Rendering for 'HEAD' typically happens in the <head> block of HTML, and can e.g. produce links to javascript.


BODY

public static final Renderer.Type BODY
A body typed renderer renders the actual content of a block. It should produce, at least for text/html, a <div> with class 'mm_c c_<name of component> b_< name of block>

Method Detail

values

public static Renderer.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Renderer.Type c : Renderer.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Renderer.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getEmpty

public Renderer getEmpty(Block block)
Returns a renderer that does nothing.



MMBase 2.0-SNAPSHOT - null