[Pharo-project] PluggableMultiColumnListMorph example?
Someone could give me a little example on PluggableMultiColumnListMorph? Does it work with OrderedCollections? Thanks in advance!
Load the attached st file and execute the following snippet: (PluggableMultiColumnListMorph on: MyModelExample new list: #list selected: #selected changeSelected: #selected: menu: nil wrapSelector: #wrap:at:) openInWindow If you have questions, do not hesitate :) Ben On Jan 3, 2013, at 2:25 PM, J. P. L. MartÃn wrote:
Someone could give me a little example on PluggableMultiColumnListMorph? Does it work with OrderedCollections?
Thanks in advance!
If i have an OrderedCollection(a Prestamo id: '1' idMaterial: 'Book' idSocio: 'User' fechaPrestamo: 7 January 2013 fechaPrevistaDevolucion: 10 January 2013 fechaDevolucion: '') what would be a proper wrap for it if I want a column for each part of the colection? Also, what was the method that control size of the list? Thanks a lot! On Thu, Jan 3, 2013 at 11:18 AM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
Load the attached st file
and execute the following snippet:
(PluggableMultiColumnListMorph on: MyModelExample new list: #list selected: #selected changeSelected: #selected: menu: nil wrapSelector: #wrap:at:) openInWindow
If you have questions, do not hesitate :)
Ben
On Jan 3, 2013, at 2:25 PM, J. P. L. MartÃn wrote:
Someone could give me a little example on PluggableMultiColumnListMorph? Does it work with OrderedCollections?
Thanks in advance!
Ok, extent worked for size, so the wrap question remains active :P On Mon, Jan 7, 2013 at 11:35 PM, J. P. L. MartÃn <arguser@gmail.com> wrote:
If i have an OrderedCollection(a Prestamo id: '1' idMaterial: 'Book' idSocio: 'User' fechaPrestamo: 7 January 2013 fechaPrevistaDevolucion: 10 January 2013 fechaDevolucion: '') what would be a proper wrap for it if I want a column for each part of the colection? Also, what was the method that control size of the list?
Thanks a lot!
On Thu, Jan 3, 2013 at 11:18 AM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
Load the attached st file
and execute the following snippet:
(PluggableMultiColumnListMorph on: MyModelExample new list: #list selected: #selected changeSelected: #selected: menu: nil wrapSelector: #wrap:at:) openInWindow
If you have questions, do not hesitate :)
Ben
On Jan 3, 2013, at 2:25 PM, J. P. L. MartÃn wrote:
Someone could give me a little example on PluggableMultiColumnListMorph? Does it work with OrderedCollections?
Thanks in advance!
if your item is already a collection, and you want a column per item, just return it wrap: item index: idx ^ item Ben On Jan 8, 2013, at 3:37 AM, J. P. L. MartÃn wrote:
Ok, extent worked for size, so the wrap question remains active :P
On Mon, Jan 7, 2013 at 11:35 PM, J. P. L. MartÃn <arguser@gmail.com> wrote: If i have an OrderedCollection(a Prestamo id: '1' idMaterial: 'Book' idSocio: 'User' fechaPrestamo: 7 January 2013 fechaPrevistaDevolucion: 10 January 2013 fechaDevolucion: '') what would be a proper wrap for it if I want a column for each part of the colection? Also, what was the method that control size of the list?
Thanks a lot!
On Thu, Jan 3, 2013 at 11:18 AM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote: Load the attached st file
and execute the following snippet:
(PluggableMultiColumnListMorph on: MyModelExample new list: #list selected: #selected changeSelected: #selected: menu: nil wrapSelector: #wrap:at:) openInWindow
If you have questions, do not hesitate :)
Ben
On Jan 3, 2013, at 2:25 PM, J. P. L. MartÃn wrote:
Someone could give me a little example on PluggableMultiColumnListMorph? Does it work with OrderedCollections?
Thanks in advance!
I get an error when doing so: MessageNotUnderstood: Prestamo>>collect: doesNotUnderstand: #collect: MulticolumnLazyListMorph widthToDisplayItem: Leo On Tue, Jan 8, 2013 at 9:09 AM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
if your item is already a collection, and you want a column per item, just return it
wrap: item index: idx
^ item
Ben
On Jan 8, 2013, at 3:37 AM, J. P. L. MartÃn wrote:
Ok, extent worked for size, so the wrap question remains active :P
On Mon, Jan 7, 2013 at 11:35 PM, J. P. L. MartÃn <arguser@gmail.com>wrote:
If i have an OrderedCollection(a Prestamo id: '1' idMaterial: 'Book' idSocio: 'User' fechaPrestamo: 7 January 2013 fechaPrevistaDevolucion: 10 January 2013 fechaDevolucion: '') what would be a proper wrap for it if I want a column for each part of the colection? Also, what was the method that control size of the list?
Thanks a lot!
On Thu, Jan 3, 2013 at 11:18 AM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
Load the attached st file
and execute the following snippet:
(PluggableMultiColumnListMorph on: MyModelExample new list: #list selected: #selected changeSelected: #selected: menu: nil wrapSelector: #wrap:at:) openInWindow
If you have questions, do not hesitate :)
Ben
On Jan 3, 2013, at 2:25 PM, J. P. L. MartÃn wrote:
Someone could give me a little example on PluggableMultiColumnListMorph? Does it work with OrderedCollections?
Thanks in advance!
is your item a collection ?? Because it seems that the item you return is a "Prestamo" and that this Prestamo doesn't understand the Collection methods Ben On Jan 8, 2013, at 1:26 PM, J. P. L. MartÃn wrote:
I get an error when doing so:
MessageNotUnderstood: Prestamo>>collect: doesNotUnderstand: #collect: MulticolumnLazyListMorph widthToDisplayItem:
Leo
On Tue, Jan 8, 2013 at 9:09 AM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote: if your item is already a collection, and you want a column per item, just return it
wrap: item index: idx
^ item
Ben
On Jan 8, 2013, at 3:37 AM, J. P. L. MartÃn wrote:
Ok, extent worked for size, so the wrap question remains active :P
On Mon, Jan 7, 2013 at 11:35 PM, J. P. L. MartÃn <arguser@gmail.com> wrote: If i have an OrderedCollection(a Prestamo id: '1' idMaterial: 'Book' idSocio: 'User' fechaPrestamo: 7 January 2013 fechaPrevistaDevolucion: 10 January 2013 fechaDevolucion: '') what would be a proper wrap for it if I want a column for each part of the colection? Also, what was the method that control size of the list?
Thanks a lot!
On Thu, Jan 3, 2013 at 11:18 AM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote: Load the attached st file
and execute the following snippet:
(PluggableMultiColumnListMorph on: MyModelExample new list: #list selected: #selected changeSelected: #selected: menu: nil wrapSelector: #wrap:at:) openInWindow
If you have questions, do not hesitate :)
Ben
On Jan 3, 2013, at 2:25 PM, J. P. L. MartÃn wrote:
Someone could give me a little example on PluggableMultiColumnListMorph? Does it work with OrderedCollections?
Thanks in advance!
I point the list to an class instance "database" wich is anOrderedCollection of Prestamo, you can see the code here: https://github.com/arguser/Paradigmas-Final/blob/master/Paradigmas-Final.st If I leave wrap: item like this: ^ item asOrderedCollection collect [:e | e asString On Tue, Jan 8, 2013 at 9:30 AM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
is your item a collection ??
Because it seems that the item you return is a "Prestamo" and that this Prestamo doesn't understand the Collection methods
Ben
On Jan 8, 2013, at 1:26 PM, J. P. L. MartÃn wrote:
I get an error when doing so:
MessageNotUnderstood: Prestamo>>collect: doesNotUnderstand: #collect: MulticolumnLazyListMorph widthToDisplayItem:
Leo
On Tue, Jan 8, 2013 at 9:09 AM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
if your item is already a collection, and you want a column per item, just return it
wrap: item index: idx
^ item
Ben
On Jan 8, 2013, at 3:37 AM, J. P. L. MartÃn wrote:
Ok, extent worked for size, so the wrap question remains active :P
On Mon, Jan 7, 2013 at 11:35 PM, J. P. L. MartÃn <arguser@gmail.com>wrote:
If i have an OrderedCollection(a Prestamo id: '1' idMaterial: 'Book' idSocio: 'User' fechaPrestamo: 7 January 2013 fechaPrevistaDevolucion: 10 January 2013 fechaDevolucion: '') what would be a proper wrap for it if I want a column for each part of the colection? Also, what was the method that control size of the list?
Thanks a lot!
On Thu, Jan 3, 2013 at 11:18 AM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
Load the attached st file
and execute the following snippet:
(PluggableMultiColumnListMorph on: MyModelExample new list: #list selected: #selected changeSelected: #selected: menu: nil wrapSelector: #wrap:at:) openInWindow
If you have questions, do not hesitate :)
Ben
On Jan 3, 2013, at 2:25 PM, J. P. L. MartÃn wrote:
Someone could give me a little example on PluggableMultiColumnListMorph? Does it work with OrderedCollections?
Thanks in advance!
Sorry, magical hotkey pressed by mistake. On Tue, Jan 8, 2013 at 9:47 AM, J. P. L. MartÃn <arguser@gmail.com> wrote:
I point the list to an class instance "database" wich is anOrderedCollection of Prestamo, you can see the code here: https://github.com/arguser/Paradigmas-Final/blob/master/Paradigmas-Final.st
If I leave wrap: item like this: ^ item asOrderedCollection collect [:e | e asString] I get an OrderedCollection of OrderedCollection and items display like:
a Prestamo fechaPrevistaDevolucion: value fechaPrestamo: value... etc. And I would like only the values to show.
participants (2)
-
Benjamin -
J. P. L. MartÃn