[ENH] PluggableListItemWrapper

ducasse ducasse at iam.unibe.ch
Wed Oct 15 05:47:32 UTC 2003


hi andreas

I was currently looking at an old changeset proposed by daniel that 
cleaned PluggableMorphList. In this changeset
you got item and not string in the list. How you change relate to that? 
Have you tested the change made by daniel because
they sound good but I'm not expert into that.

Look at 11 of Ausgust PLMCleanUpStart

Stef


On Mardi, oct 14, 2003, at 23:55 Europe/Zurich, Andreas Raab wrote:

> "Change Set:		PluggableListItemWrapper
> Date:			14 October 2003
> Author:			Andreas Raab
>
> PluggableListItemWrapper makes it easier for clients to use 
> hierarchical
> lists. Rather than having to write a subclass of ListItemWrapper, a
> PluggableListItemWrapper can be used to provide the appropriate 
> information
> straight from the model:
> 	string - an explicit string representation (contrary to the 'item'
> which contains any kind of object)
> 	getStringSelector - a message invoked to retrieve the sting
> representation of its item dynamically from its model (when a constant
> representation is undesirable)
> 	hasContentsSelector - a message invoked in the model to answer
> whether the item has any children or not.
> 	getContentsSelector - a message invoked in the model to retrieve the
> contents for its item.
>
> All callback selectors can have zero, one or two arguments with the 
> item and
> the wrapper as first and second argument.
> "
> <PluggableListItemWrapper.2.cs>



More information about the Squeak-dev mailing list