|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TargetCoupler
Connects a facade STarget
to the application.
While TargetCoupler
itself defines no specific functionality,
the appropriate subtypes for each facade STarget
STarget
in the surface,STarget
's responses
to surface events. A TargetCoupler
subtype instance can either be subclassed
as required (usually trivially) to meet application-specific requirements,
or simply provide default presentation policy and event handling. This
approach (rather than subclassing the facade STarget
s themselves)
minimises coupling between application and framework classes, with the
further advantage that application code can often be simplified by sharing
a single coupler between logically linked targets.
The most fully worked out examples of this approach in Facets are the
extensive built-in policy options provided by SIndexing.Coupler
,
and the use of SNumeric.Coupler
to supply appropriate
NumberPolicy
instances to SNumeric
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |