public final class Wrapper extends SpecGeneratedComponent
Component. This is useful for adding further
CommonProps to an already created component.| Modifier and Type | Class and Description |
|---|---|
static class |
Wrapper.Builder |
SpecGeneratedComponent.TransitionContainerComponent.ContainerBuilder<T extends Component.ContainerBuilder<T>>, Component.MountType, Component.RenderData| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canResolve()
Indicate that this component implements its own
#resolve(LayoutStateContext,
ComponentContext) logic instead of going through #render(ComponentContext). |
static Wrapper.Builder |
create(ComponentContext context) |
static Wrapper.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
protected Component |
getSimpleNameDelegate() |
boolean |
isEquivalentProps(Component other,
boolean shouldCompareCommonProps)
Determine if this component has equivalent props to a given component.
|
protected Component |
onCreateLayout(ComponentContext c)
Generate a tree of
ComponentLayout representing the layout structure of the Component and its sub-components. |
protected LithoNode |
resolve(RenderStateContext renderStateContext,
ComponentContext c)
Resolves the
ComponentLayout for the given Component. |
acceptTriggerEvent, acceptTriggerEventImpl, applyPreviousRenderData, bindDynamicProp, canPreallocate, copyInterStageImpl, copyPrepareInterStageImpl, createContent, createInitialState, createInterStagePropsContainer, createPoolableContent, createPrepareInterStagePropsContainer, createRecyclingPool, createStateContainer, dispatchOnEnteredRange, dispatchOnExitedRange, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getInterStagePropsContainer, getPoolableContentType, getPrepareInterStagePropsContainer, getSimpleName, getTreePropsForChildren, hasAttachDetachCallback, hasOwnErrorHandler, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isRecyclingDisabled, needsPreviousRenderData, onAttached, onBind, onBoundsDefined, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onDetached, onError, onMeasure, onMeasureBaseline, onMount, onPrepare, onUnbind, onUnmount, poolSize, populateTreeProps, prepare, recordEventTrigger, recordRenderData, render, shouldAlwaysRemeasure, usesLocalStateContainercanMeasure, clone, createMountContent, dispatchErrorEvent, dispatchOnEvent, dispatchOnEventImpl, equals, excludeFromIncrementalMount, getCommonProps, getDynamicProps, getErrorHandler, getEventDispatcher, getEventTrigger, getEventTrigger, getHandle, getMountType, getTreePropFromParent, getTypeId, hasChildLithoViews, hasClickHandlerSet, hashCode, implementsShouldUpdate, isEqualivalentTreeProps, isEquivalentCommonProps, isEquivalentTo, isEquivalentTo, isLayoutSpecWithSizeSpec, isPureRender, isPureRender, makeShallowCopy, measure, measure, measureMightNotCacheInternalNode, newEventHandler, newEventTrigger, newEventTrigger, onCreateMountContent, onCreateTransition, onLoadStyle, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, registerWorkingRange, retrieveValue, shouldUpdate, toString, transferState, willRenderprotected boolean canResolve()
Component#resolve(LayoutStateContext,
ComponentContext) logic instead of going through #render(ComponentContext).public static Wrapper.Builder create(ComponentContext context)
public static Wrapper.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)
protected Component onCreateLayout(ComponentContext c)
SpecGeneratedComponentComponentLayout representing the layout structure of the Component and its sub-components.onCreateLayout in class SpecGeneratedComponentc - The ComponentContext to build a ComponentLayout tree.protected LithoNode resolve(RenderStateContext renderStateContext, ComponentContext c)
ComponentComponentLayout for the given Component.public boolean isEquivalentProps(Component other, boolean shouldCompareCommonProps)
ComponentisEquivalentProps in class Componentother - the component to compare toprotected Component getSimpleNameDelegate()
getSimpleNameDelegate in class SpecGeneratedComponentLayoutSpec#simpleNameDelegate()