public class TestDrawableComponent extends TestComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
TestDrawableComponent.BlockInPrepareComponentListener
Deprecated.
A listener that will block in prepare until allowPrepareToComplete is called from another
thread.
|
static class |
TestDrawableComponent.Builder
Deprecated.
|
static interface |
TestDrawableComponent.TestComponentListener
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 TestDrawableComponent.Builder |
create(ComponentContext context)
Deprecated.
|
static TestDrawableComponent.Builder |
create(ComponentContext context,
boolean isPureRender,
boolean canMeasure,
boolean implementsAccessibility)
Deprecated.
|
static TestDrawableComponent.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes)
Deprecated.
|
static TestDrawableComponent.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes,
boolean isPureRender,
boolean canMeasure,
boolean implementsAccessibility)
Deprecated.
|
static TestDrawableComponent.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes,
boolean isPureRender,
boolean canMeasure,
boolean implementsAccessibility,
boolean isMountSizeDependent)
Deprecated.
|
Component.MountType |
getMountType()
Deprecated.
This indicates the type of the
Object that will be returned by com.facebook.litho.Component#mount. |
protected boolean |
implementsAccessibility()
Deprecated.
Whether this component will populate any accessibility nodes or events that are passed to it.
|
boolean |
isMountSizeDependent()
Deprecated.
|
protected boolean |
isPureRender()
Deprecated.
|
Component |
makeShallowCopy()
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 convertDrawable,
InterStagePropsContainer interStagePropsContainer)
Deprecated.
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout. |
protected void |
onPrepare(ComponentContext c)
Deprecated.
|
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.
|
void |
setTestComponentListener(TestDrawableComponent.TestComponentListener listener)
Deprecated.
|
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, implementsExtraAccessibilityNodes, isRecyclingDisabled, needsPreviousRenderData, onAttached, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onDetached, onError, onMeasureBaseline, poolSize, populateTreeProps, prepare, recordEventTrigger, recordRenderData, render, shouldAlwaysRemeasure, usesLocalStateContainerclone, createMountContent, dispatchErrorEvent, dispatchOnEvent, equals, excludeFromIncrementalMount, getCommonProps, getDynamicProps, getErrorHandler, getEventDispatcher, getEventTrigger, getEventTrigger, getHandle, getTreePropFromParent, getTypeId, hasChildLithoViews, hasClickHandlerSet, hashCode, implementsShouldUpdate, isEqualivalentTreeProps, isEquivalentCommonProps, isEquivalentTo, isEquivalentTo, isLayoutSpecWithSizeSpec, isPureRender, measure, measure, measureMightNotCacheInternalNode, newEventHandler, newEventTrigger, newEventTrigger, onCreateTransition, onLoadStyle, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, registerWorkingRange, resolve, retrieveValue, shouldUpdate, toString, transferState, willRenderprotected boolean isPureRender()
isPureRender in class Componentprotected boolean implementsAccessibility()
SpecGeneratedComponentimplementsAccessibility in class SpecGeneratedComponentpublic boolean isMountSizeDependent()
isMountSizeDependent in class SpecGeneratedComponentprotected 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 convertDrawable, 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 Component makeShallowCopy()
makeShallowCopy in class Componentprotected void onPrepare(ComponentContext c)
onPrepare in class SpecGeneratedComponentpublic void setTestComponentListener(TestDrawableComponent.TestComponentListener listener)
public static TestDrawableComponent.Builder create(ComponentContext context)
public static TestDrawableComponent.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)
public static TestDrawableComponent.Builder create(ComponentContext context, boolean isPureRender, boolean canMeasure, boolean implementsAccessibility)
public static TestDrawableComponent.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes, boolean isPureRender, boolean canMeasure, boolean implementsAccessibility)
public static TestDrawableComponent.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes, boolean isPureRender, boolean canMeasure, boolean implementsAccessibility, boolean isMountSizeDependent)