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
    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???