public class ReactRawTextShadowNode extends ReactShadowNodeImpl
ReactShadowNode
class for pure raw text node (aka textContent
in terms of DOM).
Raw text node can only have simple string value without any attributes, properties or state.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_TEXT |
Constructor and Description |
---|
ReactRawTextShadowNode() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText() |
boolean |
isVirtual()
Nodes that return
true will be treated as "virtual" nodes. |
ReactShadowNodeImpl |
mutableCopy() |
void |
setText(java.lang.String text) |
java.lang.String |
toString() |
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, isVirtualAnchor, isYogaLeafNode, markLayoutSeen, markUpdated, markUpdateSeen, mutableCopyWithNewChildren, mutableCopyWithNewChildrenAndProps, mutableCopyWithNewProps, onAfterUpdateTransaction, onBeforeLayout, onCollectExtraUpdates, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBaselineFunction, setBorder, setDefaultPadding, setDisplay, setFlex, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setLocalData, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setOverflow, setPadding, setPaddingPercent, setPosition, setPositionPercent, setPositionType, setReactTag, setRootNode, setShouldNotifyOnLayout, setStyleAspectRatio, setStyleHeight, setStyleHeightAuto, setStyleHeightPercent, setStyleMaxHeight, setStyleMaxHeightPercent, setStyleMaxWidth, setStyleMaxWidthPercent, setStyleMinHeight, setStyleMinHeightPercent, setStyleMinWidth, setStyleMinWidthPercent, setStyleWidth, setStyleWidthAuto, setStyleWidthPercent, setThemedContext, setViewClassName, shouldNotifyOnLayout, updateProperties
public static final java.lang.String PROP_TEXT
public ReactShadowNodeImpl mutableCopy()
mutableCopy
in interface ReactShadowNode<ReactShadowNodeImpl>
mutableCopy
in class ReactShadowNodeImpl
ReactShadowNode
public void setText(@Nullable java.lang.String text)
@Nullable public java.lang.String getText()
public boolean isVirtual()
ReactShadowNodeImpl
true
will be treated as "virtual" nodes. That is, nodes that are not
mapped into native views (e.g. nested text node). By default this method returns false
.isVirtual
in interface ReactShadowNode<ReactShadowNodeImpl>
isVirtual
in class ReactShadowNodeImpl
public java.lang.String toString()
toString
in class ReactShadowNodeImpl