Class AbstractComponentContainer

Extension to com.itmill.toolkit.ui.AbstractComponent that defines the default implementation for the methods in com.itmill.toolkit.ui.ComponentContainer . Basic UI components that need to contain other components inherit this class to easily qualify as a component container.

Synopsis

Since

3.0

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.ui.AbstractComponent -> com.itmill.toolkit.ui.AbstractComponentContainer

AbstractComponentContainer()

Constructs a new component container.

addComponent(Component)

This only implements the events and component parent calls. The extending classes must implement component list maintenance and call this method after component list maintenance.

addListener(ComponentContainer.ComponentAttachListener)

Description copied from interface: addListener

Listen component attach events

addListener(ComponentContainer.ComponentDetachListener)

Description copied from interface: addListener

Listen component detach events

attach()

See Also
attach()

Notifies all contained components that the container is attached to a window.

detach()

See Also
detach()

Notifies all contained components that the container is detached from a window.

moveComponentsFrom(ComponentContainer)

Parameters

source

the container which contains the components that are to be moved to this container

Description copied from interface: moveComponentsFrom

Moves all components from an another container into this container. The components are removed from source .

removeAllComponents()

Removes all components from the container. This should probably be reimplemented in extending classes for a more powerfu implementation.

removeComponent(Component)

This only implements the events and component parent calls. The extending classes must implement component list maintenance and call this method before component list maintenance.

removeListener(ComponentContainer.ComponentAttachListener)

Description copied from interface: removeListener

Stop listening component attach events

removeListener(ComponentContainer.ComponentDetachListener)

Description copied from interface: removeListener

Stop listening component detach events