Package com.sencha.gxt.widget.core.client.event.HideEvent

Examples of com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler


          });

          menu.hide();
        }
      });
      menu.addHideHandler(new HideHandler() {

        @Override
        public void onHide(HideEvent event) {
          collapse(lastContext, lastParent);
        }
View Full Code Here


    }
    this.menu = menu;

    if (menu != null) {
      if (hideHandler == null) {
        hideHandler = new HideHandler() {

          @Override
          public void onHide(HideEvent event) {
            hideMenu();
          }
View Full Code Here

          });

          menu.hide();
        }
      }));
      menuHandler.add(menu.addHideHandler(new HideHandler() {
        @Override
        public void onHide(HideEvent event) {
          collapse(lastContext, lastParent);
        }
      }));
View Full Code Here

        }
      }));
    }

    if (child instanceof HasHideHandlers) {
      g.add(((HasHideHandlers) child).addHideHandler(new HideHandler() {
        @Override
        public void onHide(HideEvent event) {
          onWidgetHide(event.getSource());
        }
      }));
View Full Code Here

  protected void onItemContextMenu(final Widget item, int x, int y) {
    if (closeMenu) {
      if (closeContextMenu == null) {
        closeContextMenu = new Menu();
        closeContextMenu.addHideHandler(new HideHandler() {

          @Override
          public void onHide(HideEvent event) {
            contextMenuItem = null;
          }
View Full Code Here

    }

    final Head h = getHead(column);
    menu.setId(h.getId() + "-menu");
    h.activateTrigger(true);
    menu.addHideHandler(new HideHandler() {

      @Override
      public void onHide(HideEvent event) {
        h.activateTrigger(false);
        container.focus();
View Full Code Here

  protected void onShowContextMenu(int clientX, int clientY) {
    contextMenu.showAt(clientX, clientY);
    if (contextMenu.isVisible()) {
      fireEvent(new ShowContextMenuEvent(contextMenu));
      contextMenu.addHideHandler(new HideHandler() {

        @Override
        public void onHide(HideEvent event) {
          ComponentHelper.removeHandler(contextMenu, HideEvent.getType(), this);
          onHideContextMenu(event);
View Full Code Here

  protected void onItemContextMenu(final Widget item, int x, int y) {
    if (closeMenu) {
      if (closeContextMenu == null) {
        closeContextMenu = new Menu();
        closeContextMenu.addHideHandler(new HideHandler() {

          @Override
          public void onHide(HideEvent event) {
            contextMenuItem = null;
          }
View Full Code Here

  protected void onShowContextMenu(int clientX, int clientY) {
    contextMenu.showAt(clientX, clientY);
    if (contextMenu.isVisible()) {
      fireEvent(new ShowContextMenuEvent(contextMenu));
      contextMenu.addHideHandler(new HideHandler() {

        @Override
        public void onHide(HideEvent event) {
          ComponentHelper.removeHandler(contextMenu, HideEvent.getType(), this);
          onHideContextMenu(event);
View Full Code Here

    if (menu != null) {
      final Head h = getHead(column);
      menu.setId(h.getId() + "-menu");
      h.activateTrigger(true);
      menu.addHideHandler(new HideHandler() {

        @Override
        public void onHide(HideEvent event) {
          h.activateTrigger(false);
          if (container instanceof Component) {
View Full Code Here

TOP

Related Classes of com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.