Heterogenous lists

2 views
Skip to first unread message

Ian Eslick

unread,
Mar 8, 2010, 1:43:31 AM3/8/10
to webl...@googlegroups.com
Does any of the dataseq derivatives support multiple class types? I'm interested in managing an ordered list of objects that share a base class, but that present differently based on their actual type. There are other ways to solve my problem, but I'm curious if people simply write their own widget in this case or there is a usage model for the default sequence widgets that would suffice?

I also presume that the stateful presentations I saw discussed here some time ago have not been integrated yet?

Thank you,
Ian

Leslie P. Polzer

unread,
Mar 8, 2010, 3:57:23 AM3/8/10
to webl...@googlegroups.com

Ian Eslick wrote:
> Does any of the dataseq derivatives support multiple class types? I'm interested in
> managing an ordered list of objects that share a base class, but that present
> differently based on their actual type. There are other ways to solve my problem, but
> I'm curious if people simply write their own widget in this case or there is a usage
> model for the default sequence widgets that would suffice?

One of my applications used a grid that could contain items of different type.

I specified standard-object as base type and modded the grid to work with
items of different type; this included having custom action buttons
("New file", "New document") and other stuff. I can send it to you if you
like to take a closer look.


> I also presume that the stateful presentations I saw discussed here some time ago have
> not been integrated yet?

No, but chances are good that I might code this up in the next few weeks or months.

Form elements and fields in other views as well should be widgets.

Leslie

Ian Eslick

unread,
Mar 8, 2010, 10:30:32 AM3/8/10
to webl...@googlegroups.com
I'd like to see the code, thanks!

> --
> You received this message because you are subscribed to the Google Groups "weblocks" group.
> To post to this group, send email to webl...@googlegroups.com.
> To unsubscribe from this group, send email to weblocks+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/weblocks?hl=en.
>

Leslie P. Polzer

unread,
Mar 9, 2010, 5:21:10 AM3/9/10
to webl...@googlegroups.com
Ian Eslick wrote:
> I'd like to see the code, thanks!

Attached. Some very few string literals are in German but you should
be able to grok it without problems.

You might want to start reading at the form

'(defwidget subpage-gridedit ...)'

Let me know if you have more questions.

Leslie

subpage-gridedit.lisp
Reply all
Reply to author
Forward
0 new messages