@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.TransitionContainer
Component.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, usesLocalStateContainer
clone, 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, willRender
protected com.facebook.litho.widget.EditText.EditTextStateContainer createStateContainer()
createStateContainer
in class SpecGeneratedComponent
public boolean isEquivalentProps(Component other, boolean shouldCompareCommonProps)
Component
isEquivalentProps
in class Component
other
- the component to compare topublic EditText makeShallowCopy()
makeShallowCopy
in class Component
protected void onLoadStyle(ComponentContext c)
onLoadStyle
in class Component
protected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size, InterStagePropsContainer _5)
onMeasure
in class SpecGeneratedComponent
protected boolean canMeasure()
Component
Component
is able to measure itself according to
specific size constraints.canMeasure
in class Component
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 editText, InterStagePropsContainer _2)
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 onBind(ComponentContext c, java.lang.Object editText, InterStagePropsContainer _2)
onBind
in class SpecGeneratedComponent
protected void onUnbind(ComponentContext c, java.lang.Object editText, InterStagePropsContainer _2)
onUnbind
in class SpecGeneratedComponent
protected void onUnmount(ComponentContext c, java.lang.Object editText, InterStagePropsContainer _2)
SpecGeneratedComponent
onUnmount
in class SpecGeneratedComponent
c
- The Context
for this mount operation.editText
- The Drawable
or View
mounted by this component.protected void createInitialState(ComponentContext _0)
createInitialState
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 int poolSize()
ContentAllocator
Experimental. Currently for Litho team internal use only.
poolSize
in interface ContentAllocator
poolSize
in class SpecGeneratedComponent
public boolean canPreallocate()
ContentAllocator
false
, 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 ContentAllocator
canPreallocate
in class SpecGeneratedComponent
public boolean isPureRender()
isPureRender
in class Component
public 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 SpecGeneratedComponent
public void recordEventTrigger(ComponentContext c, EventTriggersContainer container)
recordEventTrigger
in interface HasEventTrigger
recordEventTrigger
in class SpecGeneratedComponent
protected boolean hasState()
hasState
in class SpecGeneratedComponent
protected void transferState(StateContainer _prevStateContainer, StateContainer _nextStateContainer)
Component
transferState
in class Component
protected 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)