4. Hierarchical composition
Most toolkits have a notion of “containers”, embodied in a class.
Container is itself usually a subclass of the base Component class, so that Containers can recursively contain Containers.
- (“Composite” design pattern – Gamma et al.)
In this fashion, arbitrarily complex trees of components can be created.