:: com :: sun :: star :: container ::

interface XContainer
Base Interfaces
::com::sun::star::uno::XInterface
  |  
  +--XContainer
::com::sun::star::uno::XInterface
(referenced interface's summary:)
base interface of all UNO interfaces
Description
supports quick access to the information if a container currently contains elements.

The ::com::sun::star::container::XContainer interface is provided for containers which need to broadcast changes within the container; that means the actions of adding or removing elements are broadcast to the listeners.

This can be useful for UI to enable/disable some functions without actually accessing the data.

See also
XContent
See also
::com::sun::star::container::XIndexAccess
See also
XNameAcces
See also
::com::sun::star::container::XEnumerationAccess

Methods' Summary
addContainerListener adds the specified listener to receive events when elements are inserted or removed.  
removeContainerListener removes the specified listener so it does not receive any events from this container.  
Methods' Details
addContainerListener
[oneway] void
addContainerListener( [in] ::com::sun::star::container::XContainerListener  xListener );

Description
adds the specified listener to receive events when elements are inserted or removed.

It is suggested to allow multiple registration of the same listener, thus for each time a listener is added, it has to be removed.

See also
::com::sun::star::container::XContainerListener
removeContainerListener
[oneway] void
removeContainerListener( [in] ::com::sun::star::container::XContainerListener  xListener );

Description
removes the specified listener so it does not receive any events from this container.

It is suggested to allow multiple registration of the same listener, thus for each time a listener is added, it has to be removed.

See also
::com::sun::star::container::XContainerListener
Top of Page