public class TreePropsWrappedRenderInfo extends Object implements RenderInfo
RenderInfo that also stores TreeProps used for rendering the component.| Constructor and Description |
|---|
TreePropsWrappedRenderInfo(RenderInfo renderInfo,
TreeProps treeProps) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomAttribute(String key,
Object value) |
void |
addDebugInfo(String key,
Object value) |
Component |
getComponent() |
ComponentsLogger |
getComponentsLogger() |
Object |
getCustomAttribute(String key) |
Object |
getDebugInfo(String key) |
String |
getLogTag() |
String |
getName() |
EventHandler<RenderCompleteEvent> |
getRenderCompleteEventHandler() |
int |
getSpanSize() |
TreeProps |
getTreeProps() |
ViewBinder |
getViewBinder() |
ViewCreator |
getViewCreator() |
int |
getViewType() |
boolean |
hasCustomViewType() |
boolean |
isFullSpan() |
boolean |
isSticky() |
boolean |
rendersComponent() |
boolean |
rendersView() |
void |
setViewType(int viewType)
Set viewType of current
RenderInfo if it was created through ViewRenderInfo.create() and a custom viewType was not set, or otherwise it will throw UnsupportedOperationException. |
public TreePropsWrappedRenderInfo(RenderInfo renderInfo, TreeProps treeProps)
public Component getComponent()
getComponent in interface RenderInfopublic EventHandler<RenderCompleteEvent> getRenderCompleteEventHandler()
getRenderCompleteEventHandler in interface RenderInfopublic boolean rendersComponent()
rendersComponent in interface RenderInfopublic ComponentsLogger getComponentsLogger()
getComponentsLogger in interface RenderInfopublic String getLogTag()
getLogTag in interface RenderInfopublic String getName()
getName in interface RenderInfopublic boolean isSticky()
isSticky in interface RenderInfopublic int getSpanSize()
getSpanSize in interface RenderInfopublic boolean isFullSpan()
isFullSpan in interface RenderInfopublic Object getCustomAttribute(String key)
getCustomAttribute in interface RenderInfopublic void addCustomAttribute(String key, Object value)
addCustomAttribute in interface RenderInfopublic boolean rendersView()
rendersView in interface RenderInfoRenderInfo was created through ViewRenderInfo.create(), or
false otherwise. This should be queried before accessing view related methods, such as
getViewBinder(), getViewCreator(), getViewType() and setViewType(int) from RenderInfo type.public ViewBinder getViewBinder()
getViewBinder in interface RenderInfoViewBinder if RenderInfo was created through ViewRenderInfo.create(), or otherwise it will throw UnsupportedOperationException.
If this method is accessed from RenderInfo type, rendersView() should be
queried first before accessing.public ViewCreator getViewCreator()
getViewCreator in interface RenderInfoViewCreator if RenderInfo was created through ViewRenderInfo.create(), or otherwise it will throw UnsupportedOperationException.
If this method is accessed from RenderInfo type, rendersView() should be
queried first before accessing.public boolean hasCustomViewType()
hasCustomViewType in interface RenderInfoRenderInfo and it was created
through ViewRenderInfo.create(), or false otherwise.public int getViewType()
getViewType in interface RenderInfoRenderInfo if it was created through ViewRenderInfo.create() or otherwise it will throw UnsupportedOperationException.
If this method is accessed from RenderInfo type, rendersView() should be
queried first before accessing.public void addDebugInfo(String key, Object value)
addDebugInfo in interface RenderInfopublic Object getDebugInfo(String key)
getDebugInfo in interface RenderInfopublic void setViewType(int viewType)
RenderInfo if it was created through ViewRenderInfo.create() and a custom viewType was not set, or otherwise it will throw UnsupportedOperationException.setViewType in interface RenderInfopublic TreeProps getTreeProps()