[Glamour] How to trigger a transmission on opening

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

[Glamour] How to trigger a transmission on opening

Damien Cassou
Hi,

in the following example, I would like that the transmission from pane
#one to pane #two be triggered when the browser opens. Is it possible?
Thanks

        |browser |

        browser := GLMTabulator new.
        browser row: #one  size: 30; row: #two.
        browser transmit to: #one; andShow: [:a |
                a dropDownList
                        display: [:x | (1 to: x) + 10 ];
                        selectedIndex: 2 ].
        browser transmit from: #one; to: #two; andShow: [:a |
                a list
                        display: [:x | 1 to: x ]].
        browser openOn: 5

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Glamour] How to trigger a transmission on opening

Tudor Girba-2
Hi,

Basically, you want that setting the selectedIndex to populate the #selection port. This should be taken care of by the renderer, but apparently it isn't. Could you write a Morphic test case for this?

Cheers,
Doru


On 26 Jul 2011, at 19:35, Damien Cassou wrote:

> Hi,
>
> in the following example, I would like that the transmission from pane
> #one to pane #two be triggered when the browser opens. Is it possible?
> Thanks
>
> |browser |
>
> browser := GLMTabulator new.
> browser row: #one  size: 30; row: #two.
> browser transmit to: #one; andShow: [:a |
> a dropDownList
> display: [:x | (1 to: x) + 10 ];
> selectedIndex: 2 ].
> browser transmit from: #one; to: #two; andShow: [:a |
> a list
> display: [:x | 1 to: x ]].
> browser openOn: 5
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> "Lambdas are relegated to relative obscurity until Java makes them
> popular by not having them." James Iry
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"The coherence of a trip is given by the clearness of the goal."





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev