1. #1
    Sencha User
    Join Date
    Apr 2009
    Posts
    30
    Vote Rating
    0
    rian.k is on a distinguished road

      0  

    Default Listener on LayoutContainer

    Listener on LayoutContainer


    Hi,

    I'm trying to add a listener to a LayoutContainer holding some Panels,
    so I can switch the selected Panel on clicks. However, with the following
    code I get zero events:

    Code:
    container.addListener(Events.OnClick, new Listener<BaseEvent>() {
          public void handleEvent(BaseEvent be) {
            selected = (LayoutContainer) be.getSource();
          }
        });
    Where am I wrong?
    thanks

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You need to sink the event.

  3. #3
    Sencha User
    Join Date
    Apr 2009
    Posts
    30
    Vote Rating
    0
    rian.k is on a distinguished road

      0  

    Default


    wow, that was fast
    thanks sven

  4. #4
    Sencha User
    Join Date
    Apr 2009
    Posts
    30
    Vote Rating
    0
    rian.k is on a distinguished road

      0  

    Default


    I guess I'm doing something wrong.. when I sink the events,
    the event source is always the underlying LayoutContainer.
    How could I get the right source Panel? thx

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi