@Deprecated public final class EditText extends SpecGeneratedComponent
TextInput instead.
Component that renders an EditText.
com.facebook.litho.widget.EditTextSpec| Modifier and Type | Class and Description |
|---|---|
static class |
EditText.Builder
Deprecated.
|
SpecGeneratedComponent.TransitionContainerComponent.ContainerBuilder<T extends Component.ContainerBuilder<T>>, Component.MountType, Component.RenderData| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
acceptTriggerEventImpl(EventTrigger eventTrigger,
java.lang.Object eventState,
java.lang.Object[] params)
Deprecated.
|
protected boolean |
canMeasure()
Deprecated.
Whether this
Component is able to measure itself according to
specific size constraints. |
boolean |
canPreallocate()
Deprecated.
This API informs the framework to fill the content pool for this Mountable ahead of time.
|
static void |
clearFocus(ComponentContext c,
Handle handle)
Deprecated.
This will send the clearFocus trigger to the component with the given handle.
|
static void |
clearFocus(ComponentContext c,
java.lang.String key)
Deprecated.
Use
clearFocus(ComponentContext, Handle) instead. |
static void |
clearFocus(EventTrigger trigger)
Deprecated.
Use
clearFocus(ComponentContext, Handle) instead. |
static EventTrigger<ClearFocusEvent> |
clearFocusTrigger(ComponentContext c,
java.lang.String key)
Deprecated.
Do not use this method to get a EventTrigger to use later. Instead give the component a Handle and use
clearFocus(ComponentContext, Handle). |
static EditText.Builder |
create(ComponentContext context)
Deprecated.
|
static EditText.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes)
Deprecated.
|
protected void |
createInitialState(ComponentContext _0)
Deprecated.
|
protected com.facebook.litho.widget.EditText.EditTextStateContainer |
createStateContainer()
Deprecated.
|
static EventHandler<KeyUpEvent> |
getKeyUpEventHandler(ComponentContext context)
Deprecated.
|
Component.MountType |
getMountType()
Deprecated.
This indicates the type of the
Object that will be returned by com.facebook.litho.Component#mount. |
static EventHandler<SelectionChangedEvent> |
getSelectionChangedEventHandler(ComponentContext context)
Deprecated.
|
static EventHandler<SetTextEvent> |
getSetTextEventHandler(ComponentContext context)
Deprecated.
|
static EventHandler<TextChangedEvent> |
getTextChangedEventHandler(ComponentContext context)
Deprecated.
|
protected boolean |
hasState()
Deprecated.
|
boolean |
isEquivalentProps(Component other,
boolean shouldCompareCommonProps)
Deprecated.
Determine if this component has equivalent props to a given component.
|
boolean |
isPureRender()
Deprecated.
|
protected static void |
lazyUpdateInput(ComponentContext c,
java.lang.CharSequence lazyUpdateValue)
Deprecated.
|
EditText |
makeShallowCopy()
Deprecated.
|
protected void |
onBind(ComponentContext c,
java.lang.Object editText,
InterStagePropsContainer _2)
Deprecated.
|
protected java.lang.Object |
onCreateMountContent(Context c)
Deprecated.
Create the object that will be mounted in the
LithoView. |
protected void |
onLoadStyle(ComponentContext c)
Deprecated.
|
protected void |
onMeasure(ComponentContext c,
ComponentLayout layout,
int widthSpec,
int heightSpec,
Size size,
InterStagePropsContainer _5)
Deprecated.
|
protected void |
onMount(ComponentContext c,
java.lang.Object editText,
InterStagePropsContainer _2)
Deprecated.
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout. |
protected void |
onUnbind(ComponentContext c,
java.lang.Object editText,
InterStagePropsContainer _2)
Deprecated.
|
protected void |
onUnmount(ComponentContext c,
java.lang.Object editText,
InterStagePropsContainer _2)
Deprecated.
Unload UI elements associated with this component.
|
int |
poolSize()
Deprecated.
This API informs the framework about the size of the content pool.
|
void |
recordEventTrigger(ComponentContext c,
EventTriggersContainer container)
Deprecated.
|
static void |
requestFocus(ComponentContext c,
Handle handle)
Deprecated.
This will send the requestFocus trigger to the component with the given handle.
|
static void |
requestFocus(ComponentContext c,
java.lang.String key)
Deprecated.
Use
requestFocus(ComponentContext, Handle) instead. |
static void |
requestFocus(EventTrigger trigger)
Deprecated.
Use
requestFocus(ComponentContext, Handle) instead. |
static EventTrigger<RequestFocusEvent> |
requestFocusTrigger(ComponentContext c,
java.lang.String key)
Deprecated.
Do not use this method to get a EventTrigger to use later. Instead give the component a Handle and use
requestFocus(ComponentContext, Handle). |
static void |
setText(ComponentContext c,
Handle handle,
java.lang.CharSequence text)
Deprecated.
This will send the setText trigger to the component with the given handle.
|
static void |
setText(ComponentContext c,
java.lang.String key,
java.lang.CharSequence text)
Deprecated.
Use
#setText(ComponentContext, Handle) instead. |
static void |
setText(EventTrigger trigger,
java.lang.CharSequence text)
Deprecated.
Use
#setText(ComponentContext, Handle) instead. |
static EventTrigger<SetTextEvent> |
setTextTrigger(ComponentContext c,
java.lang.String key)
Deprecated.
Do not use this method to get a EventTrigger to use later. Instead give the component a Handle and use
#setText(ComponentContext, Handle). |
protected void |
transferState(StateContainer _prevStateContainer,
StateContainer _nextStateContainer)
Deprecated.
|
protected static void |
updateInput(ComponentContext c,
java.lang.CharSequence newInput)
Deprecated.
|
protected static void |
updateInputAsync(ComponentContext c,
java.lang.CharSequence newInput)
Deprecated.
|
protected static void |
updateInputSync(ComponentContext c,
java.lang.CharSequence newInput)
Deprecated.
|
acceptTriggerEvent, applyPreviousRenderData, bindDynamicProp, copyInterStageImpl, copyPrepareInterStageImpl, createContent, createInterStagePropsContainer, createPoolableContent, createPrepareInterStagePropsContainer, createRecyclingPool, dispatchOnEnteredRange, dispatchOnExitedRange, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getInterStagePropsContainer, getPoolableContentType, getPrepareInterStagePropsContainer, getSimpleName, getSimpleNameDelegate, getTreePropsForChildren, hasAttachDetachCallback, hasOwnErrorHandler, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isRecyclingDisabled, needsPreviousRenderData, onAttached, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onDetached, onError, onMeasureBaseline, onPrepare, populateTreeProps, prepare, recordRenderData, render, shouldAlwaysRemeasure, usesLocalStateContainerclone, createMountContent, dispatchErrorEvent, dispatchOnEvent, dispatchOnEventImpl, 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, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, registerWorkingRange, resolve, retrieveValue, shouldUpdate, toString, willRenderprotected com.facebook.litho.widget.EditText.EditTextStateContainer createStateContainer()
createStateContainer in class SpecGeneratedComponentpublic boolean isEquivalentProps(Component other, boolean shouldCompareCommonProps)
ComponentisEquivalentProps in class Componentother - the component to compare topublic EditText makeShallowCopy()
makeShallowCopy in class Componentprotected void onLoadStyle(ComponentContext c)
onLoadStyle in class Componentprotected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size, InterStagePropsContainer _5)
onMeasure in class SpecGeneratedComponentprotected boolean canMeasure()
ComponentComponent is able to measure itself according to
specific size constraints.canMeasure 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 editText, InterStagePropsContainer _2)
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 onBind(ComponentContext c, java.lang.Object editText, InterStagePropsContainer _2)
onBind in class SpecGeneratedComponentprotected void onUnbind(ComponentContext c, java.lang.Object editText, InterStagePropsContainer _2)
onUnbind in class SpecGeneratedComponentprotected void onUnmount(ComponentContext c, java.lang.Object editText, InterStagePropsContainer _2)
SpecGeneratedComponentonUnmount in class SpecGeneratedComponentc - The Context for this mount operation.editText - The Drawable or View mounted by this component.protected void createInitialState(ComponentContext _0)
createInitialState in class SpecGeneratedComponentpublic Component.MountType getMountType()
ComponentObject that will be returned by com.facebook.litho.Component#mount.getMountType in class ComponentComponent.MountTypepublic int poolSize()
ContentAllocatorExperimental. Currently for Litho team internal use only.
poolSize in interface ContentAllocatorpoolSize in class SpecGeneratedComponentpublic boolean canPreallocate()
ContentAllocatorfalse, i.e. content is not pre-allocated. Pre-allocation of the
content can improve performance in some circumstances where creating the content is expensive.canPreallocate in interface ContentAllocatorcanPreallocate in class SpecGeneratedComponentpublic boolean isPureRender()
isPureRender in class Componentpublic static EventHandler<TextChangedEvent> getTextChangedEventHandler(ComponentContext context)
public static EventHandler<SelectionChangedEvent> getSelectionChangedEventHandler(ComponentContext context)
public static EventHandler<KeyUpEvent> getKeyUpEventHandler(ComponentContext context)
public static EventHandler<SetTextEvent> getSetTextEventHandler(ComponentContext context)
@Deprecated public static EventTrigger<RequestFocusEvent> requestFocusTrigger(ComponentContext c, java.lang.String key)
requestFocus(ComponentContext, Handle).@Deprecated public static EventTrigger<ClearFocusEvent> clearFocusTrigger(ComponentContext c, java.lang.String key)
clearFocus(ComponentContext, Handle).@Deprecated public static EventTrigger<SetTextEvent> setTextTrigger(ComponentContext c, java.lang.String key)
#setText(ComponentContext, Handle).public static void requestFocus(ComponentContext c, Handle handle)
@Deprecated public static void requestFocus(ComponentContext c, java.lang.String key)
requestFocus(ComponentContext, Handle) instead.@Deprecated public static void requestFocus(EventTrigger trigger)
requestFocus(ComponentContext, Handle) instead.public static void clearFocus(ComponentContext c, Handle handle)
@Deprecated public static void clearFocus(ComponentContext c, java.lang.String key)
clearFocus(ComponentContext, Handle) instead.@Deprecated public static void clearFocus(EventTrigger trigger)
clearFocus(ComponentContext, Handle) instead.public static void setText(ComponentContext c, Handle handle, java.lang.CharSequence text)
@Deprecated public static void setText(ComponentContext c, java.lang.String key, java.lang.CharSequence text)
#setText(ComponentContext, Handle) instead.@Deprecated public static void setText(EventTrigger trigger, java.lang.CharSequence text)
#setText(ComponentContext, Handle) instead.protected java.lang.Object acceptTriggerEventImpl(EventTrigger eventTrigger, java.lang.Object eventState, java.lang.Object[] params)
acceptTriggerEventImpl in class SpecGeneratedComponentpublic void recordEventTrigger(ComponentContext c, EventTriggersContainer container)
recordEventTrigger in interface HasEventTriggerrecordEventTrigger in class SpecGeneratedComponentprotected boolean hasState()
hasState in class SpecGeneratedComponentprotected void transferState(StateContainer _prevStateContainer, StateContainer _nextStateContainer)
ComponenttransferState in class Componentprotected static void updateInput(ComponentContext c, java.lang.CharSequence newInput)
protected static void updateInputAsync(ComponentContext c, java.lang.CharSequence newInput)
protected static void updateInputSync(ComponentContext c, java.lang.CharSequence newInput)
protected static void lazyUpdateInput(ComponentContext c, java.lang.CharSequence lazyUpdateValue)
public static EditText.Builder create(ComponentContext context)
public static EditText.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)