public abstract class SurfaceContainer

  1. Object
  2. SurfaceNode
  3. SurfaceContainer

Known subtypesSurfaceBox, SurfaceColumn, SurfaceRow

The base class of surface nodes that hold children: SurfaceColumn, SurfaceRow and SurfaceBox. Descriptors are limited to 8 nesting levels so they stay within the memory and transaction budgets of platform widget renderers.

Constructors

public SurfaceContainer()

Methods

public SurfaceContainer add(SurfaceNode child)Adds a child node.
public List<SurfaceNode> getChildren()Returns the live list of children.

Inherited methods

Constructor details

SurfaceContainer

public SurfaceContainer()

Method details

add

public SurfaceContainer add(SurfaceNode child)
Adds a child node.

Parameters

child SurfaceNode
the node to append

Returns

this container, for chaining

getChildren

public List<SurfaceNode> getChildren()
Returns the live list of children.