to.etc.domui.component.input
Class SimpleLookupInputRenderer<T>

java.lang.Object
  extended by to.etc.domui.component.input.SimpleLookupInputRenderer<T>
All Implemented Interfaces:
INodeContentRenderer<T>

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

This renderer represents default renderer that is used for LookupInput control. It can be additionaly customized (before and after custom content) by setting provided ICustomContentFactory fields. See SimpleLookupInputRenderer#setBeforeContent and SimpleLookupInputRenderer#setAfterContent. Custom added content would be enveloped into separate row(s).

Author:
Vladimir Mijic Created on Feb 10, 2010

Constructor Summary
SimpleLookupInputRenderer()
           
 
Method Summary
 INodeContentRenderer<T> getAfterRenderer()
          Enables appending of custom content that would be enveloped into additionaly added row after the actual data.
 INodeContentRenderer<T> getBeforeRenderer()
          Enables inserting of custom content that would be enveloped into additionaly added row that is inserted before rows that are part of builtin content.
 void renderNodeContent(NodeBase component, NodeContainer node, T object, java.lang.Object parameters)
          Render the content for a node.
 void setAfterRenderer(INodeContentRenderer<T> afterContent)
          Enables appending of custom content that would be enveloped into additionaly added row after the actual data.
 void setBeforeRenderer(INodeContentRenderer<T> beforeContent)
          Enables inserting of custom content that would be enveloped into additionaly added row that is inserted before rows that are part of builtin content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLookupInputRenderer

public SimpleLookupInputRenderer()
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

getBeforeRenderer

public INodeContentRenderer<T> getBeforeRenderer()
Enables inserting of custom content that would be enveloped into additionaly added row that is inserted before rows that are part of builtin content.


setBeforeRenderer

public void setBeforeRenderer(INodeContentRenderer<T> beforeContent)
Enables inserting of custom content that would be enveloped into additionaly added row that is inserted before rows that are part of builtin content.

Parameters:
afterContent -

getAfterRenderer

public INodeContentRenderer<T> getAfterRenderer()
Enables appending of custom content that would be enveloped into additionaly added row after the actual data.


setAfterRenderer

public void setAfterRenderer(INodeContentRenderer<T> afterContent)
Enables appending of custom content that would be enveloped into additionaly added row after the actual data.

Parameters:
afterContent -