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

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