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, rendersComponent
public static ViewRenderInfo.Builder create()
public boolean rendersView()
rendersView
in interface RenderInfo
rendersView
in class BaseRenderInfo
RenderInfo
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 RenderInfo
getViewBinder
in class BaseRenderInfo
ViewBinder
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 RenderInfo
getViewCreator
in class BaseRenderInfo
ViewCreator
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 RenderInfo
hasCustomViewType
in class BaseRenderInfo
RenderInfo
and it was created
through create()
, or false otherwise.public void setViewType(int viewType)
BaseRenderInfo
RenderInfo
if it was created through create()
and a custom viewType was not set, or otherwise it will throw UnsupportedOperationException
.setViewType
in interface RenderInfo
setViewType
in class BaseRenderInfo
public int getViewType()
getViewType
in interface RenderInfo
getViewType
in class BaseRenderInfo
RenderInfo
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()