Results 1 to 4 of 4

Thread: How could i catch double click event in gxt?

  1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    24

    Default How could i catch double click event in gxt?

    How could i catch double click event in gxt?

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572

    Default

    against what?

  3. #3
    Sencha User
    Join Date
    Apr 2008
    Posts
    24

    Default

    I want to catch double click event in TabPanel.
    how could i do?

  4. #4
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    There 2 things that need to done to listen to any browser event:

    1. Add a listener for the event type
    2. Ensure the component is sinking the event type (TabPanel does not sink double click)

    Code:
        TabPanel tabPanel = new TabPanel() {
          @Override
          protected void afterRender() {
            super.afterRender();
            el().addEventsSunk(Events.OnDoubleClick);
          }
        };
        tabPanel.addListener(Events.OnDoubleClick, new Listener<TabPanelEvent>() {
          public void handleEvent(TabPanelEvent be) {
            GWT.log("double click", null);
          }
        });

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •