public class LayoutShadowNode extends ReactShadowNodeImpl
Checking for isVirtual everywhere is a hack to get around the fact that some virtual nodes
still have layout properties set on them in JS: for example, a component that returns a
Modifier | Constructor and Description |
---|---|
|
LayoutShadowNode() |
protected |
LayoutShadowNode(LayoutShadowNode node) |
Modifier and Type | Method and Description |
---|---|
LayoutShadowNode |
mutableCopy() |
void |
setAlignContent(java.lang.String alignContent) |
void |
setAlignItems(java.lang.String alignItems) |
void |
setAlignSelf(java.lang.String alignSelf) |
void |
setAspectRatio(float aspectRatio) |
void |
setBorderWidths(int index,
float borderWidth) |
void |
setDisplay(java.lang.String display) |
void |
setFlex(float flex) |
void |
setFlexBasis(Dynamic flexBasis) |
void |
setFlexDirection(java.lang.String flexDirection) |
void |
setFlexGrow(float flexGrow) |
void |
setFlexShrink(float flexShrink) |
void |
setFlexWrap(java.lang.String flexWrap) |
void |
setHeight(Dynamic height) |
void |
setJustifyContent(java.lang.String justifyContent) |
void |
setMargins(int index,
Dynamic margin) |
void |
setMaxHeight(Dynamic maxHeight) |
void |
setMaxWidth(Dynamic maxWidth) |
void |
setMinHeight(Dynamic minHeight) |
void |
setMinWidth(Dynamic minWidth) |
void |
setOverflow(java.lang.String overflow) |
void |
setPaddings(int index,
Dynamic padding) |
void |
setPosition(java.lang.String position) |
void |
setPositionValues(int index,
Dynamic position) |
void |
setShouldNotifyOnLayout(boolean shouldNotifyOnLayout) |
void |
setWidth(Dynamic width) |
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, isVirtualAnchor, isYogaLeafNode, markLayoutSeen, markUpdated, markUpdateSeen, mutableCopyWithNewChildren, mutableCopyWithNewChildrenAndProps, mutableCopyWithNewProps, onAfterUpdateTransaction, onBeforeLayout, onCollectExtraUpdates, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBaselineFunction, setBorder, setDefaultPadding, setDisplay, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setLocalData, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setOverflow, setPadding, setPaddingPercent, setPosition, setPositionPercent, setPositionType, setReactTag, setRootNode, setStyleAspectRatio, setStyleHeight, setStyleHeightAuto, setStyleHeightPercent, setStyleMaxHeight, setStyleMaxHeightPercent, setStyleMaxWidth, setStyleMaxWidthPercent, setStyleMinHeight, setStyleMinHeightPercent, setStyleMinWidth, setStyleMinWidthPercent, setStyleWidth, setStyleWidthAuto, setStyleWidthPercent, setThemedContext, setViewClassName, shouldNotifyOnLayout, toString, updateProperties
public LayoutShadowNode()
protected LayoutShadowNode(LayoutShadowNode node)
public LayoutShadowNode mutableCopy()
mutableCopy
in interface ReactShadowNode<ReactShadowNodeImpl>
mutableCopy
in class ReactShadowNodeImpl
ReactShadowNode
public void setWidth(Dynamic width)
public void setMinWidth(Dynamic minWidth)
public void setMaxWidth(Dynamic maxWidth)
public void setHeight(Dynamic height)
public void setMinHeight(Dynamic minHeight)
public void setMaxHeight(Dynamic maxHeight)
public void setFlex(float flex)
setFlex
in interface ReactShadowNode<ReactShadowNodeImpl>
setFlex
in class ReactShadowNodeImpl
public void setFlexGrow(float flexGrow)
setFlexGrow
in interface ReactShadowNode<ReactShadowNodeImpl>
setFlexGrow
in class ReactShadowNodeImpl
public void setFlexShrink(float flexShrink)
setFlexShrink
in interface ReactShadowNode<ReactShadowNodeImpl>
setFlexShrink
in class ReactShadowNodeImpl
public void setFlexBasis(Dynamic flexBasis)
public void setAspectRatio(float aspectRatio)
public void setFlexDirection(@Nullable java.lang.String flexDirection)
public void setFlexWrap(@Nullable java.lang.String flexWrap)
public void setAlignSelf(@Nullable java.lang.String alignSelf)
public void setAlignItems(@Nullable java.lang.String alignItems)
public void setAlignContent(@Nullable java.lang.String alignContent)
public void setJustifyContent(@Nullable java.lang.String justifyContent)
public void setOverflow(@Nullable java.lang.String overflow)
public void setDisplay(@Nullable java.lang.String display)
public void setMargins(int index, Dynamic margin)
public void setPaddings(int index, Dynamic padding)
public void setBorderWidths(int index, float borderWidth)
public void setPositionValues(int index, Dynamic position)
public void setPosition(@Nullable java.lang.String position)
public void setShouldNotifyOnLayout(boolean shouldNotifyOnLayout)
setShouldNotifyOnLayout
in interface ReactShadowNode<ReactShadowNodeImpl>
setShouldNotifyOnLayout
in class ReactShadowNodeImpl