public class ReactTextInputShadowNode extends ReactBaseTextShadowNode implements YogaMeasureFunction
Modifier and Type | Field and Description |
---|---|
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, PROP_SHADOW_COLOR, PROP_SHADOW_OFFSET, PROP_SHADOW_OFFSET_HEIGHT, PROP_SHADOW_OFFSET_WIDTH, PROP_SHADOW_RADIUS, UNSET
Constructor and Description |
---|
ReactTextInputShadowNode() |
Modifier and Type | Method and Description |
---|---|
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() |
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 |
setText(java.lang.String text) |
void |
setTextBreakStrategy(java.lang.String textBreakStrategy) |
void |
setThemedContext(ThemedReactContext themedContext) |
getEffectiveLineHeight, setAllowFontScaling, setBackgroundColor, setColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setIncludeFontPadding, setLetterSpacing, setLineHeight, setNumberOfLines, setTextAlign, setTextDecorationLine, setTextShadowColor, setTextShadowOffset, setTextShadowRadius, spannedFromShadowNode
setAlignContent, setAlignItems, setAlignSelf, setAspectRatio, setBorderWidths, setDisplay, setFlex, setFlexBasis, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setHeight, setJustifyContent, setMargins, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPaddings, setPosition, setPositionValues, setShouldNotifyOnLayout, setWidth
addChildAt, addNativeChildAt, calculateLayout, dirty, dispatchUpdates, dispose, getChildAt, getChildCount, getHierarchyInfo, getLayoutDirection, getLayoutHeight, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeOffsetForChild, getNativeParent, getNewProps, getPadding, getParent, getReactTag, getRootNode, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStylePadding, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, hasNewLayout, hasUnseenUpdates, hasUpdates, indexOf, indexOfNativeChild, isDescendantOf, isDirty, isLayoutOnly, isMeasureDefined, isVirtual, markLayoutSeen, markUpdated, markUpdateSeen, mutableCopyWithNewChildren, mutableCopyWithNewChildrenAndProps, mutableCopyWithNewProps, onAfterUpdateTransaction, onBeforeLayout, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBaselineFunction, setBorder, setDefaultPadding, setDisplay, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setOverflow, setPaddingPercent, setPosition, setPositionPercent, setPositionType, setReactTag, setRootNode, setStyleAspectRatio, setStyleHeight, setStyleHeightAuto, setStyleHeightPercent, setStyleMaxHeight, setStyleMaxHeightPercent, setStyleMaxWidth, setStyleMaxWidthPercent, setStyleMinHeight, setStyleMinHeightPercent, setStyleMinWidth, setStyleMinWidthPercent, setStyleWidth, setStyleWidthAuto, setStyleWidthPercent, setViewClassName, shouldNotifyOnLayout, toString, updateProperties
public static final java.lang.String PROP_TEXT
public ReactTextInputShadowNode mutableCopy()
mutableCopy
in interface ReactShadowNode<ReactShadowNodeImpl>
mutableCopy
in class LayoutShadowNode
ReactShadowNode
public void setThemedContext(ThemedReactContext themedContext)
setThemedContext
in interface ReactShadowNode<ReactShadowNodeImpl>
setThemedContext
in class ReactShadowNodeImpl
public long measure(YogaNode node, float width, YogaMeasureMode widthMode, float height, YogaMeasureMode heightMode)
YogaMeasureFunction
measure
in interface YogaMeasureFunction
public boolean isVirtualAnchor()
ReactShadowNodeImpl
true
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 ReactShadowNodeImpl
public boolean isYogaLeafNode()
ReactShadowNodeImpl
true
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 ReactShadowNodeImpl
public void setLocalData(java.lang.Object data)
setLocalData
in interface ReactShadowNode<ReactShadowNodeImpl>
setLocalData
in class ReactShadowNodeImpl
public void setMostRecentEventCount(int mostRecentEventCount)
public void setText(@Nullable java.lang.String text)
@Nullable public java.lang.String getText()
public void setTextBreakStrategy(@Nullable java.lang.String textBreakStrategy)
setTextBreakStrategy
in class ReactBaseTextShadowNode
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue)
ReactShadowNodeImpl
UIManagerModule
. 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 ReactShadowNodeImpl
uiViewOperationQueue
- interface for enqueueing UI operationspublic void setPadding(int spacingType, float padding)
setPadding
in interface ReactShadowNode<ReactShadowNodeImpl>
setPadding
in class ReactShadowNodeImpl