[ENH] PluggableListItemWrapper

Andreas Raab andreas.raab at gmx.de
Tue Oct 14 21:55:35 UTC 2003


"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.
"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PluggableListItemWrapper.2.cs
Type: application/octet-stream
Size: 4744 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20031014/aa6226f5/PluggableListItemWrapper.2.obj


More information about the Squeak-dev mailing list