public class ViewRenderInfo extends BaseRenderInfo
RenderInfo that can render views.| Modifier and Type | Class and Description |
|---|---|
static class |
ViewRenderInfo.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ViewRenderInfo.Builder |
create() |
String |
getName() |
ViewBinder |
getViewBinder() |
ViewCreator |
getViewCreator() |
int |
getViewType() |
boolean |
hasCustomViewType() |
boolean |
rendersView() |
void |
setViewType(int viewType)
Set viewType of current
RenderInfo if it was created through create() and a custom viewType was not set, or otherwise it will throw UnsupportedOperationException. |
addCustomAttribute, addDebugInfo, getComponent, getComponentsLogger, getCustomAttribute, getDebugInfo, getLogTag, getRenderCompleteEventHandler, getSpanSize, isFullSpan, isSticky, rendersComponentpublic static ViewRenderInfo.Builder create()
public boolean rendersView()
rendersView in interface RenderInforendersView in class BaseRenderInfoRenderInfo was created through create(), or
false otherwise. This should be queried before accessing view related methods, such as
BaseRenderInfo.getViewBinder(), BaseRenderInfo.getViewCreator(), BaseRenderInfo.getViewType() and BaseRenderInfo.setViewType(int) from RenderInfo type.public ViewBinder getViewBinder()
getViewBinder in interface RenderInfogetViewBinder in class BaseRenderInfoViewBinder if RenderInfo was created through create(), or otherwise it will throw UnsupportedOperationException.
If this method is accessed from RenderInfo type, BaseRenderInfo.rendersView() should be
queried first before accessing.public ViewCreator getViewCreator()
getViewCreator in interface RenderInfogetViewCreator in class BaseRenderInfoViewCreator if RenderInfo was created through create(), or otherwise it will throw UnsupportedOperationException.
If this method is accessed from RenderInfo type, BaseRenderInfo.rendersView() should be
queried first before accessing.public boolean hasCustomViewType()
hasCustomViewType in interface RenderInfohasCustomViewType in class BaseRenderInfoRenderInfo and it was created
through create(), or false otherwise.public void setViewType(int viewType)
BaseRenderInfoRenderInfo if it was created through create() and a custom viewType was not set, or otherwise it will throw UnsupportedOperationException.setViewType in interface RenderInfosetViewType in class BaseRenderInfopublic int getViewType()
getViewType in interface RenderInfogetViewType in class BaseRenderInfoRenderInfo if it was created through create() or otherwise it will throw UnsupportedOperationException.
If this method is accessed from RenderInfo type, BaseRenderInfo.rendersView() should be
queried first before accessing.public String getName()