@Deprecated public final class EditText extends Component
TextInput
instead.
Component that renders an EditText
.
com.facebook.litho.widget.EditTextSpec
Modifier and Type | Class and Description |
---|---|
static class |
EditText.Builder
Deprecated.
|
Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.TransitionContainer
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
ComponentLifecycle is able to measure itself according to specific size
constraints. |
protected boolean |
canPreallocate()
Deprecated.
|
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 |
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.
|
ComponentLifecycle.MountType |
getMountType()
Deprecated.
This indicates the type of the
Object that will be returned by ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object) . |
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 |
isEquivalentTo(Component other)
Deprecated.
Compares this component to a different one to check if they are the same
|
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)
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)
Deprecated.
|
protected void |
onMount(ComponentContext c,
java.lang.Object editText)
Deprecated.
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout . |
protected void |
onUnbind(ComponentContext c,
java.lang.Object editText)
Deprecated.
|
protected void |
onUnmount(ComponentContext c,
java.lang.Object editText)
Deprecated.
Unload UI elements associated with this component.
|
protected int |
poolSize()
Deprecated.
|
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 |
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 |
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.
|
bindDynamicProp, canResolve, clearCachedLayout, copyInterStageImpl, createInterStagePropsContainer, getCommonProps, getDynamicProps, getErrorHandler, getEventDispatcher, getInterStagePropsContainer, getScopedContext, getSimpleName, getSimpleNameDelegate, getStateContainer, hasClickHandlerSet, markLayoutStarted, measure, measureMightNotCacheInternalNode, registerWorkingRange, retrieveValue, setInterStagePropsContainer, setScopedContext, setStateContainer, toString, updateInternalChildState, willRender
acceptTriggerEvent, applyPreviousRenderData, callsShouldUpdateOnMount, createMountContent, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEnteredRange, dispatchOnEvent, dispatchOnEventImpl, dispatchOnExitedRange, getEventTrigger, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getTreePropsForChildren, hasAttachDetachCallback, hasChildLithoViews, hasOwnErrorHandler, implementsAccessibility, implementsExtraAccessibilityNodes, isLayoutSpecWithSizeSpecCheck, isMountSizeDependent, needsPreviousRenderData, newEventHandler, newEventTrigger, newEventTrigger, onAttached, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onCreateTransition, onDetached, onError, onMeasureBaseline, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onShouldCreateLayoutWithNewSizeSpec, populateTreeProps, recordRenderData, resolve, shouldAlwaysRemeasure, shouldUpdate
protected com.facebook.litho.widget.EditText.EditTextStateContainer createStateContainer()
createStateContainer
in class Component
public boolean isEquivalentTo(Component other)
Component
This is used to be able to skip rendering a component again. We avoid using the Object.equals(Object)
so we can optimize the code better over time since we don't have to
adhere to the contract required for a equals method.
isEquivalentTo
in interface Equivalence<Component>
isEquivalentTo
in class Component
other
- the component to compare topublic EditText makeShallowCopy()
makeShallowCopy
in class Component
protected void onLoadStyle(ComponentContext c)
onLoadStyle
in class ComponentLifecycle
protected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size)
onMeasure
in class ComponentLifecycle
protected boolean canMeasure()
ComponentLifecycle
ComponentLifecycle
is able to measure itself according to specific size
constraints.canMeasure
in class ComponentLifecycle
protected java.lang.Object onCreateMountContent(Context c)
ComponentLifecycle
LithoView
.onCreateMountContent
in class ComponentLifecycle
c
- The Context
to be used to create the content.protected void onMount(ComponentContext c, java.lang.Object editText)
ComponentLifecycle
ComponentLayout
. Return either a Drawable
or a View
or null
to be
mounted.onMount
in class ComponentLifecycle
c
- The ComponentContext
to mount the component into.protected void onBind(ComponentContext c, java.lang.Object editText)
onBind
in class ComponentLifecycle
protected void onUnbind(ComponentContext c, java.lang.Object editText)
onUnbind
in class ComponentLifecycle
protected void onUnmount(ComponentContext c, java.lang.Object editText)
ComponentLifecycle
onUnmount
in class ComponentLifecycle
c
- The Context
for this mount operation.editText
- The Drawable
or View
mounted by this component.protected void createInitialState(ComponentContext _0)
createInitialState
in class ComponentLifecycle
public ComponentLifecycle.MountType getMountType()
ComponentLifecycle
Object
that will be returned by ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object)
.getMountType
in class ComponentLifecycle
ComponentLifecycle.MountType
protected int poolSize()
poolSize
in class ComponentLifecycle
protected boolean canPreallocate()
canPreallocate
in class ComponentLifecycle
public boolean isPureRender()
isPureRender
in class ComponentLifecycle
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 requestFocusTrigger(ComponentContext c, java.lang.String key)
requestFocus(ComponentContext, Handle)
.@Deprecated public static EventTrigger clearFocusTrigger(ComponentContext c, java.lang.String key)
clearFocus(ComponentContext, Handle)
.@Deprecated public static EventTrigger 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 ComponentLifecycle
public void recordEventTrigger(ComponentContext c, EventTriggersContainer container)
recordEventTrigger
in interface HasEventTrigger
recordEventTrigger
in class Component
protected boolean hasState()
hasState
in class ComponentLifecycle
protected void transferState(StateContainer _prevStateContainer, StateContainer _nextStateContainer)
ComponentLifecycle
transferState
in class ComponentLifecycle
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)