@Deprecated public class TestViewComponent extends TestComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
TestViewComponent.Builder
Deprecated.
|
SpecGeneratedComponent.TransitionContainerComponent.ContainerBuilder<T extends Component.ContainerBuilder<T>>, Component.MountType, Component.RenderData| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canMeasure()
Deprecated.
Whether this
Component is able to measure itself according to
specific size constraints. |
static TestViewComponent.Builder |
create(ComponentContext context)
Deprecated.
|
static TestViewComponent.Builder |
create(ComponentContext context,
boolean isPureRender,
boolean canMeasure,
boolean canMountIncrementally)
Deprecated.
|
static TestViewComponent.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes)
Deprecated.
|
static TestViewComponent.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes,
boolean isPureRender,
boolean canMeasure,
boolean canMountIncrementally)
Deprecated.
|
Component.MountType |
getMountType()
Deprecated.
This indicates the type of the
Object that will be returned by com.facebook.litho.Component#mount. |
protected boolean |
hasChildLithoViews()
Deprecated.
Whether this
Component mounts views that contain component-based
content that can be incrementally mounted e.g. |
protected boolean |
isPureRender()
Deprecated.
|
protected void |
onBind(ComponentContext c,
java.lang.Object mountedContent,
InterStagePropsContainer interStagePropsContainer)
Deprecated.
|
protected void |
onBoundsDefined(ComponentContext c,
ComponentLayout layout,
InterStagePropsContainer interStagePropsContainer)
Deprecated.
Called after the layout calculation is finished and the given
ComponentLayout has its
bounds defined. |
protected java.lang.Object |
onCreateMountContent(Context c)
Deprecated.
Create the object that will be mounted in the
LithoView. |
protected void |
onMeasure(ComponentContext c,
ComponentLayout layout,
int widthSpec,
int heightSpec,
Size size,
InterStagePropsContainer interStagePropsContainer)
Deprecated.
|
protected void |
onMount(ComponentContext c,
java.lang.Object convertView,
InterStagePropsContainer interStagePropsContainer)
Deprecated.
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout. |
protected void |
onUnbind(ComponentContext c,
java.lang.Object mountedContent,
InterStagePropsContainer interStagePropsContainer)
Deprecated.
|
protected void |
onUnmount(ComponentContext c,
java.lang.Object mountedContent,
InterStagePropsContainer interStagePropsContainer)
Deprecated.
Unload UI elements associated with this component.
|
dispatchOnEventImpl, getDispatchedEventHandlers, getEventState, isBound, isEquivalentProps, isEquivalentToCalled, isMounted, resetInteractions, wasMeasureCalled, wasOnAttachedCalled, wasOnBindCalled, wasOnBoundsDefinedCalled, wasOnDetachedCalled, wasOnMountCalled, wasOnUnbindCalled, wasOnUnmountCalledacceptTriggerEvent, acceptTriggerEventImpl, applyPreviousRenderData, bindDynamicProp, canPreallocate, copyInterStageImpl, copyPrepareInterStageImpl, createContent, createInitialState, createInterStagePropsContainer, createPoolableContent, createPrepareInterStagePropsContainer, createRecyclingPool, createStateContainer, dispatchOnEnteredRange, dispatchOnExitedRange, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getInterStagePropsContainer, getPoolableContentType, getPrepareInterStagePropsContainer, getSimpleName, getSimpleNameDelegate, getTreePropsForChildren, hasAttachDetachCallback, hasOwnErrorHandler, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isRecyclingDisabled, needsPreviousRenderData, onAttached, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onDetached, onError, onMeasureBaseline, onPrepare, poolSize, populateTreeProps, prepare, recordEventTrigger, recordRenderData, render, shouldAlwaysRemeasure, usesLocalStateContainerclone, createMountContent, dispatchErrorEvent, dispatchOnEvent, equals, excludeFromIncrementalMount, getCommonProps, getDynamicProps, getErrorHandler, getEventDispatcher, getEventTrigger, getEventTrigger, getHandle, getTreePropFromParent, getTypeId, hasClickHandlerSet, hashCode, implementsShouldUpdate, isEqualivalentTreeProps, isEquivalentCommonProps, isEquivalentTo, isEquivalentTo, isLayoutSpecWithSizeSpec, isPureRender, makeShallowCopy, measure, measure, measureMightNotCacheInternalNode, newEventHandler, newEventTrigger, newEventTrigger, onCreateTransition, onLoadStyle, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, registerWorkingRange, resolve, retrieveValue, shouldUpdate, toString, transferState, willRenderprotected boolean isPureRender()
isPureRender in class Componentprotected boolean hasChildLithoViews()
ComponentComponent mounts views that contain component-based
content that can be incrementally mounted e.g. if the mounted view has a LithoView with
incremental mount enabled.hasChildLithoViews in class Componentprotected java.lang.Object onCreateMountContent(Context c)
ComponentLithoView.onCreateMountContent in class Componentc - The Context to be used to create the content.protected void onMount(ComponentContext c, java.lang.Object convertView, InterStagePropsContainer interStagePropsContainer)
SpecGeneratedComponentComponentLayout. Return either a Drawable or a View or null to be
mounted.onMount in class SpecGeneratedComponentc - The ComponentContext to mount the component into.protected void onUnmount(ComponentContext c, java.lang.Object mountedContent, InterStagePropsContainer interStagePropsContainer)
SpecGeneratedComponentonUnmount in class SpecGeneratedComponentc - The Context for this mount operation.mountedContent - The Drawable or View mounted by this component.protected boolean canMeasure()
ComponentComponent is able to measure itself according to
specific size constraints.canMeasure in class Componentprotected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size, InterStagePropsContainer interStagePropsContainer)
onMeasure in class SpecGeneratedComponentprotected void onBoundsDefined(ComponentContext c, ComponentLayout layout, InterStagePropsContainer interStagePropsContainer)
SpecGeneratedComponentComponentLayout has its
bounds defined. You can use ComponentLayout.getX(), ComponentLayout.getY(),
ComponentLayout.getWidth(), and ComponentLayout.getHeight() to get the size and
position of the component in the layout tree.onBoundsDefined in class SpecGeneratedComponentc - The Context used by this component.layout - The ComponentLayout with defined position and size.protected void onBind(ComponentContext c, java.lang.Object mountedContent, InterStagePropsContainer interStagePropsContainer)
onBind in class SpecGeneratedComponentprotected void onUnbind(ComponentContext c, java.lang.Object mountedContent, InterStagePropsContainer interStagePropsContainer)
onUnbind in class SpecGeneratedComponentpublic Component.MountType getMountType()
ComponentObject that will be returned by com.facebook.litho.Component#mount.getMountType in class ComponentComponent.MountTypepublic static TestViewComponent.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)
public static TestViewComponent.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes, boolean isPureRender, boolean canMeasure, boolean canMountIncrementally)
public static TestViewComponent.Builder create(ComponentContext context)
public static TestViewComponent.Builder create(ComponentContext context, boolean isPureRender, boolean canMeasure, boolean canMountIncrementally)