1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    15
    Vote Rating
    0
    koenjan is on a distinguished road

      0  

    Default Unanswered: How to handle doubleclick on ContentPanel header?

    Unanswered: How to handle doubleclick on ContentPanel header?


    Dear,

    How can I handle a double click on the header of a ContentPanel?

    I am trying to expand/collapse the panel (collapsible is set to true) when the user double clicks on the header, with the following code, but it's not reacting to a double click (also a ClickHandler is not working)... What is wrong?

    Code:
    panel.getHeader().addHandler(new DoubleClickHandler() {
    @Override public void onDoubleClick(DoubleClickEvent event) {
    if (panel.isCollapsed()) {
    panel.expand();
    } else {
    panel.collapse();
    }
    }
    }, DoubleClickEvent.getType());
    Best regards,
    Koen

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Posts
    15
    Vote Rating
    0
    koenjan is on a distinguished road

      0  

    Default


    Very strange,

    If I add an additional DomHandler, which is not doing anything, it is working

    Now I have:

    Code:
            panel.getHeader().addDomHandler(new DoubleClickHandler() {
                
                @Override
                public void onDoubleClick(DoubleClickEvent event) {
                    // TODO Auto-generated method stub
                    System.out.println("doubleclick DOM");
    
    
                }
            }, DoubleClickEvent.getType());
            
            panel.getHeader().addHandler(new DoubleClickHandler() {
                
                @Override
                public void onDoubleClick(DoubleClickEvent event) {
                    System.out.println("doubleclick");
                    if (panel.isCollapsed()) {
                        panel.expand();
                    } else {
                        panel.collapse();
                    }
                }
            }, DoubleClickEvent.getType());
    Now, when I double click on the header I get both sysouts...
    If I comment out the DomHandler, I don't get the "doubleclick" sysout...

    Is this a bug???

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..."