[Pharo-project] Issue 3792 in pharo: PluggableListMorph with a wrapper for display
Status: Fixed Owner: Benjamin...@gmail.com New issue 3792 by Benjamin...@gmail.com: 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
Updates: Cc: aplantec Comment #1 on issue 3792 by stephane...@gmail.com: PluggableListMorph with a wrapper for display http://code.google.com/p/pharo/issues/detail?id=3792 (No comment was entered for this change.)
Updates: Status: FixProposed Comment #2 on issue 3792 by marcus.d...@gmail.com: PluggableListMorph with a wrapper for display http://code.google.com/p/pharo/issues/detail?id=3792 (No comment was entered for this change.)
Comment #3 on issue 3792 by Benjamin...@gmail.com: 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
Updates: Status: Closed Comment #4 on issue 3792 by stephane...@gmail.com: PluggableListMorph with a wrapper for display http://code.google.com/p/pharo/issues/detail?id=3792 in 13094
participants (1)
-
pharo@googlecode.com