Issue 6159 in pharo: Fix PluggableTreeMorph to render whatever

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 6159 in pharo: Fix PluggableTreeMorph to render whatever

pharo
Status: Accepted
Owner: [hidden email]
Labels: Type-Feature Milestone-2.0

New issue 6159 by [hidden email]: Fix PluggableTreeMorph to render  
whatever
http://code.google.com/p/pharo/issues/detail?id=6159

Introduce a dispatch like in the list.

Now every object can be rendered in a tree if the  interface is implemented.
As example, Morphs can now be rendered as well as ComposableModel (Spec)

Slice is incoming


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6159 in pharo: Fix PluggableTreeMorph to render whatever

pharo
Updates:
        Status: FixReviewNeeded

Comment #1 on issue 6159 by [hidden email]: Fix PluggableTreeMorph  
to render whatever
http://code.google.com/p/pharo/issues/detail?id=6159

Slice in the inbox

Here is an example snippet:

TreeModel new
        roots: ({'chapeau'. 'lapin'. 'carotte'}collect: [:e | ButtonModel new
                                                                                                label: e asString;
                                                                                                yourself]);
        displayBlock: [:e | e ];
        childrenBlock: [:e ||result |
                result := OrderedCollection new.
                 e label asString size > 1
                        ifTrue: [
                                e label asString do: [:c | result add: (ButtonModel new
                                                                                                label: c asString;
                                                                                                yourself)]].
                result ];
        openWithSpec


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6159 in pharo: Fix PluggableTreeMorph to render whatever

pharo
Updates:
        Status: Integrated

Comment #2 on issue 6159 by [hidden email]: Fix PluggableTreeMorph  
to render whatever
http://code.google.com/p/pharo/issues/detail?id=6159

in 2.0 161


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker