public class ComponentRenderInfo extends RenderInfo
RenderInfo
that can render components.Modifier and Type | Class and Description |
---|---|
static class |
ComponentRenderInfo.Builder |
CLIP_CHILDREN
Modifier and Type | Method and Description |
---|---|
static ComponentRenderInfo.Builder |
create() |
static RenderInfo |
createEmpty()
Create empty
ComponentRenderInfo . |
Component |
getComponent() |
String |
getName() |
boolean |
rendersComponent() |
addDebugInfo, getCustomAttribute, getDebugInfo, getSpanSize, getViewBinder, getViewCreator, getViewType, hasCustomViewType, isFullSpan, isSticky, rendersView
public static ComponentRenderInfo.Builder create()
public static RenderInfo createEmpty()
ComponentRenderInfo
.public Component getComponent()
getComponent
in class RenderInfo
Component
if RenderInfo
was created through create()
, otherwise it will throw UnsupportedOperationException
. If this method is accessed from RenderInfo
type,
RenderInfo.rendersComponent()
should be queried first before accessing.public boolean rendersComponent()
rendersComponent
in class RenderInfo
RenderInfo
was created through create()
,
or false otherwise. This should be queried before accessing RenderInfo.getComponent()
from
RenderInfo
type.public String getName()
getName
in class RenderInfo