to.etc.domui.util
Class PropertyNodeContentRenderer<T>

java.lang.Object
  extended by to.etc.domui.util.PropertyNodeContentRenderer<T>
All Implemented Interfaces:
INodeContentRenderer<T>

public class PropertyNodeContentRenderer<T>
extends java.lang.Object
implements INodeContentRenderer<T>

Renders the content for a node by looking up a property value of the specified class and rendering that one.

Author:
Frits Jalvingh Created on Dec 16, 2010

Constructor Summary
PropertyNodeContentRenderer(PropertyValueConverter<T> converter)
           
PropertyNodeContentRenderer(java.lang.String... properties)
           
 
Method Summary
 void renderNodeContent(NodeBase component, NodeContainer node, T object, java.lang.Object parameters)
          Render the content for a node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyNodeContentRenderer

public PropertyNodeContentRenderer(@Nonnull
                                   PropertyValueConverter<T> converter)

PropertyNodeContentRenderer

public PropertyNodeContentRenderer(java.lang.String... properties)
Method Detail

renderNodeContent

public void renderNodeContent(NodeBase component,
                              NodeContainer node,
                              T object,
                              java.lang.Object parameters)
                       throws java.lang.Exception
Description copied from interface: INodeContentRenderer
Render the content for a node.

Specified by:
renderNodeContent in interface INodeContentRenderer<T>
Throws:
java.lang.Exception