Composite Elements

Links

Component:

Component is base for all components specified
in PXML file. Such component can represent
complete view or just a one building block of it. It is
used as root component of of the PXML component definition
or most often as base class for such component.

Fetaures:

PXML root component
- only Component or it's subclass
can be root component of the PXML component
definition

universal container
- Component and it's subclasses
can contain any class
instance as direct child, provided that it is
available in the scope of the document and that it
has no-argument constructor

named components
- dynamically creates properties on on instance of
itself for all components that are children or
grandchildren and have attribute name
set - the property name is equal to the attribute
value and property value is the component on which
is the attribute set

gives view a name
- title attribute of the view when
specified is used as a title of the page if the
component is used to instantiate the view

pre-execution event
- Component also dispatches
preExecute event that can be used
to perform various task before
execution of all other events in the view goes on