Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext GWT Premium Member mariusz.pala's Avatar
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    298
    Vote Rating
    2
    mariusz.pala is on a distinguished road

      0  

    Default How to handle dblclick event in a Field?

    How to handle dblclick event in a Field?


    Hi, I'm trying to catch the double click event in a field, but it doesn't work.

    That's my code:
    Code:
            ListField<SimpleValueModel> control = new ListField<SimpleValueModel>();
            control.addListener(Event.ONDBLCLICK, new Listener<BaseEvent>() {
                public void handleEvent(BaseEvent be) {
                    Info.display("test", "double clicked");
                };
            });
    The same with TextField.

    Is there any way to do that?

    Thanks,
    Mariusz

  2. #2
    Ext GWT Premium Member mariusz.pala's Avatar
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    298
    Vote Rating
    2
    mariusz.pala is on a distinguished road

      0  

    Default


    OK, I found the solution, but this is inconsistient, onclick event can be catched from the ListField, but the ondoubleclick can be handled only from the ListView:

    HTML Code:
            control.getListView().addListener(Events.OnDoubleClick, new Listener<BaseEvent>() {
                public void handleEvent(BaseEvent be) {
    
                    Info.display("test", "double clicked");
                };
            });

  3. #3
    Ext User
    Join Date
    Oct 2008
    Location
    Atlanta ,GA
    Posts
    239
    Vote Rating
    0
    kolli is on a distinguished road

      0  

    Default


    I think the double click can be added to the set of events for ListField
    this thread might help. http://www.extjs.com/forum/showthread.php?t=53670.

    you can even check the gxt FAQ to learn more about sinking the events.

Thread Participants: 1