Issue 3792 in pharo: PluggableListMorph with a wrapper for display

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

Issue 3792 in pharo: PluggableListMorph with a wrapper for display

pharo
Status: Fixed
Owner: [hidden email]

New issue 3792 by [hidden email]: PluggableListMorph with a wrapper  
for display
http://code.google.com/p/pharo/issues/detail?id=3792

I now provide a way (or maybe Alain will said it already exists ^^) to  
change the way item are displayed using the method wrapSelector: aSymbol  
where aSymbol is the name of a one argument method.

That way, you can store real Object (not Strings), and change the way items  
are displayed

=============================================================

Example:

buildList

        list := PluggableListMorph
                                on: self
                                list: #getList
                                selected: #selected
                                changeSelected: #selected:.
        list wrapSelector: #listWrapper:.
        ^ list

where:

listWrapper: anElement

        ^ anElement name

Here anElement is the raw item from the list.

Attachments:
        PluggableListMorphWithWrapper.2.cs  2.2 KB


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3792 in pharo: PluggableListMorph with a wrapper for display

pharo
Updates:
        Cc: aplantec

Comment #1 on issue 3792 by [hidden email]: PluggableListMorph with  
a wrapper for display
http://code.google.com/p/pharo/issues/detail?id=3792

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3792 in pharo: PluggableListMorph with a wrapper for display

pharo
Updates:
        Status: FixProposed

Comment #2 on issue 3792 by [hidden email]: PluggableListMorph with  
a wrapper for display
http://code.google.com/p/pharo/issues/detail?id=3792

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3792 in pharo: PluggableListMorph with a wrapper for display

pharo

Comment #3 on issue 3792 by [hidden email]: PluggableListMorph with  
a wrapper for display
http://code.google.com/p/pharo/issues/detail?id=3792

I rename a method ;)

Attachments:
        RenameInPluggableListMorph.1.cs  1.3 KB


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3792 in pharo: PluggableListMorph with a wrapper for display

pharo
Updates:
        Status: Closed

Comment #4 on issue 3792 by [hidden email]: PluggableListMorph with  
a wrapper for display
http://code.google.com/p/pharo/issues/detail?id=3792

in 13094