Component traits library?

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

Component traits library?

Sophie424
What would you add to a library of components traits?

- Collapsible? can be expanded and collapsed
- Draggable?
- Moveable? can be moved as on a canvas
- Resizable:
- Spawnable: can be spawned off into a window of its own
- Scrollable: grow a scrollbar when needed

- Others??

Would these be a reasonable use of traits? Seems like handy behaviors to mix
in as needed but I'm not confident about the implications.

- Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Component traits library?

Lukas Renggli
> Would these be a reasonable use of traits? Seems like handy behaviors to mix
> in as needed but I'm not confident about the implications.

What does such a trait provide? What does it require? I am not sure I
understand how you want to integrate those component traits, and how
they interact with the existing code in your component class. Can you
maybe give an example with code?

Wouldn't it make more sense to add a specific WADecoration subclass to
add additional behavior to a component? Or simply wrap your target
component into another component? Or, if you only need some XHML
snippets to be generated, a custom subclass of WABrush?

The only place in Seaside where Traits would really help (in my
opinion) is the brush hierarchy. The W3C XHTML DOM attribute
collections would make a perfect candidate for a trait. Like this, no
brush would implement too much and not duplicate functionality (like
this currently happens a lot).

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Component traits library?

Sophie424
"Lukas Renggli" <[hidden email]> wrote in message

> Wouldn't it make more sense to add a specific WADecoration subclass to
> add additional behavior to a component? Or simply wrap your target
> component into another component? Or, if you only need some XHML
> snippets to be generated, a custom subclass of WABrush?

Hmm. Perhaps I was looking for a place to use traits :-) I have not used
decorations yet and clearly need to.

Even so, would elements like this (collapsible, draggable, ....), whether
decorations, wrappers, or traits, be appropriate for an SUComponentLibrary?
Do some exist already? And what would you add to such a library?

Thanks - Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Component traits library?

Lukas Renggli
> Even so, would elements like this (collapsible, draggable, ....), whether
> decorations, wrappers, or traits, be appropriate for an SUComponentLibrary?

Yes, if such components are generic enough.

> Do some exist already? And what would you add to such a library?

Scriptaculous has always provided a bunch of generic components,
however since style-sheets were missing altogether nobody was noticing
these components. The latest version of Scriptaculous for Seaside 2.9
provides some example style-sheets to advertise these fully AJAX based
components a little bit better. I am sure that other such components
would be very appropriate.

For those that don't want to load Seaside 2.9 yet, I made a small screen-cast:

    http://www.lukas-renggli.ch/smalltalk/seaside/videos/scriptaculous-components.mov

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Component traits library?

stephane ducasse
this is cool.
I still believe that having cool ready to use components is really  
important for seaside.
On 5 janv. 08, at 20:43, Lukas Renggli wrote:

>> Even so, would elements like this (collapsible, draggable, ....),  
>> whether
>> decorations, wrappers, or traits, be appropriate for an  
>> SUComponentLibrary?
>
> Yes, if such components are generic enough.
>
>> Do some exist already? And what would you add to such a library?
>
> Scriptaculous has always provided a bunch of generic components,
> however since style-sheets were missing altogether nobody was noticing
> these components. The latest version of Scriptaculous for Seaside 2.9
> provides some example style-sheets to advertise these fully AJAX based
> components a little bit better. I am sure that other such components
> would be very appropriate.
>
> For those that don't want to load Seaside 2.9 yet, I made a small  
> screen-cast:
>
>     http://www.lukas-renggli.ch/smalltalk/seaside/videos/ 
> scriptaculous-components.mov
>
> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Component traits library?

Sophie424
In reply to this post by Lukas Renggli

"Lukas Renggli" <[hidden email]> wrote in message

> For those that don't want to load Seaside 2.9 yet

Looks good. Do you think 2.9 is ready for general use?

- Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Component traits library?

Philippe Marschall
2008/1/5, itsme213 <[hidden email]>:
>
> "Lukas Renggli" <[hidden email]> wrote in message
>
> > For those that don't want to load Seaside 2.9 yet
>
> Looks good. Do you think 2.9 is ready for general use?

Nope.

Cheers
Philippe

> - Sophie
>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Component traits library?

Lukas Renggli
In reply to this post by Sophie424
> > For those that don't want to load Seaside 2.9 yet
>
> Looks good. Do you think 2.9 is ready for general use?

It is ready if you want to run some experiments, but it is not ready
for general use.

Philippe and I only did a coding session the day before yesterday to
push it off. Maybe I will blog about that next week. Right now we are
fighting to resolve the package dependencies.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Component traits library?

Sophie424
In reply to this post by Lukas Renggli
"Lukas Renggli" <[hidden email]> wrote in message
> For those that don't want to load Seaside 2.9 yet

What (Squeak package?) do you use to generate the dependency diagrams on
your "Seaside 2.9 Kick-Off" blog post? Does not look like Mondrian...

Thanks - Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Component traits library?

Lukas Renggli
> What (Squeak package?) do you use to generate the dependency diagrams on
> your "Seaside 2.9 Kick-Off" blog post? Does not look like Mondrian...

GraphViz and Package-Dependencies from http://source.lukas-renggli.ch/unsorted/

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside