public class ReactTextInputShadowNode extends ReactBaseTextShadowNode implements YogaMeasureFunction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_PLACEHOLDER |
static java.lang.String |
PROP_SELECTION |
static java.lang.String |
PROP_TEXT |
DEFAULT_TEXT_SHADOW_COLOR, mBackgroundColor, mColor, mContainsImages, mFontFamily, mFontStyle, mFontWeight, mHyphenationFrequency, mIncludeFontPadding, mInlineViews, mIsBackgroundColorSet, mIsColorSet, mIsLineThroughTextDecorationSet, mIsUnderlineTextDecorationSet, mJustificationMode, mNumberOfLines, mTextAlign, mTextAttributes, mTextBreakStrategy, mTextShadowColor, mTextShadowOffsetDx, mTextShadowOffsetDy, mTextShadowRadius, mTextTransform, PROP_SHADOW_COLOR, PROP_SHADOW_OFFSET, PROP_SHADOW_OFFSET_HEIGHT, PROP_SHADOW_OFFSET_WIDTH, PROP_SHADOW_RADIUS, PROP_TEXT_TRANSFORM, UNSET| Constructor and Description |
|---|
ReactTextInputShadowNode() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPlaceholder() |
java.lang.String |
getText() |
boolean |
isVirtualAnchor()
Nodes that return
true will be treated as a root view for the virtual nodes tree. |
boolean |
isYogaLeafNode()
Nodes that return
true will not manage (and and remove) child Yoga nodes. |
long |
measure(YogaNode node,
float width,
YogaMeasureMode widthMode,
float height,
YogaMeasureMode heightMode)
Return a value created by YogaMeasureOutput.make(width, height);
|
void |
onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue)
Called after layout step at the end of the UI batch from
UIManagerModule. |
void |
setLocalData(java.lang.Object data) |
void |
setMostRecentEventCount(int mostRecentEventCount) |
void |
setPadding(int spacingType,
float padding) |
void |
setPlaceholder(java.lang.String placeholder) |
void |
setSelection(ReadableMap selection) |
void |
setText(java.lang.String text) |
void |
setTextBreakStrategy(java.lang.String textBreakStrategy) |
void |
setThemedContext(ThemedReactContext themedContext) |
setAllowFontScaling, setBackgroundColor, setColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setIncludeFontPadding, setLetterSpacing, setLineHeight, setMaxFontSizeMultiplier, setNumberOfLines, setTextAlign, setTextDecorationLine, setTextShadowColor, setTextShadowOffset, setTextShadowRadius, setTextTransform, spannedFromShadowNodesetAlignContent, setAlignItems, setAlignSelf, setAspectRatio, setBorderWidths, setCollapsable, setDisplay, setFlex, setFlexBasis, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setHeight, setJustifyContent, setMargins, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPaddings, setPosition, setPositionValues, setShouldNotifyOnLayout, setWidthaddChildAt, addNativeChildAt, calculateLayout, calculateLayout, calculateLayoutOnChildren, dirty, dispatchUpdates, dispose, getChildAt, getChildCount, getHeightMeasureSpec, getHierarchyInfo, getLayoutDirection, getLayoutHeight, getLayoutParent, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeKind, getNativeOffsetForChild, getNativeParent, getPadding, getParent, getReactTag, getRootTag, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStylePadding, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, getWidthMeasureSpec, hasNewLayout, hasUnseenUpdates, hasUpdates, hoistNativeChildren, indexOf, indexOfNativeChild, isDescendantOf, isDirty, isLayoutOnly, isMeasureDefined, isVirtual, markLayoutSeen, markUpdated, markUpdateSeen, onAfterUpdateTransaction, onBeforeLayout, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBaselineFunction, setBorder, setDefaultPadding, setDisplay, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setLayoutParent, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setMeasureSpecs, setOverflow, setPaddingPercent, setPosition, setPositionPercent, setPositionType, setReactTag, setRootTag, setStyleAspectRatio, setStyleHeight, setStyleHeightAuto, setStyleHeightPercent, setStyleMaxHeight, setStyleMaxHeightPercent, setStyleMaxWidth, setStyleMaxWidthPercent, setStyleMinHeight, setStyleMinHeightPercent, setStyleMinWidth, setStyleMinWidthPercent, setStyleWidth, setStyleWidthAuto, setStyleWidthPercent, setViewClassName, shouldNotifyOnLayout, toString, updatePropertiespublic static final java.lang.String PROP_TEXT
public static final java.lang.String PROP_PLACEHOLDER
public static final java.lang.String PROP_SELECTION
public void setThemedContext(ThemedReactContext themedContext)
setThemedContext in interface ReactShadowNode<ReactShadowNodeImpl>setThemedContext in class ReactShadowNodeImplpublic long measure(YogaNode node, float width, YogaMeasureMode widthMode, float height, YogaMeasureMode heightMode)
YogaMeasureFunctionmeasure in interface YogaMeasureFunctionpublic boolean isVirtualAnchor()
ReactShadowNodeImpltrue will be treated as a root view for the virtual nodes tree. It
means that all of its descendants will be "virtual" nodes. Good example is InputText
view that may have children Text nodes but this whole hierarchy will be mapped to a
single android EditText view.isVirtualAnchor in interface ReactShadowNode<ReactShadowNodeImpl>isVirtualAnchor in class ReactShadowNodeImplpublic boolean isYogaLeafNode()
ReactShadowNodeImpltrue will not manage (and and remove) child Yoga nodes. For example
ReactTextInputShadowNode or ReactTextShadowNode have child nodes, which do not
want Yoga to lay out, so in the eyes of Yoga it is a leaf node. Override this method in
subclass to enforce this requirement.isYogaLeafNode in interface ReactShadowNode<ReactShadowNodeImpl>isYogaLeafNode in class ReactShadowNodeImplpublic void setLocalData(java.lang.Object data)
setLocalData in interface ReactShadowNode<ReactShadowNodeImpl>setLocalData in class ReactShadowNodeImplpublic void setMostRecentEventCount(int mostRecentEventCount)
public void setText(java.lang.String text)
public java.lang.String getText()
public void setPlaceholder(java.lang.String placeholder)
public java.lang.String getPlaceholder()
public void setSelection(ReadableMap selection)
public void setTextBreakStrategy(java.lang.String textBreakStrategy)
setTextBreakStrategy in class ReactBaseTextShadowNodepublic void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue)
ReactShadowNodeImplUIManagerModule. May be used
to enqueue additional ui operations for the native view. Will only be called on nodes marked as
updated either with ReactShadowNodeImpl.dirty() or ReactShadowNodeImpl.markUpdated().onCollectExtraUpdates in interface ReactShadowNode<ReactShadowNodeImpl>onCollectExtraUpdates in class ReactShadowNodeImpluiViewOperationQueue - interface for enqueueing UI operationspublic void setPadding(int spacingType,
float padding)
setPadding in interface ReactShadowNode<ReactShadowNodeImpl>setPadding in class ReactShadowNodeImpl