Top | Module | Use | Manual | Index |
 INCLUDED SERVICES | EXPORTED INTERFACES | PROPERTIES' SUMMARY | PROPERTIES' DETAILS  |
Provides information about the element. Provides access to its containing set object. Allows controlling the lifetime of the element.
Set elements may be added to and removed from the hierarchy at runtime. They bear user-defined names. They may exist independently, outside any container.
New set element instances generally are created through members of XSingleServiceFactory or, if supported, XMultiServiceFactory on an implementation of SetUpdate . Initially, they are not contained in a set object and have no meaningful name.
While an instance is not contained in a set object, it is owned by the client and can be disposed by calling XComponent::dispose . The name of the object can freely be changed in that situation though without persistent effect.
When the instance is inserted into a set which includes replacing an existing element, ownership is transferred to the container. While it is contained in the container, clients must not dispose of the object. When inserted, the name of the object is fixed and is used to identify it within the container. An implementation should support XNamed::setName even in this case. If it does, changing the name has the same effect of removing the object (under the old name) and then reinserting it into the same container (using the new name).
When an instance is removed from a set (which includes being replaced by a new element), ownership is transferred to the client again. It can then be disposed of or reinserted into a container. An instance can only be inserted into a container if it was obtained from the same hierarchy.
When a set element is removed from its set from outside the hierarchy, the container disposes of the object. This occurrence can be detected by registering a XEventListener with the object.
If an implementation is part of a read-only view of the hierarchy, changing the name or parent is not supported (the object can't be removed from its container anyway).
Included Services |
|
com::sun::star::configuration::HierarchyElement |
|
Exported Interfaces |
|
com::sun::star::container::XChild |
|
com::sun::star::lang::XComponent |
|
com::sun::star::configuration::XTemplateInstance |
|
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.