public class LookupInputPropertyRenderer<T> extends Object implements INodeContentRenderer<T>
SimpleLookupInputRenderer which can define the fields to show explicitly,
instead of using metadata only.
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 LookupInputPropertyRenderer#setBeforeContent and LookupInputPropertyRenderer#setAfterContent.
Custom added content would be enveloped into separate row(s).
| Constructor and Description |
|---|
LookupInputPropertyRenderer(Class<T> clz,
String... colset) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getActualClass() |
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.
|
String[] |
getPropertyNames() |
void |
renderNodeContent(NodeBase component,
NodeContainer node,
T object,
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.
|
public void renderNodeContent(@Nonnull NodeBase component, @Nonnull NodeContainer node, @Nullable T object, @Nullable Object parameters) throws Exception
INodeContentRendererrenderNodeContent in interface INodeContentRenderer<T>object - The nullable item we're rendering.Exceptionpublic INodeContentRenderer<T> getBeforeRenderer()
public void setBeforeRenderer(INodeContentRenderer<T> beforeContent)
afterContent - public INodeContentRenderer<T> getAfterRenderer()
public void setAfterRenderer(INodeContentRenderer<T> afterContent)
afterContent - Copyright © 2017 etc.to. All rights reserved.