All Methods Instance Methods Abstract Methods
Modifier and Type |
Method and Description |
void |
addChildAt(InternalNode child,
int index) |
void |
addComponentNeedingPreviousRenderData(Component component) |
void |
addTransition(Transition transition) |
void |
addWorkingRanges(List<com.facebook.litho.WorkingRangeContainer.Registration> registrations) |
InternalNode |
alignContent(YogaAlign alignContent) |
InternalNode |
alignItems(YogaAlign alignItems) |
void |
alignSelf(YogaAlign alignSelf) |
void |
appendComponent(Component component) |
void |
appendUnresolvedComponent(Component component) |
void |
applyAttributes(TypedArray a) |
boolean |
areCachedMeasuresValid() |
void |
aspectRatio(float aspectRatio) |
void |
assertContextSpecificStyleNotSet() |
InternalNode |
background(Drawable background) |
InternalNode |
backgroundColor(int backgroundColor) |
InternalNode |
backgroundRes(int resId) |
InternalNode |
border(Border border) |
void |
border(Edges width,
int[] colors,
float[] radii) |
void |
calculateLayout() |
void |
calculateLayout(float width,
float height) |
InternalNode |
child(Component.Builder<?> child) |
InternalNode |
child(Component child) |
InternalNode |
child(InternalNode child) |
InternalNode |
deepClone() |
InternalNode |
duplicateParentState(boolean duplicateParentState) |
void |
flex(float flex) |
InternalNode |
flexBasisAuto()
Used by stetho to re-set auto value
|
void |
flexBasisPercent(float percent) |
void |
flexBasisPx(int flexBasis) |
InternalNode |
flexDirection(YogaFlexDirection direction) |
void |
flexGrow(float flexGrow) |
void |
flexShrink(float flexShrink) |
InternalNode |
focusedHandler(EventHandler<FocusedVisibleEvent> focusedHandler) |
InternalNode |
foreground(Drawable foreground) |
InternalNode |
foregroundColor(int foregroundColor) |
InternalNode |
foregroundRes(int resId) |
InternalNode |
fullImpressionHandler(EventHandler<FullImpressionVisibleEvent> fullImpressionHandler) |
int[] |
getBorderColors() |
PathEffect |
getBorderPathEffect() |
float[] |
getBorderRadius() |
InternalNode |
getChildAt(int index) |
int |
getChildCount() |
int |
getChildIndex(InternalNode child) |
List<Component> |
getComponents()
Return the list of components contributing to this InternalNode.
|
ArrayList<Component> |
getComponentsNeedingPreviousRenderData() |
ComponentContext |
getContext() |
DiffNode |
getDiffNode() |
EventHandler<FocusedVisibleEvent> |
getFocusedHandler() |
Drawable |
getForeground() |
EventHandler<FullImpressionVisibleEvent> |
getFullImpressionHandler() |
Component |
getHeadComponent() |
int |
getImportantForAccessibility() |
EventHandler<InvisibleEvent> |
getInvisibleHandler() |
int |
getLastHeightSpec() |
float |
getLastMeasuredHeight()
The last value the measure funcion associated with this node Component returned for the
height.
|
float |
getLastMeasuredWidth()
The last value the measure funcion associated with this node Component returned for the
width.
|
int |
getLastWidthSpec() |
int |
getLayoutBorder(YogaEdge edge) |
float |
getMaxHeight() |
float |
getMaxWidth() |
float |
getMinHeight() |
float |
getMinWidth() |
InternalNode |
getNestedTree() |
InternalNode |
getNestedTreeHolder() |
NodeInfo |
getNodeInfo() |
InternalNode.NestedTreeProps |
getOrCreateNestedTreeProps() |
NodeInfo |
getOrCreateNodeInfo() |
InternalNode |
getParent() |
TreeProps |
getPendingTreeProps() |
String |
getSimpleName() |
StateListAnimator |
getStateListAnimator() |
int |
getStateListAnimatorRes() |
YogaDirection |
getStyleDirection() |
float |
getStyleHeight() |
float |
getStyleWidth() |
Component |
getTailComponent() |
String |
getTestKey()
A unique identifier which may be set for retrieving a component and its bounds when testing.
|
Edges |
getTouchExpansion() |
int |
getTouchExpansionBottom() |
int |
getTouchExpansionLeft() |
int |
getTouchExpansionRight() |
int |
getTouchExpansionTop() |
String |
getTransitionKey() |
Transition.TransitionKeyType |
getTransitionKeyType() |
String |
getTransitionOwnerKey() |
ArrayList<Transition> |
getTransitions() |
EventHandler<UnfocusedVisibleEvent> |
getUnfocusedHandler() |
List<Component> |
getUnresolvedComponents() |
EventHandler<VisibilityChangedEvent> |
getVisibilityChangedHandler() |
EventHandler<VisibleEvent> |
getVisibleHandler() |
float |
getVisibleHeightRatio() |
float |
getVisibleWidthRatio() |
ArrayList<com.facebook.litho.WorkingRangeContainer.Registration> |
getWorkingRangeRegistrations() |
YogaNode |
getYogaNode() |
boolean |
hasBorderColor() |
boolean |
hasNestedTree() |
boolean |
hasNewLayout() |
boolean |
hasStateListAnimatorResSet() |
boolean |
hasTouchExpansion() |
boolean |
hasTransitionKey() |
boolean |
hasViewOutput() |
boolean |
hasVisibilityHandlers() |
InternalNode |
heightAuto()
Used by stetho to re-set auto value
|
void |
heightPercent(float percent) |
void |
heightPx(int height) |
InternalNode |
importantForAccessibility(int importantForAccessibility) |
InternalNode |
invisibleHandler(EventHandler<InvisibleEvent> invisibleHandler) |
boolean |
isDuplicateParentStateEnabled() |
boolean |
isForceViewWrapping() |
boolean |
isImportantForAccessibilityIsSet() |
boolean |
isInitialized()
For testing and debugging purposes only where initialization may have not occurred.
|
boolean |
isLayoutDirectionInherit() |
boolean |
isNestedTreeHolder() |
void |
isReferenceBaseline(boolean isReferenceBaseline) |
InternalNode |
justifyContent(YogaJustify justifyContent) |
void |
layoutDirection(YogaDirection direction) |
void |
marginAuto(YogaEdge edge) |
void |
marginPercent(YogaEdge edge,
float percent) |
void |
marginPx(YogaEdge edge,
int margin) |
void |
markHasViewOutput(boolean hasViewOutput) |
void |
markIsNestedTreeHolder(TreeProps currentTreeProps)
Mark this node as a nested tree root holder.
|
void |
markLayoutSeen() |
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) |
InternalNode |
reconcile(ComponentContext c,
Component next)
Reconcile returns a new InternalNode tree where only mutated sub-trees are recreated and all
other sub-trees are copied.
|
YogaDirection |
recursivelyResolveLayoutDirection()
Continually walks the node hierarchy until a node returns a non inherited layout direction
|
void |
registerDebugComponent(DebugComponent debugComponent) |
InternalNode |
removeChildAt(int index) |
void |
resetResolvedLayoutProperties()
This method marks all resolved layout property values to undefined.
|
void |
setBorderWidth(YogaEdge edge,
int borderWidth) |
void |
setCachedMeasuresValid(boolean valid) |
void |
setDiffNode(DiffNode diffNode) |
void |
setLastHeightSpec(int heightSpec) |
void |
setLastMeasuredHeight(float lastMeasuredHeight)
Sets the last value the measure funcion associated with this node Component returned
for the height.
|
void |
setLastMeasuredWidth(float lastMeasuredWidth)
Sets the last value the measure funcion associated with this node Component returned
for the width.
|
void |
setLastWidthSpec(int widthSpec) |
void |
setMeasureFunction(YogaMeasureFunction measureFunction) |
void |
setNestedTree(InternalNode nestedTree)
Set the nested tree before measuring it in order to transfer over important information such as
layout direction needed during measurement.
|
void |
setNodeInfo(NodeInfo nodeInfo) |
void |
setRootComponent(Component component) |
void |
setStyleHeightFromSpec(int heightSpec) |
void |
setStyleWidthFromSpec(int widthSpec) |
boolean |
shouldDrawBorders() |
InternalNode |
stateListAnimator(StateListAnimator stateListAnimator) |
InternalNode |
stateListAnimatorRes(int resId) |
InternalNode |
testKey(String testKey) |
InternalNode |
touchExpansionPx(YogaEdge edge,
int touchExpansion) |
InternalNode |
transitionKey(String key,
String ownerKey) |
InternalNode |
transitionKeyType(Transition.TransitionKeyType type) |
InternalNode |
unfocusedHandler(EventHandler<UnfocusedVisibleEvent> unfocusedHandler) |
void |
useHeightAsBaseline(boolean useHeightAsBaseline) |
InternalNode |
visibilityChangedHandler(EventHandler<VisibilityChangedEvent> visibilityChangedHandler) |
InternalNode |
visibleHandler(EventHandler<VisibleEvent> visibleHandler) |
InternalNode |
visibleHeightRatio(float visibleHeightRatio) |
InternalNode |
visibleWidthRatio(float visibleWidthRatio) |
InternalNode |
widthAuto() |
void |
widthPercent(float percent) |
void |
widthPx(int width) |
InternalNode |
wrap(YogaWrap wrap) |
InternalNode |
wrapInView() |