public final class Wrapper extends Component
Component
. This is useful for adding further
CommonPropsHolder
to an already created component.Modifier and Type | Class and Description |
---|---|
static class |
Wrapper.Builder |
Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.StateContainer, ComponentLifecycle.StateUpdate
Modifier and Type | Method and Description |
---|---|
static Wrapper.Builder |
create(ComponentContext context) |
static Wrapper.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
String |
getSimpleName()
Mostly used by logging to provide more readable messages.
|
boolean |
isEquivalentTo(Component other)
Compares this component to a different one to check if they are the same
This is used to be able to skip rendering a component again.
|
protected Component |
onCreateLayout(ComponentContext c)
Generate a tree of
ComponentLayout representing the layout structure of the Component and its sub-components. |
protected ComponentLayout |
resolve(ComponentContext c)
Resolves the
ComponentLayout for the given Component . |
clearCachedLayout, copyInterStageImpl, getEventDispatcher, getId, getScopedContext, getStateContainer, makeShallowCopy, measure, recordEventTrigger, releaseCachedLayout, setScopedContext, updateInternalChildState, willRender
acceptTriggerEvent, acquireDiff, acquireOutput, applyPreviousRenderData, callsShouldUpdateOnMount, canMeasure, canMountIncrementally, canPreallocate, createInitialState, createMountContent, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEvent, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getMountType, getTreePropsForChildren, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventHandler, newEventTrigger, onBind, onBoundsDefined, onCreateLayoutWithSizeSpec, onCreateMountContent, onCreateMountContentPool, onCreateTransition, onError, onLoadStyle, onMeasure, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onUnbind, onUnmount, poolSize, populateTreeProps, recordRenderData, releaseDiff, releaseOutput, shouldUpdate, shouldUseDisplayList, transferState
public String getSimpleName()
Component
getSimpleName
in class Component
public static Wrapper.Builder create(ComponentContext context)
public static Wrapper.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)
protected Component onCreateLayout(ComponentContext c)
ComponentLifecycle
ComponentLayout
representing the layout structure of the Component
and its sub-components. You should use ComponentContext.newLayoutBuilder(int, int)
to
build the layout tree.onCreateLayout
in class ComponentLifecycle
c
- The ComponentContext
to build a ComponentLayout
tree.protected ComponentLayout resolve(ComponentContext c)
ComponentLifecycle
ComponentLayout
for the given Component
.resolve
in class ComponentLifecycle
public boolean isEquivalentTo(Component other)
Component
Object.equals(Object)
so we can optimize the code better over time since we don't have
to adhere to the contract required for a equals method.isEquivalentTo
in class Component
other
- the component to compare to