AspectAdaptor.st
changeset 238 a179b5d6152e
parent 231 2fec6188bd28
child 268 1998023f12dc
equal deleted inserted replaced
237:79c3071addae 238:a179b5d6152e
    37 "
    37 "
    38     an AspectAdaptor forwards updates and change messages
    38     an AspectAdaptor forwards updates and change messages
    39     from/to a complex model.
    39     from/to a complex model.
    40 
    40 
    41     Consider the case where editFields are required for the
    41     Consider the case where editFields are required for the
    42     elements (instance variables) of a more complex model.
    42     elements (instance variables) of a compound object;
    43     Without an aspect adaptor, you needed to copy the individual
    43     - without an aspect adaptor, you needed to copy the individual
    44     values out-of and into multiple valueHolders.
    44       values out-of the object and move these into multiple valueHolders.
       
    45       Then, let the editFields modify the valueHolders contents and
       
    46       finally, fetch the values and put them back into the compound object.
       
    47 
    45     An aspectAdaptor makes this easier, by playing model with
    48     An aspectAdaptor makes this easier, by playing model with
    46     value/value: symbols towards the editField, and forwarding changes and
    49     value/value: symbols towards the editField, and forwarding changes and
    47     updates to/from the complex model using different aspect symbols.
    50     updates to/from the combound object using different aspect symbols
       
    51     and access messages.
    48 
    52 
    49     Notice: 
    53     Notice: 
    50         this class was implemented using protocol information
    54         this class was implemented using protocol information
    51         from alpha testers - it may not be complete or compatible to
    55         from alpha testers - it may not be complete or compatible to
    52         the corresponding ST-80 class. 
    56         the corresponding ST-80 class. 
   234 ! !
   238 ! !
   235 
   239 
   236 !AspectAdaptor class methodsFor:'documentation'!
   240 !AspectAdaptor class methodsFor:'documentation'!
   237 
   241 
   238 version
   242 version
   239     ^ '$Header: /cvs/stx/stx/libview2/AspectAdaptor.st,v 1.12 1996-04-27 17:58:52 cg Exp $'
   243     ^ '$Header: /cvs/stx/stx/libview2/AspectAdaptor.st,v 1.13 1996-05-02 13:27:47 cg Exp $'
   240 ! !
   244 ! !