public abstract class RenderInfo extends Object
SpanSize will be defaulted to 1. It is the information that is required to calculate how much of the SpanCount the component should occupy in a Grid layout.
IsSticky will be defaulted to false. It determines if the component should be a sticky header or not
IsFullSpan will be defaulted to false. It is the information that determines if the component should occupy all of the SpanCount in a StaggeredGrid layout.
Modifier and Type | Class and Description |
---|---|
static class |
RenderInfo.Builder<T> |
Modifier and Type | Field and Description |
---|---|
static String |
CLIP_CHILDREN |
Modifier and Type | Method and Description |
---|---|
void |
addDebugInfo(String key,
Object value) |
Component |
getComponent() |
Object |
getCustomAttribute(String key) |
Object |
getDebugInfo(String key) |
abstract String |
getName() |
int |
getSpanSize() |
ViewBinder |
getViewBinder() |
ViewCreator |
getViewCreator() |
int |
getViewType() |
boolean |
hasCustomViewType() |
boolean |
isFullSpan() |
boolean |
isSticky() |
boolean |
rendersComponent() |
boolean |
rendersView() |
public static final String CLIP_CHILDREN
public boolean isSticky()
public int getSpanSize()
public boolean isFullSpan()
public boolean rendersComponent()
RenderInfo
was created through ComponentRenderInfo.create()
,
or false otherwise. This should be queried before accessing getComponent()
from
RenderInfo
type.public Component getComponent()
Component
if RenderInfo
was created through ComponentRenderInfo.create()
, otherwise it will throw UnsupportedOperationException
. If this method is accessed from RenderInfo
type,
rendersComponent()
should be queried first before accessing.public boolean rendersView()
RenderInfo
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()
ViewBinder
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()
ViewCreator
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()
RenderInfo
and it was created
through ViewRenderInfo.create()
, or false otherwise.public int getViewType()
RenderInfo
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 abstract String getName()