public class DefaultNestedTreeHolder extends DefaultInternalNode implements InternalNode.NestedTreeHolder, LithoLayoutResult.NestedTreeHolderResult
InternalNode.NestedTreeHolder
LithoLayoutResult.NestedTreeHolderResult
mBackground, mBorderColors, mBorderRadius, mDuplicateChildrenStates, mDuplicateParentState, mFocusedHandler, mForceViewWrapping, mForeground, mFullImpressionHandler, mImportantForAccessibility, mInvisibleHandler, mLayerPaint, mLayerType, mNodeInfo, mPrivateFlags, mStateListAnimator, mStateListAnimatorRes, mTestKey, mTransitionKey, mTransitionKeyType, mTransitionOwnerKey, mUnfocusedHandler, mVisibilityChangedHandler, mVisibleHandler, mVisibleHeightRatio, mVisibleWidthRatio, PFLAG_BACKGROUND_IS_SET, PFLAG_BORDER_IS_SET, PFLAG_DUPLICATE_CHILDREN_STATES_IS_SET, PFLAG_DUPLICATE_PARENT_STATE_IS_SET, PFLAG_FOCUSED_HANDLER_IS_SET, PFLAG_FOREGROUND_IS_SET, PFLAG_FULL_IMPRESSION_HANDLER_IS_SET, PFLAG_INVISIBLE_HANDLER_IS_SET, PFLAG_PADDING_IS_SET, PFLAG_STATE_LIST_ANIMATOR_RES_SET, PFLAG_STATE_LIST_ANIMATOR_SET, PFLAG_TRANSITION_KEY_IS_SET, PFLAG_TRANSITION_KEY_TYPE_IS_SET, PFLAG_UNFOCUSED_HANDLER_IS_SET, PFLAG_VISIBLE_HANDLER_IS_SET, PFLAG_VISIBLE_RECT_CHANGED_HANDLER_IS_SET
Modifier | Constructor and Description |
---|---|
protected |
DefaultNestedTreeHolder(ComponentContext context,
TreeProps props) |
Modifier and Type | Method and Description |
---|---|
void |
alignSelf(YogaAlign alignSelf) |
void |
aspectRatio(float aspectRatio) |
protected void |
clean()
Release properties which are not longer required for the current layout pass or release
properties which should be reset during reconciliation.
|
void |
copyInto(InternalNode target) |
void |
flex(float flex) |
void |
flexBasisPercent(float percent) |
void |
flexBasisPx(int flexBasis) |
void |
flexGrow(float flexGrow) |
void |
flexShrink(float flexShrink) |
LithoLayoutResult |
getNestedResult() |
TreeProps |
getPendingTreeProps()
The
TreeProps to to be set into the new ComponentContext before resolving the
nested tree. |
void |
heightPercent(float percent) |
void |
heightPx(int height) |
void |
isReferenceBaseline(boolean isReferenceBaseline) |
void |
layoutDirection(YogaDirection direction) |
void |
marginAuto(YogaEdge edge) |
void |
marginPercent(YogaEdge edge,
float percent) |
void |
marginPx(YogaEdge edge,
int margin) |
void |
maxHeightPercent(float percent) |
void |
maxHeightPx(int maxHeight) |
void |
maxWidthPercent(float percent) |
void |
maxWidthPx(int maxWidth) |
void |
minHeightPercent(float percent) |
void |
minHeightPx(int minHeight) |
void |
minWidthPercent(float percent) |
void |
minWidthPx(int minWidth) |
void |
paddingPercent(YogaEdge edge,
float percent) |
void |
paddingPx(YogaEdge edge,
int padding) |
void |
positionPercent(YogaEdge edge,
float percent) |
void |
positionPx(YogaEdge edge,
int position) |
void |
positionType(YogaPositionType positionType) |
void |
setBorderWidth(YogaEdge edge,
int borderWidth) |
void |
setNestedResult(LithoLayoutResult tree) |
void |
useHeightAsBaseline(boolean useHeightAsBaseline) |
void |
widthPercent(float percent) |
void |
widthPx(int width) |
addChildAt, addComponentNeedingPreviousRenderData, addTransition, addWorkingRanges, alignContent, alignItems, alignSelf, appendComponent, appendUnresolvedComponent, applyAttributes, areCachedMeasuresValid, aspectRatio, assertContextSpecificStyleNotSet, background, backgroundColor, backgroundRes, border, border, calculateLayout, calculateLayout, child, child, child, clone, deepClone, duplicateChildrenStates, duplicateParentState, flex, flexBasisAuto, flexBasisPercent, flexBasisPx, flexDirection, flexGrow, flexShrink, focusedHandler, foreground, foregroundColor, foregroundRes, freeze, fullImpressionHandler, getBackground, getBorderColors, getBorderPathEffect, getBorderRadius, getChildAt, getChildCount, getChildIndex, getComponentKeys, getComponents, getComponentsNeedingPreviousRenderData, getContext, getDiffNode, getFocusedHandler, getForeground, getFullImpressionHandler, getHeadComponent, getHeadComponentKey, getHeight, getImportantForAccessibility, getInvisibleHandler, getLastHeightSpec, getLastMeasuredHeight, getLastMeasuredWidth, getLastWidthSpec, getLayerPaint, getLayerType, getLayoutBorder, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getNodeInfo, getOrCreateNodeInfo, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResolvedLayoutDirection, getSimpleName, getStateListAnimator, getStateListAnimatorRes, getStyleDirection, getStyleHeight, getStyleWidth, getTailComponent, getTailComponentKey, getTestKey, getTouchExpansion, getTouchExpansionBottom, getTouchExpansionLeft, getTouchExpansionRight, getTouchExpansionTop, getTransitionGlobalKey, getTransitionKey, getTransitionKeyType, getTransitionOwnerKey, getTransitions, getUnfocusedHandler, getUnresolvedComponents, getVisibilityChangedHandler, getVisibleHandler, getVisibleHeightRatio, getVisibleWidthRatio, getWidth, getWorkingRangeRegistrations, getX, getY, getYogaNode, hasBorderColor, hasStateListAnimatorResSet, hasTouchExpansion, hasTransitionKey, hasVisibilityHandlers, heightAuto, heightPercent, heightPx, importantForAccessibility, invisibleHandler, isDuplicateChildrenStatesEnabled, isDuplicateParentStateEnabled, isForceViewWrapping, isImportantForAccessibilityIsSet, isInitialized, isLayoutDirectionInherit, isPaddingPercent, isPaddingSet, isReferenceBaseline, justifyContent, layerType, layoutDirection, marginAuto, marginPercent, marginPx, maxHeightPercent, maxHeightPx, maxWidthPercent, maxWidthPx, minHeightPercent, minHeightPx, minWidthPercent, minWidthPx, positionPercent, positionPx, positionType, reconcile, recursivelyResolveLayoutDirection, registerDebugComponent, removeChildAt, resetResolvedLayoutProperties, setCachedMeasuresValid, setDiffNode, setIsPaddingPercent, setLastHeightSpec, setLastMeasuredHeight, setLastMeasuredWidth, setLastWidthSpec, setMeasureFunction, setNodeInfo, setStyleHeightFromSpec, setStyleWidthFromSpec, shouldDrawBorders, stateListAnimator, stateListAnimatorRes, testKey, touchExpansionPx, transitionKey, transitionKeyType, unfocusedHandler, useHeightAsBaseline, visibilityChangedHandler, visibleHandler, visibleHeightRatio, visibleWidthRatio, widthAuto, widthPercent, widthPx, wrap, wrapInView
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChildAt, addComponentNeedingPreviousRenderData, addTransition, addWorkingRanges, alignContent, alignItems, appendComponent, appendUnresolvedComponent, applyAttributes, background, backgroundColor, backgroundRes, border, border, calculateLayout, calculateLayout, child, child, child, deepClone, duplicateChildrenStates, duplicateParentState, flexBasisAuto, flexDirection, focusedHandler, foreground, foregroundColor, foregroundRes, fullImpressionHandler, getOrCreateNodeInfo, heightAuto, importantForAccessibility, invisibleHandler, justifyContent, layerType, reconcile, registerDebugComponent, removeChildAt, resetResolvedLayoutProperties, setCachedMeasuresValid, setDiffNode, setMeasureFunction, setNodeInfo, setStyleHeightFromSpec, setStyleWidthFromSpec, stateListAnimator, stateListAnimatorRes, testKey, touchExpansionPx, transitionKey, transitionKeyType, unfocusedHandler, visibilityChangedHandler, visibleHandler, visibleHeightRatio, visibleWidthRatio, widthAuto, wrap, wrapInView
freeze
areCachedMeasuresValid, assertContextSpecificStyleNotSet, getBorderColors, getBorderPathEffect, getBorderRadius, getChildAt, getChildCount, getChildIndex, getComponentKeys, getComponents, getComponentsNeedingPreviousRenderData, getContext, getDiffNode, getFocusedHandler, getForeground, getFullImpressionHandler, getHeadComponent, getHeadComponentKey, getImportantForAccessibility, getInvisibleHandler, getLastHeightSpec, getLastMeasuredHeight, getLastMeasuredWidth, getLastWidthSpec, getLayerPaint, getLayerType, getLayoutBorder, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getNodeInfo, getParent, getSimpleName, getStateListAnimator, getStateListAnimatorRes, getStyleDirection, getStyleHeight, getStyleWidth, getTailComponent, getTailComponentKey, getTestKey, getTouchExpansion, getTouchExpansionBottom, getTouchExpansionLeft, getTouchExpansionRight, getTouchExpansionTop, getTransitionGlobalKey, getTransitionKey, getTransitionKeyType, getTransitionOwnerKey, getTransitions, getUnfocusedHandler, getUnresolvedComponents, getVisibilityChangedHandler, getVisibleHandler, getVisibleHeightRatio, getVisibleWidthRatio, getWorkingRangeRegistrations, getYogaNode, hasBorderColor, hasStateListAnimatorResSet, hasTouchExpansion, hasTransitionKey, hasVisibilityHandlers, isDuplicateChildrenStatesEnabled, isDuplicateParentStateEnabled, isForceViewWrapping, isImportantForAccessibilityIsSet, isInitialized, isLayoutDirectionInherit, recursivelyResolveLayoutDirection, setLastHeightSpec, setLastMeasuredHeight, setLastMeasuredWidth, setLastWidthSpec, shouldDrawBorders
getBackground, getHeight, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getResolvedLayoutDirection, getWidth, getX, getY, isPaddingSet
protected DefaultNestedTreeHolder(ComponentContext context, TreeProps props)
public TreeProps getPendingTreeProps()
LithoLayoutResult.NestedTreeHolderResult
TreeProps
to to be set into the new ComponentContext
before resolving the
nested tree.getPendingTreeProps
in interface LithoLayoutResult.NestedTreeHolderResult
public LithoLayoutResult getNestedResult()
getNestedResult
in interface LithoLayoutResult.NestedTreeHolderResult
public void setNestedResult(LithoLayoutResult tree)
setNestedResult
in interface LithoLayoutResult.NestedTreeHolderResult
public void paddingPercent(YogaEdge edge, float percent)
paddingPercent
in class DefaultInternalNode
public void paddingPx(YogaEdge edge, int padding)
paddingPx
in class DefaultInternalNode
public void setBorderWidth(YogaEdge edge, int borderWidth)
setBorderWidth
in interface InternalNode
setBorderWidth
in class DefaultInternalNode
protected void clean()
DefaultInternalNode
clean
in class DefaultInternalNode
public void copyInto(InternalNode target)
copyInto
in interface Copyable<InternalNode>
public void widthPx(int width)
public void widthPercent(float percent)
public void minWidthPx(int minWidth)
public void maxWidthPx(int maxWidth)
public void minWidthPercent(float percent)
public void maxWidthPercent(float percent)
public void heightPx(int height)
public void heightPercent(float percent)
public void minHeightPx(int minHeight)
public void maxHeightPx(int maxHeight)
public void minHeightPercent(float percent)
public void maxHeightPercent(float percent)
public void layoutDirection(YogaDirection direction)
public void alignSelf(YogaAlign alignSelf)
public void flex(float flex)
public void flexGrow(float flexGrow)
public void flexShrink(float flexShrink)
public void flexBasisPx(int flexBasis)
public void flexBasisPercent(float percent)
public void aspectRatio(float aspectRatio)
public void positionType(YogaPositionType positionType)
public void positionPx(YogaEdge edge, int position)
public void positionPercent(YogaEdge edge, float percent)
public void marginPx(YogaEdge edge, int margin)
public void marginPercent(YogaEdge edge, float percent)
public void marginAuto(YogaEdge edge)
public void isReferenceBaseline(boolean isReferenceBaseline)
public void useHeightAsBaseline(boolean useHeightAsBaseline)