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,966
    Vote Rating
    130
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar