This class represents a component in a document. A component holds mainly its children, property values, and presenters.
A component can be created by a DesignDocument.createComponent method only. The component can be used only in the document
that created the component. Each component has its component id that is unique inside the document. The component
is a type id with component kind.
A component could be placed into tree hierarchy - each component has its parent component and its children.
A component is holding a map of property name/value pairs. When a component descriptor is assigned to the component
it automatically loads up a default property values. In case that the component already contains values
that are compatible with a new property descriptors, these values we stay unchanged. Otherwise they are overriden
by its default value.
A component has a set of presenter. Presenters are a little bit smarter listeners. They also can be assigned/held
by a component directly. Presenters are created each time a new component descriptor is assigned.
author: David Kaspar |