Back: Permission-testing Up: Base classes Forward: PluggableAdaptor class-creating instances   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.128 PluggableAdaptor

Defined in namespace Smalltalk
Superclass: ValueAdaptor
Category: Language-Data types
I mediate between complex get/set behavior and the #value/#value: protocol used by ValueAdaptors. The get/set behavior can be implemented by two blocks, or can be delegated to another object with messages such as #someProperty to get and #someProperty: to set.

1.128.1 PluggableAdaptor class: creating instances  (class)
1.128.2 PluggableAdaptor: accessing  (instance)


1.128.1 PluggableAdaptor class: creating instances

getBlock: getBlock putBlock: putBlock
Answer a PluggableAdaptor using the given blocks to implement #value and #value:

on: anObject aspect: aSymbol
Answer a PluggableAdaptor using anObject's aSymbol message to implement #value, and anObject's aSymbol: message (aSymbol followed by a colon) to implement #value:

on: anObject getSelector: getSelector putSelector: putSelector
Answer a PluggableAdaptor using anObject's getSelector message to implement #value, and anObject's putSelector message to implement #value:

on: anObject index: anIndex
Answer a PluggableAdaptor using anObject's #at: and #at:put: message to implement #value and #value:; the first parameter of #at: and #at:put: is anIndex

on: aDictionary key: aKey
Same as #on:index:. Provided for clarity and completeness.


1.128.2 PluggableAdaptor: accessing

value
Get the value of the receiver.

value: anObject
Set the value of the receiver.



Back: PluggableAdaptor class-creating instances Up: PluggableAdaptor Forward: PluggableProxy   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on August, 19 2010 using texi2html