public class ReactTextInputShadowNode extends ReactBaseTextShadowNode implements YogaMeasureFunction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_PLACEHOLDER |
static java.lang.String |
PROP_TEXT |
DEFAULT_TEXT_SHADOW_COLOR, mAllowFontScaling, mBackgroundColor, mColor, mContainsImages, mFontFamily, mFontSize, mFontSizeInput, mFontStyle, mFontWeight, mHeightOfTallestInlineImage, mIncludeFontPadding, mIsBackgroundColorSet, mIsColorSet, mIsLineThroughTextDecorationSet, mIsUnderlineTextDecorationSet, mLetterSpacing, mLetterSpacingInput, mLineHeight, mLineHeightInput, mNumberOfLines, mTextAlign, 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 |
|---|---|
protected ReactTextInputShadowNode |
copy() |
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);
|
ReactTextInputShadowNode |
mutableCopy(long instanceHandle) |
ReactTextInputShadowNode |
mutableCopyWithNewChildren(long instanceHandle) |
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 |
setText(java.lang.String text) |
void |
setTextBreakStrategy(java.lang.String textBreakStrategy) |
void |
setThemedContext(ThemedReactContext themedContext) |
getDefaultFontSize, getEffectiveLineHeight, setAllowFontScaling, setBackgroundColor, setColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setIncludeFontPadding, setLetterSpacing, setLineHeight, setNumberOfLines, setTextAlign, setTextDecorationLine, setTextShadowColor, setTextShadowOffset, setTextShadowRadius, setTextTransform, spannedFromShadowNodesetAlignContent, setAlignItems, setAlignSelf, setAspectRatio, setBorderWidths, setDisplay, setFlex, setFlexBasis, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setHeight, setJustifyContent, setMargins, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPaddings, setPosition, setPositionValues, setShouldNotifyOnLayout, setWidthaddChildAt, addNativeChildAt, calculateLayout, dirty, dispatchUpdates, dispose, getChildAt, getChildCount, getChildrenList, getHierarchyInfo, getInstanceHandle, getLayoutDirection, getLayoutHeight, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeOffsetForChild, getNativeParent, getNewProps, getOriginalReactShadowNode, getPadding, getParent, getReactTag, getRootTag, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStylePadding, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, hasNewLayout, hasUnseenUpdates, hasUpdates, indexOf, indexOfNativeChild, isDescendantOf, isDirty, isLayoutOnly, isMeasureDefined, isSealed, isVirtual, markAsSealed, markLayoutSeen, markUpdated, markUpdateSeen, mutableCopyWithNewChildrenAndProps, mutableCopyWithNewProps, onAfterUpdateTransaction, onBeforeLayout, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBaselineFunction, setBorder, setDefaultPadding, setDisplay, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexWrap, setInstanceHandle, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setOriginalReactShadowNode, 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, updateProperties, updateScreenLayoutpublic static final java.lang.String PROP_TEXT
public static final java.lang.String PROP_PLACEHOLDER
protected ReactTextInputShadowNode copy()
copy in class LayoutShadowNodepublic ReactTextInputShadowNode mutableCopy(long instanceHandle)
mutableCopy in interface ReactShadowNode<ReactShadowNodeImpl>mutableCopy in class ReactShadowNodeImplReactShadowNodepublic ReactTextInputShadowNode mutableCopyWithNewChildren(long instanceHandle)
mutableCopyWithNewChildren in interface ReactShadowNode<ReactShadowNodeImpl>mutableCopyWithNewChildren in class ReactShadowNodeImplpublic 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 NativeViewHierarchyManager will not try to perform manageChildren
operation on such views. 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 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