@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 |
|---|---|
Object |
acceptTriggerEvent(EventTrigger eventTrigger,
Object eventState,
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.
|
static void |
clearFocus(ComponentContext c,
String key)
Deprecated.
|
static void |
clearFocus(EventTrigger trigger)
Deprecated.
|
static EventTrigger |
clearFocusTrigger(ComponentContext c,
String key)
Deprecated.
|
static EditText.Builder |
create(ComponentContext context)
Deprecated.
|
static EditText.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes)
Deprecated.
|
protected void |
createInitialState(ComponentContext c)
Deprecated.
|
static EventHandler |
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 |
getSelectionChangedEventHandler(ComponentContext context)
Deprecated.
|
static EventHandler |
getSetTextEventHandler(ComponentContext context)
Deprecated.
|
protected StateContainer |
getStateContainer()
Deprecated.
|
static EventHandler |
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,
CharSequence lazyUpdateValue)
Deprecated.
|
EditText |
makeShallowCopy()
Deprecated.
|
protected void |
onBind(ComponentContext c,
Object editText)
Deprecated.
|
protected 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,
Object editText)
Deprecated.
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout. |
protected void |
onUnbind(ComponentContext c,
Object editText)
Deprecated.
|
protected void |
onUnmount(ComponentContext c,
Object editText)
Deprecated.
Unload UI elements associated with this component.
|
protected int |
poolSize()
Deprecated.
|
void |
recordEventTrigger(EventTriggersContainer container)
Deprecated.
|
static void |
requestFocus(ComponentContext c,
Handle handle)
Deprecated.
|
static void |
requestFocus(ComponentContext c,
String key)
Deprecated.
|
static void |
requestFocus(EventTrigger trigger)
Deprecated.
|
static EventTrigger |
requestFocusTrigger(ComponentContext c,
String key)
Deprecated.
|
static void |
setText(ComponentContext c,
Handle handle,
CharSequence text)
Deprecated.
|
static void |
setText(ComponentContext c,
String key,
CharSequence text)
Deprecated.
|
static void |
setText(EventTrigger trigger,
CharSequence text)
Deprecated.
|
static EventTrigger |
setTextTrigger(ComponentContext c,
String key)
Deprecated.
|
protected void |
transferState(StateContainer _prevStateContainer,
StateContainer _nextStateContainer)
Deprecated.
|
protected static void |
updateInput(ComponentContext c,
CharSequence newInput)
Deprecated.
|
protected static void |
updateInputAsync(ComponentContext c,
CharSequence newInput)
Deprecated.
|
protected static void |
updateInputSync(ComponentContext c,
CharSequence newInput)
Deprecated.
|
bindDynamicProp, canResolve, clearCachedLayout, copyInterStageImpl, getCommonProps, getDynamicProps, getEventDispatcher, getHandle, getId, getKey, getScopedContext, getSimpleName, getSimpleNameDelegate, hasBackgroundSet, hasClickHandlerSet, measure, measureMightNotCacheInternalNode, registerWorkingRange, retrieveValue, setScopedContext, updateInternalChildState, willRenderapplyPreviousRenderData, callsShouldUpdateOnMount, createMountContent, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEnteredRange, dispatchOnEvent, dispatchOnExitedRange, getEventTrigger, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getTreePropsForChildren, hasAttachDetachCallback, hasChildLithoViews, implementsAccessibility, implementsExtraAccessibilityNodes, isLayoutSpecWithSizeSpecCheck, isMountSizeDependent, needsPreviousRenderData, newEventHandler, newEventTrigger, onAttached, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onCreateTransition, onDetached, onError, onMeasureBaseline, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onShouldCreateLayoutWithNewSizeSpec, populateTreeProps, recordRenderData, resolve, shouldAlwaysRemeasure, shouldUpdate, shouldUseGlobalPoolprotected StateContainer getStateContainer()
getStateContainer in class Componentpublic boolean isEquivalentTo(Component other)
ComponentThis 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 Componentother - the component to compare topublic EditText makeShallowCopy()
makeShallowCopy in class Componentprotected void onLoadStyle(ComponentContext c)
onLoadStyle in class ComponentLifecycleprotected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size)
onMeasure in class ComponentLifecycleprotected boolean canMeasure()
ComponentLifecycleComponentLifecycle is able to measure itself according to specific size
constraints.canMeasure in class ComponentLifecycleprotected Object onCreateMountContent(Context c)
ComponentLifecycleLithoView.onCreateMountContent in class ComponentLifecyclec - The Context to be used to create the content.protected void onMount(ComponentContext c, Object editText)
ComponentLifecycleComponentLayout. Return either a Drawable or a View or null to be
mounted.onMount in class ComponentLifecyclec - The ComponentContext to mount the component into.protected void onBind(ComponentContext c, Object editText)
onBind in class ComponentLifecycleprotected void onUnbind(ComponentContext c, Object editText)
onUnbind in class ComponentLifecycleprotected void onUnmount(ComponentContext c, Object editText)
ComponentLifecycleonUnmount in class ComponentLifecyclec - The Context for this mount operation.editText - The Drawable or View mounted by this component.protected void createInitialState(ComponentContext c)
createInitialState in class ComponentLifecyclepublic ComponentLifecycle.MountType getMountType()
ComponentLifecycleObject that will be returned by ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object).getMountType in class ComponentLifecycleComponentLifecycle.MountTypeprotected int poolSize()
poolSize in class ComponentLifecycleprotected boolean canPreallocate()
canPreallocate in class ComponentLifecyclepublic boolean isPureRender()
isPureRender in class ComponentLifecyclepublic static EventHandler getTextChangedEventHandler(ComponentContext context)
public static EventHandler getSelectionChangedEventHandler(ComponentContext context)
public static EventHandler getKeyUpEventHandler(ComponentContext context)
public static EventHandler getSetTextEventHandler(ComponentContext context)
@Deprecated public static EventTrigger requestFocusTrigger(ComponentContext c, String key)
@Deprecated public static EventTrigger clearFocusTrigger(ComponentContext c, String key)
@Deprecated public static EventTrigger setTextTrigger(ComponentContext c, String key)
public static void requestFocus(ComponentContext c, Handle handle)
public static void requestFocus(ComponentContext c, String key)
public static void requestFocus(EventTrigger trigger)
public static void clearFocus(ComponentContext c, Handle handle)
public static void clearFocus(ComponentContext c, String key)
public static void clearFocus(EventTrigger trigger)
public static void setText(ComponentContext c, Handle handle, CharSequence text)
public static void setText(ComponentContext c, String key, CharSequence text)
public static void setText(EventTrigger trigger, CharSequence text)
public Object acceptTriggerEvent(EventTrigger eventTrigger, Object eventState, Object[] params)
acceptTriggerEvent in interface EventTriggerTargetacceptTriggerEvent in class ComponentLifecyclepublic void recordEventTrigger(EventTriggersContainer container)
recordEventTrigger in interface HasEventTriggerrecordEventTrigger in class Componentprotected boolean hasState()
hasState in class ComponentLifecycleprotected void transferState(StateContainer _prevStateContainer, StateContainer _nextStateContainer)
ComponentLifecycletransferState in class ComponentLifecycleprotected static void updateInput(ComponentContext c, CharSequence newInput)
protected static void updateInputAsync(ComponentContext c, CharSequence newInput)
protected static void updateInputSync(ComponentContext c, CharSequence newInput)
protected static void lazyUpdateInput(ComponentContext c, CharSequence lazyUpdateValue)
public static EditText.Builder create(ComponentContext context)
public static EditText.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)