L
- public abstract class TestComponent extends Component
Component.Builder<T extends Component.Builder<T>>, Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.TransitionContainer
Modifier and Type | Field and Description |
---|---|
protected boolean |
mIsUnique |
Modifier | Constructor and Description |
---|---|
protected |
TestComponent() |
protected |
TestComponent(java.lang.String simpleName) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
dispatchOnEventImpl(EventHandler eventHandler,
java.lang.Object eventState) |
boolean |
equals(java.lang.Object o) |
java.util.Set<EventHandler<?>> |
getDispatchedEventHandlers() |
java.lang.Object |
getEventState(EventHandler eventHandler) |
int |
hashCode() |
boolean |
isBound() |
boolean |
isEquivalentTo(Component other)
Compares this component to a different one to check if they are the same
|
boolean |
isEquivalentToCalled() |
boolean |
isMounted() |
void |
resetInteractions()
Reset the tracking of which methods have been called on this component.
|
boolean |
wasMeasureCalled() |
boolean |
wasOnAttachedCalled() |
boolean |
wasOnBindCalled() |
boolean |
wasOnBoundsDefinedCalled() |
boolean |
wasOnDetachedCalled() |
boolean |
wasOnMountCalled() |
boolean |
wasOnUnbindCalled() |
boolean |
wasOnUnmountCalled() |
bindDynamicProp, canResolve, clearCachedLayout, copyInterStageImpl, createInterStagePropsContainer, createStateContainer, getCommonProps, getDynamicProps, getErrorHandler, getEventDispatcher, getInterStagePropsContainer, getScopedContext, getSimpleName, getSimpleNameDelegate, getStateContainer, hasClickHandlerSet, makeShallowCopy, markLayoutStarted, measure, measureMightNotCacheInternalNode, recordEventTrigger, registerWorkingRange, retrieveValue, setInterStagePropsContainer, setScopedContext, setStateContainer, toString, updateInternalChildState, willRender
acceptTriggerEvent, acceptTriggerEventImpl, applyPreviousRenderData, callsShouldUpdateOnMount, canMeasure, canPreallocate, createInitialState, createMountContent, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEnteredRange, dispatchOnEvent, dispatchOnExitedRange, getEventTrigger, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getMountType, getTreePropsForChildren, hasAttachDetachCallback, hasChildLithoViews, hasOwnErrorHandler, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isLayoutSpecWithSizeSpecCheck, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventTrigger, newEventTrigger, onAttached, onBind, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContent, onCreateMountContentPool, onCreateTransition, onDetached, onError, onLoadStyle, onMeasure, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onShouldCreateLayoutWithNewSizeSpec, onUnbind, onUnmount, poolSize, populateTreeProps, recordRenderData, resolve, shouldAlwaysRemeasure, shouldUpdate, transferState
protected TestComponent(java.lang.String simpleName)
protected TestComponent()
public boolean wasOnMountCalled()
public boolean isMounted()
public boolean wasOnUnmountCalled()
public boolean wasOnBoundsDefinedCalled()
public boolean wasOnBindCalled()
public boolean isBound()
public boolean wasOnUnbindCalled()
public boolean wasMeasureCalled()
public boolean wasOnAttachedCalled()
public boolean wasOnDetachedCalled()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
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 topublic void resetInteractions()
public java.lang.Object dispatchOnEventImpl(EventHandler eventHandler, java.lang.Object eventState)
dispatchOnEventImpl
in class ComponentLifecycle
public java.util.Set<EventHandler<?>> getDispatchedEventHandlers()
public java.lang.Object getEventState(EventHandler eventHandler)
public boolean isEquivalentToCalled()