Extension to the
Component interface which adds to it the capacity
to contain other components. All UI elements that can have child elements
implement this interface.
author: IT Mill Ltd. version: 3.1.1 since: 3.0
Inner Class :public interface ComponentAttachListener
Inner Class :public interface ComponentDetachListener
Inner Class :public class ComponentAttachEvent extends Component.Event
Inner Class :public class ComponentDetachEvent extends Component.Event
Gets an iterator to the collection of contained components. Using
this iterator it is possible to step through all components contained
in this container.
component iterator
Moves all components from an another container into this container.
The components are removed from source.
Parameters: source - the container which contains the components that are tobe moved to this container
Replace a component in the container with another one without changing position.
This method replaces component with another one is such way that the new component
overtakes the position of the old component. If the old component is not in the
container, the new component is added to the container. If the both component are
already in the container, their positions are swapped.
Component attach and detach events should be taken care as with add and remove.
Parameters: oldComponent - The old component that will be replaced. Parameters: newComponent - The new component to be replaced