public static final class TextInput.Builder extends Component.Builder<TextInput.Builder>
mResourceResolver
Modifier and Type | Method and Description |
---|---|
TextInput.Builder |
autofillHints(java.lang.String[] autofillHints) |
TextInput |
build() |
TextInput.Builder |
clearFocusTrigger(EventTrigger clearFocusTrigger)
Deprecated.
Do not use this method to set an EventTrigger. Instead, set a Handle on
this Component with .handle() and dispatch the trigger using the variant of
TextInput.clearFocusTrigger that takes a Handle param.
|
TextInput.Builder |
cursorDrawableRes(int cursorDrawableRes) |
TextInput.Builder |
dispatchKeyTrigger(EventTrigger dispatchKeyTrigger)
Deprecated.
Do not use this method to set an EventTrigger. Instead, set a Handle on
this Component with .handle() and dispatch the trigger using the variant of
TextInput.dispatchKeyTrigger that takes a Handle param.
|
TextInput.Builder |
editable(boolean editable) |
TextInput.Builder |
editorActionEventHandler(EventHandler<EditorActionEvent> editorActionEventHandler) |
TextInput.Builder |
ellipsize(TextUtils.TruncateAt ellipsize) |
TextInput.Builder |
error(java.lang.CharSequence error) |
TextInput.Builder |
errorAttr(int attrResId) |
TextInput.Builder |
errorAttr(int attrResId,
int defResId) |
TextInput.Builder |
errorDrawable(Drawable errorDrawable) |
TextInput.Builder |
errorDrawableAttr(int attrResId) |
TextInput.Builder |
errorDrawableAttr(int attrResId,
int defResId) |
TextInput.Builder |
errorDrawableRes(int resId) |
TextInput.Builder |
errorRes(int resId) |
TextInput.Builder |
errorRes(int resId,
java.lang.Object... formatArgs) |
TextInput.Builder |
getLineCountTrigger(EventTrigger getLineCountTrigger)
Deprecated.
Do not use this method to set an EventTrigger. Instead, set a Handle on
this Component with .handle() and dispatch the trigger using the variant of
TextInput.getLineCountTrigger that takes a Handle param.
|
TextInput.Builder |
getTextTrigger(EventTrigger getTextTrigger)
Deprecated.
Do not use this method to set an EventTrigger. Instead, set a Handle on
this Component with .handle() and dispatch the trigger using the variant of
TextInput.getTextTrigger that takes a Handle param.
|
TextInput.Builder |
getThis() |
TextInput.Builder |
gravity(int gravity) |
TextInput.Builder |
highlightColor(java.lang.Integer highlightColor) |
TextInput.Builder |
highlightColorAttr(int attrResId) |
TextInput.Builder |
highlightColorAttr(int attrResId,
int defResId) |
TextInput.Builder |
highlightColorRes(int resId) |
TextInput.Builder |
hint(java.lang.CharSequence hint) |
TextInput.Builder |
hintAttr(int attrResId) |
TextInput.Builder |
hintAttr(int attrResId,
int defResId) |
TextInput.Builder |
hintColorStateList(ColorStateList hintColorStateList) |
TextInput.Builder |
hintRes(int resId) |
TextInput.Builder |
hintRes(int resId,
java.lang.Object... formatArgs) |
TextInput.Builder |
imeOptions(int imeOptions) |
TextInput.Builder |
importantForAutofill(int importantForAutofill) |
TextInput.Builder |
initialText(java.lang.CharSequence initialText) |
TextInput.Builder |
initialTextAttr(int attrResId) |
TextInput.Builder |
initialTextAttr(int attrResId,
int defResId) |
TextInput.Builder |
initialTextRes(int resId) |
TextInput.Builder |
initialTextRes(int resId,
java.lang.Object... formatArgs) |
TextInput.Builder |
inputBackground(Drawable inputBackground) |
TextInput.Builder |
inputBackgroundAttr(int attrResId) |
TextInput.Builder |
inputBackgroundAttr(int attrResId,
int defResId) |
TextInput.Builder |
inputBackgroundRes(int resId) |
TextInput.Builder |
inputConnectionEventHandler(EventHandler<InputConnectionEvent> inputConnectionEventHandler) |
TextInput.Builder |
inputFilter(InputFilter inputFilter) |
TextInput.Builder |
inputFilters(java.util.List<InputFilter> inputFilters) |
TextInput.Builder |
inputFocusChangedEventHandler(EventHandler<InputFocusChangedEvent> inputFocusChangedEventHandler) |
TextInput.Builder |
inputType(int inputType) |
TextInput.Builder |
keyListener(KeyListener keyListener) |
TextInput.Builder |
keyPreImeEventHandler(EventHandler<KeyPreImeEvent> keyPreImeEventHandler) |
TextInput.Builder |
keyUpEventHandler(EventHandler<KeyUpEvent> keyUpEventHandler) |
TextInput.Builder |
maxLines(int maxLines) |
TextInput.Builder |
minLines(int minLines) |
TextInput.Builder |
movementMethod(MovementMethod movementMethod) |
TextInput.Builder |
multiline(boolean multiline) |
TextInput.Builder |
rawInputType(int rawInputType) |
TextInput.Builder |
replaceTextTrigger(EventTrigger replaceTextTrigger)
Deprecated.
Do not use this method to set an EventTrigger. Instead, set a Handle on
this Component with .handle() and dispatch the trigger using the variant of
TextInput.replaceTextTrigger that takes a Handle param.
|
TextInput.Builder |
requestFocusTrigger(EventTrigger requestFocusTrigger)
Deprecated.
Do not use this method to set an EventTrigger. Instead, set a Handle on
this Component with .handle() and dispatch the trigger using the variant of
TextInput.requestFocusTrigger that takes a Handle param.
|
TextInput.Builder |
selectionChangedEventHandler(EventHandler<SelectionChangedEvent> selectionChangedEventHandler) |
protected void |
setComponent(Component component) |
TextInput.Builder |
setSelectionTrigger(EventTrigger setSelectionTrigger)
Deprecated.
Do not use this method to set an EventTrigger. Instead, set a Handle on
this Component with .handle() and dispatch the trigger using the variant of
TextInput.setSelectionTrigger that takes a Handle param.
|
TextInput.Builder |
setTextEventHandler(EventHandler<SetTextEvent> setTextEventHandler) |
TextInput.Builder |
setTextTrigger(EventTrigger setTextTrigger)
Deprecated.
Do not use this method to set an EventTrigger. Instead, set a Handle on
this Component with .handle() and dispatch the trigger using the variant of
TextInput.setTextTrigger that takes a Handle param.
|
TextInput.Builder |
shadowColor(int shadowColor) |
TextInput.Builder |
shadowColorAttr(int attrResId) |
TextInput.Builder |
shadowColorAttr(int attrResId,
int defResId) |
TextInput.Builder |
shadowColorRes(int resId) |
TextInput.Builder |
shadowDxAttr(int attrResId) |
TextInput.Builder |
shadowDxAttr(int attrResId,
int defResId) |
TextInput.Builder |
shadowDxDip(float dip) |
TextInput.Builder |
shadowDxPx(float shadowDx) |
TextInput.Builder |
shadowDxRes(int resId) |
TextInput.Builder |
shadowDxSp(float sip) |
TextInput.Builder |
shadowDyAttr(int attrResId) |
TextInput.Builder |
shadowDyAttr(int attrResId,
int defResId) |
TextInput.Builder |
shadowDyDip(float dip) |
TextInput.Builder |
shadowDyPx(float shadowDy) |
TextInput.Builder |
shadowDyRes(int resId) |
TextInput.Builder |
shadowDySp(float sip) |
TextInput.Builder |
shadowRadiusAttr(int attrResId) |
TextInput.Builder |
shadowRadiusAttr(int attrResId,
int defResId) |
TextInput.Builder |
shadowRadiusDip(float dip) |
TextInput.Builder |
shadowRadiusPx(float shadowRadius) |
TextInput.Builder |
shadowRadiusRes(int resId) |
TextInput.Builder |
shadowRadiusSp(float sip) |
TextInput.Builder |
textAlignment(int textAlignment) |
TextInput.Builder |
textChangedEventHandler(EventHandler<TextChangedEvent> textChangedEventHandler) |
TextInput.Builder |
textColorStateList(ColorStateList textColorStateList) |
TextInput.Builder |
textSizeAttr(int attrResId) |
TextInput.Builder |
textSizeAttr(int attrResId,
int defResId) |
TextInput.Builder |
textSizeDip(float dip) |
TextInput.Builder |
textSizePx(int textSize) |
TextInput.Builder |
textSizeRes(int resId) |
TextInput.Builder |
textSizeSp(float sip) |
TextInput.Builder |
textWatcher(TextWatcher textWatcher) |
TextInput.Builder |
textWatchers(java.util.List<TextWatcher> textWatchers) |
TextInput.Builder |
typeface(Typeface typeface) |
accessibilityHeading, accessibilityRole, accessibilityRoleDescription, accessibilityRoleDescription, accessibilityRoleDescription, alignSelf, alpha, alpha, aspectRatio, background, backgroundAttr, backgroundAttr, backgroundColor, backgroundColor, backgroundDynamicDrawable, backgroundRes, border, checkArgs, clickable, clickHandler, clipChildren, clipToOutline, componentTag, contentDescription, contentDescription, contentDescription, dispatchPopulateAccessibilityEventHandler, duplicateChildrenStates, duplicateParentState, enabled, flex, flexBasisAttr, flexBasisAttr, flexBasisDip, flexBasisPercent, flexBasisPx, flexBasisRes, flexGrow, flexShrink, focusable, focusChangeHandler, focusedHandler, foreground, foregroundAttr, foregroundAttr, foregroundColor, foregroundColor, foregroundRes, fullImpressionHandler, getContext, handle, hasBackgroundSet, hasClickHandlerSet, heightAttr, heightAttr, heightDip, heightPercent, heightPx, heightRes, importantForAccessibility, interceptTouchHandler, invisibleHandler, isReferenceBaseline, key, layerType, layoutDirection, longClickHandler, marginAttr, marginAttr, marginAuto, marginDip, marginPercent, marginPx, marginRes, maxHeightAttr, maxHeightAttr, maxHeightDip, maxHeightPercent, maxHeightPx, maxHeightRes, maxWidthAttr, maxWidthAttr, maxWidthDip, maxWidthPercent, maxWidthPx, maxWidthRes, metadata, minHeightAttr, minHeightAttr, minHeightDip, minHeightPercent, minHeightPx, minHeightRes, minWidthAttr, minWidthAttr, minWidthDip, minWidthPercent, minWidthPx, minWidthRes, onInitializeAccessibilityEventHandler, onInitializeAccessibilityNodeInfoHandler, onPopulateAccessibilityEventHandler, onRequestSendAccessibilityEventHandler, outlineProvider, paddingAttr, paddingAttr, paddingDip, paddingPercent, paddingPx, paddingRes, performAccessibilityActionHandler, positionAttr, positionAttr, positionDip, positionPercent, positionPx, positionRes, positionType, rotation, rotation, rotationX, rotationY, scale, scaleX, scaleY, selected, sendAccessibilityEventHandler, sendAccessibilityEventUncheckedHandler, shadowElevation, shadowElevationAttr, shadowElevationAttr, shadowElevationDip, shadowElevationPx, shadowElevationRes, stateListAnimator, stateListAnimatorRes, testKey, touchExpansionAttr, touchExpansionAttr, touchExpansionDip, touchExpansionPx, touchExpansionRes, touchHandler, transitionKey, transitionKeyType, transitionName, translationX, translationY, unfocusedHandler, useHeightAsBaseline, viewTag, viewTags, visibilityChangedHandler, visibleHandler, visibleHeightRatio, visibleWidthRatio, widthAttr, widthAttr, widthDip, widthPercent, widthPx, widthRes, wrapInView
protected void setComponent(Component component)
setComponent
in class Component.Builder<TextInput.Builder>
public TextInput.Builder autofillHints(java.lang.String[] autofillHints)
public TextInput.Builder cursorDrawableRes(int cursorDrawableRes)
public TextInput.Builder editable(boolean editable)
public TextInput.Builder ellipsize(TextUtils.TruncateAt ellipsize)
public TextInput.Builder error(java.lang.CharSequence error)
public TextInput.Builder errorRes(int resId)
public TextInput.Builder errorRes(int resId, java.lang.Object... formatArgs)
public TextInput.Builder errorAttr(int attrResId, int defResId)
public TextInput.Builder errorAttr(int attrResId)
public TextInput.Builder errorDrawable(Drawable errorDrawable)
public TextInput.Builder errorDrawableRes(int resId)
public TextInput.Builder errorDrawableAttr(int attrResId, int defResId)
public TextInput.Builder errorDrawableAttr(int attrResId)
public TextInput.Builder gravity(int gravity)
public TextInput.Builder highlightColor(java.lang.Integer highlightColor)
public TextInput.Builder highlightColorRes(int resId)
public TextInput.Builder highlightColorAttr(int attrResId, int defResId)
public TextInput.Builder highlightColorAttr(int attrResId)
public TextInput.Builder hint(java.lang.CharSequence hint)
public TextInput.Builder hintRes(int resId)
public TextInput.Builder hintRes(int resId, java.lang.Object... formatArgs)
public TextInput.Builder hintAttr(int attrResId, int defResId)
public TextInput.Builder hintAttr(int attrResId)
public TextInput.Builder hintColorStateList(ColorStateList hintColorStateList)
public TextInput.Builder imeOptions(int imeOptions)
public TextInput.Builder importantForAutofill(int importantForAutofill)
public TextInput.Builder initialText(java.lang.CharSequence initialText)
public TextInput.Builder initialTextRes(int resId)
public TextInput.Builder initialTextRes(int resId, java.lang.Object... formatArgs)
public TextInput.Builder initialTextAttr(int attrResId, int defResId)
public TextInput.Builder initialTextAttr(int attrResId)
public TextInput.Builder inputBackground(Drawable inputBackground)
public TextInput.Builder inputBackgroundRes(int resId)
public TextInput.Builder inputBackgroundAttr(int attrResId, int defResId)
public TextInput.Builder inputBackgroundAttr(int attrResId)
public TextInput.Builder inputFilter(InputFilter inputFilter)
public TextInput.Builder inputFilters(java.util.List<InputFilter> inputFilters)
public TextInput.Builder inputType(int inputType)
public TextInput.Builder keyListener(KeyListener keyListener)
public TextInput.Builder maxLines(int maxLines)
public TextInput.Builder minLines(int minLines)
public TextInput.Builder movementMethod(MovementMethod movementMethod)
public TextInput.Builder multiline(boolean multiline)
public TextInput.Builder rawInputType(int rawInputType)
public TextInput.Builder shadowColor(int shadowColor)
public TextInput.Builder shadowColorRes(int resId)
public TextInput.Builder shadowColorAttr(int attrResId, int defResId)
public TextInput.Builder shadowColorAttr(int attrResId)
public TextInput.Builder shadowDxPx(float shadowDx)
public TextInput.Builder shadowDxDip(float dip)
public TextInput.Builder shadowDxSp(float sip)
public TextInput.Builder shadowDxRes(int resId)
public TextInput.Builder shadowDxAttr(int attrResId, int defResId)
public TextInput.Builder shadowDxAttr(int attrResId)
public TextInput.Builder shadowDyPx(float shadowDy)
public TextInput.Builder shadowDyDip(float dip)
public TextInput.Builder shadowDySp(float sip)
public TextInput.Builder shadowDyRes(int resId)
public TextInput.Builder shadowDyAttr(int attrResId, int defResId)
public TextInput.Builder shadowDyAttr(int attrResId)
public TextInput.Builder shadowRadiusPx(float shadowRadius)
public TextInput.Builder shadowRadiusDip(float dip)
public TextInput.Builder shadowRadiusSp(float sip)
public TextInput.Builder shadowRadiusRes(int resId)
public TextInput.Builder shadowRadiusAttr(int attrResId, int defResId)
public TextInput.Builder shadowRadiusAttr(int attrResId)
public TextInput.Builder textAlignment(int textAlignment)
public TextInput.Builder textColorStateList(ColorStateList textColorStateList)
public TextInput.Builder textSizePx(int textSize)
public TextInput.Builder textSizeDip(float dip)
public TextInput.Builder textSizeSp(float sip)
public TextInput.Builder textSizeRes(int resId)
public TextInput.Builder textSizeAttr(int attrResId, int defResId)
public TextInput.Builder textSizeAttr(int attrResId)
public TextInput.Builder textWatcher(TextWatcher textWatcher)
public TextInput.Builder textWatchers(java.util.List<TextWatcher> textWatchers)
public TextInput.Builder typeface(Typeface typeface)
public TextInput.Builder textChangedEventHandler(EventHandler<TextChangedEvent> textChangedEventHandler)
public TextInput.Builder selectionChangedEventHandler(EventHandler<SelectionChangedEvent> selectionChangedEventHandler)
public TextInput.Builder inputFocusChangedEventHandler(EventHandler<InputFocusChangedEvent> inputFocusChangedEventHandler)
public TextInput.Builder keyUpEventHandler(EventHandler<KeyUpEvent> keyUpEventHandler)
public TextInput.Builder keyPreImeEventHandler(EventHandler<KeyPreImeEvent> keyPreImeEventHandler)
public TextInput.Builder editorActionEventHandler(EventHandler<EditorActionEvent> editorActionEventHandler)
public TextInput.Builder setTextEventHandler(EventHandler<SetTextEvent> setTextEventHandler)
public TextInput.Builder inputConnectionEventHandler(EventHandler<InputConnectionEvent> inputConnectionEventHandler)
@Deprecated public TextInput.Builder requestFocusTrigger(EventTrigger requestFocusTrigger)
@Deprecated public TextInput.Builder clearFocusTrigger(EventTrigger clearFocusTrigger)
@Deprecated public TextInput.Builder getTextTrigger(EventTrigger getTextTrigger)
@Deprecated public TextInput.Builder getLineCountTrigger(EventTrigger getLineCountTrigger)
@Deprecated public TextInput.Builder setTextTrigger(EventTrigger setTextTrigger)
@Deprecated public TextInput.Builder replaceTextTrigger(EventTrigger replaceTextTrigger)
@Deprecated public TextInput.Builder dispatchKeyTrigger(EventTrigger dispatchKeyTrigger)
@Deprecated public TextInput.Builder setSelectionTrigger(EventTrigger setSelectionTrigger)
public TextInput.Builder getThis()
getThis
in class Component.Builder<TextInput.Builder>
public TextInput build()
build
in class Component.Builder<TextInput.Builder>