public abstract class SpecGeneratedComponent extends Component
Component.Builder<T extends Component.Builder<T>>, Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>, Component.MountType, Component.RenderData, Component.TransitionContainer
Modifier | Constructor and Description |
---|---|
protected |
SpecGeneratedComponent(int identityHashCode,
java.lang.String simpleName) |
protected |
SpecGeneratedComponent(java.lang.String simpleName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSimpleName()
Should only be used by logging to provide more readable messages.
|
protected Component |
getSimpleNameDelegate() |
protected Component |
onCreateLayout(ComponentContext c)
Generate a tree of
ComponentLayout representing the layout structure of the Component and its sub-components. |
protected Component |
onCreateLayoutWithSizeSpec(ComponentContext c,
int widthSpec,
int heightSpec) |
protected RenderResult |
render(ComponentContext c,
int widthSpec,
int heightSpec)
Invokes the Component-specific render implementation, returning a RenderResult.
|
protected boolean |
usesLocalStateContainer() |
acceptTriggerEvent, acceptTriggerEventImpl, applyPreviousRenderData, bindDynamicProp, canMeasure, canPreallocate, clone, copyInterStageImpl, copyPrepareInterStageImpl, createInitialState, createInterStagePropsContainer, createMountContent, createPoolableContent, createPrepareInterStagePropsContainer, createRecyclingPool, createStateContainer, dispatchErrorEvent, dispatchOnEnteredRange, dispatchOnEvent, dispatchOnEventImpl, dispatchOnExitedRange, equals, getCommonProps, getDynamicProps, getErrorHandler, getEventDispatcher, getEventTrigger, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getHandle, getInterStagePropsContainer, getMountType, getPoolableContentType, getPrepareInterStagePropsContainer, getTreePropFromParent, getTreePropsForChildren, getTypeId, hasAttachDetachCallback, hasChildLithoViews, hasClickHandlerSet, hashCode, hasOwnErrorHandler, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, implementsShouldUpdate, isEqualivalentTreeProps, isEquivalentCommonProps, isEquivalentProps, isEquivalentTo, isEquivalentTo, isMountSizeDependent, isPureRender, isPureRender, isRecyclingDisabled, makeShallowCopy, measure, measure, measureMightNotCacheInternalNode, needsPreviousRenderData, newEventHandler, newEventTrigger, newEventTrigger, onAttached, onBind, onBoundsDefined, onCreateMountContent, onCreateMountContentPool, onCreateTransition, onDetached, onError, onLoadStyle, onMeasure, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onUnbind, onUnmount, poolSize, populateTreeProps, prepare, recordEventTrigger, recordRenderData, registerWorkingRange, resolve, retrieveValue, shouldAlwaysRemeasure, shouldUpdate, toString, transferState, willRender
protected SpecGeneratedComponent(java.lang.String simpleName)
protected SpecGeneratedComponent(int identityHashCode, java.lang.String simpleName)
public final java.lang.String getSimpleName()
getSimpleName
in class Component
protected Component getSimpleNameDelegate()
LayoutSpec#simpleNameDelegate()
protected RenderResult render(ComponentContext c, int widthSpec, int heightSpec)
Component
Component.resolve(LayoutStateContext, ComponentContext)
'ed), as well as other
metadata from that render call such as transitions that should be applied.protected Component onCreateLayout(ComponentContext c)
ComponentLayout
representing the layout structure of the Component
and its sub-components.c
- The ComponentContext
to build a ComponentLayout
tree.protected Component onCreateLayoutWithSizeSpec(ComponentContext c, int widthSpec, int heightSpec)
protected boolean usesLocalStateContainer()
usesLocalStateContainer
in class Component