[ENH][Refactor] PLMCleanUpStart (v2)

Daniel Vainsencher danielv at netvision.net.il
Mon Aug 11 11:51:17 UTC 2003


[how wide the StringMorphs should be made]
This part of the thread is moot. As Eddie said, removing the 
#width: call completely is the correct solution. It is no 
longer needed, and selection just works.

Please test/review the latest version, attached below (which 
includes said removal).

Daniel

"Change Set:		PLMCleanUpStart (v2)
Date:			9 August 2003
Author:			Daniel Vainsencher

v2 - further refactoring. PLMItemFactory can now be used/subclassed to
provide alternate morphs to represent items.

Just add ""aListMorph itemMorphFactory: PLMItemFactory new."" in your
morphic creation.

Because Object>>asStringOrText was added, the listSelector can now
return any objects, which will be displayed, even without using
factories.

initial version - 
This changeset adds comments for all PLM subclasses.

Also removes the assumption of uniform height in PluggableListMorph (not
yet in subclasses), and refactors the morph generation. Might slow list
update down a bit.

Factors out the StringMorph creation and initialization logic to simpify
the methods and reduce duplication.

The goal is to introduce the ability to accept items other than
String/Text/MethodReference, and display them as morphs other than
StringMorphs.

Patches/advice about how to handle PLM variants welcome."!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PLMCleanUpStart.cs.gz
Type: application/octet-stream
Size: 2244 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030811/47e9b5da/PLMCleanUpStart.cs.obj


More information about the Squeak-dev mailing list