Although this was possible in earlier ST/X releases, the new scheme
allows for much more attributes and valueHolder-interaction to be
defined on the GUIPainter level, with less need for explicit program code
in #postBuild:
or other methods.
As with JavaBeans, it should be noted that the the following is less a technology, but instead a set of conventions, which allows the component integration.
The scheme described here is backward compatible: existing widgets or
applications need not be changed.
Only a few additional specifiaction methods are required,
in order to make existing components pluggable.
aspectSelectors
,
which must return a sequencable collection of symbols.
For each symbol, corresponding set/get methods must be implemented in
the instance protocol.
To plug in such a widget into a GUI, use an arbitrary component and connect the exported aspects (the sub-aspects) with your applications aspects in the SubAspects section of the GUI painter.
This allows for dialogs, browsers or other components to be embedded in other applications.
To specify, which aspects are exported by an application,
either manually edit the aspectSelectors
class method,
or use the UI-Painter (select the Exported Aspects tab).
The UI-Painters "save"-button function
will generate an aspectSelectors
method,
if there are exported aspects.
Also, the "generate aspect methods" menu-function
will generate setter-methods for all exported aspects.
Copyright © 2000 eXept Software AG, all rights reserved
<info@exept.de>