public final class Column extends Component
Component
that renders its children in a column.Modifier and Type | Class and Description |
---|---|
static class |
Column.Builder |
Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.TransitionContainer
Modifier and Type | Method and Description |
---|---|
protected boolean |
canResolve()
Indicate that this component implements its own
ComponentLifecycle.resolve(ComponentContext) logic
instead of going through ComponentLifecycle.createComponentLayout(ComponentContext) . |
static Column.Builder |
create(ComponentContext context) |
static Column.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
static Column.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes,
String simpleName) |
static Column.Builder |
create(ComponentContext context,
String simpleName) |
boolean |
isEquivalentTo(Component other)
Compares this component to a different one to check if they are the same
|
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 . |
bindDynamicProp, clearCachedLayout, copyInterStageImpl, getCommonProps, getDynamicProps, getEventDispatcher, getHandle, getId, getKey, getScopedContext, getSimpleName, getSimpleNameDelegate, getStateContainer, hasBackgroundSet, hasClickHandlerSet, makeShallowCopy, measure, measureMightNotCacheInternalNode, recordEventTrigger, registerWorkingRange, retrieveValue, setScopedContext, updateInternalChildState, willRender
acceptTriggerEvent, applyPreviousRenderData, callsShouldUpdateOnMount, canMeasure, canPreallocate, createInitialState, createMountContent, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEnteredRange, dispatchOnEvent, dispatchOnExitedRange, getEventTrigger, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getMountType, getTreePropsForChildren, hasAttachDetachCallback, hasChildLithoViews, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isLayoutSpecWithSizeSpecCheck, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventTrigger, onAttached, onBind, onBoundsDefined, onCreateLayoutWithSizeSpec, onCreateMountContent, onCreateMountContentPool, onCreateTransition, onDetached, onError, onLoadStyle, onMeasure, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onShouldCreateLayoutWithNewSizeSpec, onUnbind, onUnmount, poolSize, populateTreeProps, recordRenderData, shouldAlwaysRemeasure, shouldUpdate, shouldUseGlobalPool, transferState
protected boolean canResolve()
Component
ComponentLifecycle.resolve(ComponentContext)
logic
instead of going through ComponentLifecycle.createComponentLayout(ComponentContext)
.canResolve
in class Component
public static Column.Builder create(ComponentContext context)
public static Column.Builder create(ComponentContext context, String simpleName)
public static Column.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)
public static Column.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes, String simpleName)
protected Component onCreateLayout(ComponentContext c)
ComponentLifecycle
ComponentLayout
representing the layout structure of the Component
and its sub-components.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
This is used to be able to skip rendering a component again. We avoid using the 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 interface Equivalence<Component>
isEquivalentTo
in class Component
other
- the component to compare to