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.TransitionContainer
Component.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, wasOnUnmountCalled
acceptTriggerEvent, 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, usesLocalStateContainer
clone, 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, willRender
protected boolean isPureRender()
isPureRender
in class Component
protected boolean implementsAccessibility()
SpecGeneratedComponent
implementsAccessibility
in class SpecGeneratedComponent
public boolean isMountSizeDependent()
isMountSizeDependent
in class SpecGeneratedComponent
protected java.lang.Object onCreateMountContent(Context c)
Component
LithoView
.onCreateMountContent
in class Component
c
- The Context
to be used to create the content.protected void onMount(ComponentContext c, java.lang.Object convertDrawable, InterStagePropsContainer interStagePropsContainer)
SpecGeneratedComponent
ComponentLayout
. Return either a Drawable
or a View
or null
to be
mounted.onMount
in class SpecGeneratedComponent
c
- The ComponentContext
to mount the component into.protected void onUnmount(ComponentContext c, java.lang.Object mountedContent, InterStagePropsContainer interStagePropsContainer)
SpecGeneratedComponent
onUnmount
in class SpecGeneratedComponent
c
- The Context
for this mount operation.mountedContent
- The Drawable
or View
mounted by this component.protected boolean canMeasure()
Component
Component
is able to measure itself according to
specific size constraints.canMeasure
in class Component
protected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size, InterStagePropsContainer interStagePropsContainer)
onMeasure
in class SpecGeneratedComponent
protected void onBoundsDefined(ComponentContext c, ComponentLayout layout, InterStagePropsContainer interStagePropsContainer)
SpecGeneratedComponent
ComponentLayout
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 SpecGeneratedComponent
c
- 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 SpecGeneratedComponent
protected void onUnbind(ComponentContext c, java.lang.Object mountedContent, InterStagePropsContainer interStagePropsContainer)
onUnbind
in class SpecGeneratedComponent
public Component.MountType getMountType()
Component
Object
that will be returned by com.facebook.litho.Component#mount
.getMountType
in class Component
Component.MountType
public Component makeShallowCopy()
makeShallowCopy
in class Component
protected void onPrepare(ComponentContext c)
onPrepare
in class SpecGeneratedComponent
public 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)