Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Is it possible to trap show/hide events for a menu?

    Hi,

    Is it possible to trap show/hide events for a menu in SmartGWt? Please advise.

    I have a menu with AutoDismiss set to false. Now user may select/deselect multiple menu items and once this menu get invisible (by any event like clicking somewhere else on screen etc), we wants to perform some action based on user selection.

    Thanks in advance.
    Last edited by rathiandi; 31 Mar 2010, 08:51.

    #2
    Tried to override following functions (along with destroy, setVisible(boolean) etc ) but no luck yet. I would appreciate if you can point out method which gets called to hide the menu.

    public void setVisibility(Visibility visibility) {
    GWT.log("Called setVisibility()", null);
    super.setVisibility(visibility);
    }

    @Override
    public void hide() {
    GWT.log("Called hide()", null);
    super.hide();
    }

    @Override
    public void clear() {
    GWT.log("Called clear()", null);
    super.clear();
    }

    @Override
    public void clickMaskUp() {
    GWT.log("Called clickMaskUp()", null);
    super.clickMaskUp();
    }

    @Override
    public void clickMaskUp(String ID) {
    GWT.log("Called clickMaskUp(id)", null);
    super.clickMaskUp(ID);
    }

    Comment


      #3
      No sure I totally understand but why not do what you need when the user clicks away from the menu or keyboards away from the menu?

      Comment


        #4
        Sorry if i might have confused you but user action is not important.

        I only want to trap event when a menu becomes invisible. It could be either overriding a method or listening to an event and I could not find out either.

        I would appreciate any kinda help.

        Thanks,

        Comment


          #5
          Isomorphic - any suggestion? I would appreciate any hint in right direction.

          Thanks,

          Comment

          Working...
          X