public class Container
implements IContainer
Provides a base class implementation of the IContainer interface.
Constructors
Name | Description |
---|---|
Container() | Creates a Container object. |
Methods
Name | Description |
---|---|
add(IComponent component) | Adds a component to the container. |
add(IComponent component, String name) | Adds a component to the container. |
dispose() | Removes all components from a container. |
getComponent(String name) | Retreives a named component from the container. |
getComponents() | Retreives an array of all components from the container. |
remove(IComponent component) | Removes a component from the container. |
Creates a Container object.
Adds a component to the container.
Adds a component to the container.
Removes all components from a container.
Returns the component requested, or null if this component is not found.
Retreives a named component from the container.
Returns all components currently sited in this container.
Retreives an array of all components from the container.
Removes a component from the container.