Package com.sencha.gxt.core.shared.event

Examples of com.sencha.gxt.core.shared.event.GroupingHandlerRegistration


    setAllowTextSelection(false);
    getElement().makePositionable(true);

    Handler handler = new Handler();
    handlerRegistration = new GroupingHandlerRegistration();
    handlerRegistration.add(resizeWidget.addAttachHandler(handler));
    handlerRegistration.add(resizeWidget.addMoveHandler(handler));
    handlerRegistration.add(resizeWidget.addResizeHandler(handler));
    handlerRegistration.add(resizeWidget.addHideHandler(handler));
    handlerRegistration.add(resizeWidget.addShowHandler(handler));
View Full Code Here


  public Resizable(ResizableAppearance appearance, final Component resize, Dir... handles) {
    this.resize = resize;
    this.handles = handles;
    this.appearance = appearance;

    registration = new GroupingHandlerRegistration();
    Handler handler = new Handler();
    registration.add(resize.addAttachHandler(handler));
    registration.add(resize.addResizeHandler(handler));

    init();
View Full Code Here

  public Resizable(ResizableAppearance appearance, final Component resize, Dir... handles) {
    this.resize = resize;
    this.handles = handles;
    this.appearance = appearance;

    registration = new GroupingHandlerRegistration();
    Handler handler = new Handler();
    registration.add(resize.addAttachHandler(handler));
    registration.add(resize.addResizeHandler(handler));

    init();
View Full Code Here

      bind(null);
    }
    this.grid = grid;
    if (grid != null) {
      if (handlerRegistration == null) {
        handlerRegistration = new GroupingHandlerRegistration();
      }
      handlerRegistration.add(grid.addRowMouseDownHandler(handler));
      handlerRegistration.add(grid.addRowClickHandler(handler));
      handlerRegistration.add(grid.addViewReadyHandler(handler));
      handlerRegistration.add(grid.addRefreshHandler(handler));
View Full Code Here

      this.store = store;
      if (listView != null) {
        listView.setStore(store);
      }
      if (storeRegistration == null) {
        storeRegistration = new GroupingHandlerRegistration();
      }
      storeRegistration.add(store.addStoreDataChangeHandler(storeHandler));
      storeRegistration.add(store.addStoreUpdateHandler(storeHandler));
    }
  }
View Full Code Here

    return ensureHandlers().addHandler(DragEndEvent.getType(), handler);
  }

  @Override
  public HandlerRegistration addDragHandler(DragHandler handler) {
    GroupingHandlerRegistration reg = new GroupingHandlerRegistration();
    reg.add(ensureHandlers().addHandler(DragStartEvent.getType(), handler));
    reg.add(ensureHandlers().addHandler(DragEndEvent.getType(), handler));
    reg.add(ensureHandlers().addHandler(DragMoveEvent.getType(), handler));
    reg.add(ensureHandlers().addHandler(DragCancelEvent.getType(), handler));
    return reg;
  }
View Full Code Here

    setAllowTextSelection(false);
    getElement().makePositionable(true);

    Handler handler = new Handler();
    handlerRegistration = new GroupingHandlerRegistration();
    handlerRegistration.add(resizeWidget.addAttachHandler(handler));
    handlerRegistration.add(resizeWidget.addMoveHandler(handler));
    handlerRegistration.add(resizeWidget.addResizeHandler(handler));
    handlerRegistration.add(resizeWidget.addHideHandler(handler));
    handlerRegistration.add(resizeWidget.addShowHandler(handler));
View Full Code Here

      bind(null);
    }
    this.listView = listView;
    if (listView != null) {
      if (handlerRegistration == null) {
        handlerRegistration = new GroupingHandlerRegistration();
      }
      handlerRegistration.add(listView.addDomHandler(handler, MouseDownEvent.getType()));
      handlerRegistration.add(listView.addDomHandler(handler, ClickEvent.getType()));
      handlerRegistration.add(listView.addRefreshHandler(handler));
      keyNav.bind(listView);
View Full Code Here

          @SuppressWarnings("unchecked")
          ListLoader<ListLoadConfig, ListLoadResult<?>> l = (ListLoader<ListLoadConfig, ListLoadResult<?>>) loader;

          // delay expanding - hide the empty list with shadow until something is loaded.
          if (listView.getLoadingHtml() == null) {
            final GroupingHandlerRegistration tmpHandler = new GroupingHandlerRegistration();
            LoadHandler<ListLoadConfig, ListLoadResult<?>> loadHandler = new LoadHandler<ListLoadConfig, ListLoadResult<?>>() {
              @Override
              public void onLoad(LoadEvent<ListLoadConfig, ListLoadResult<?>> event) {
                tmpHandler.removeHandler();
                expand(context, parent, updater, value);
              }
            };
            tmpHandler.add(l.addLoadHandler(loadHandler));
          }

          l.load(getParams(query));
        }
      } else {
View Full Code Here

      this.store = store;
      if (listView != null) {
        listView.setStore(store);
      }
      if (storeRegistration == null) {
        storeRegistration = new GroupingHandlerRegistration();
      }
      storeRegistration.add(store.addStoreDataChangeHandler(storeHandler));
      storeRegistration.add(store.addStoreUpdateHandler(storeHandler));
    }
  }
View Full Code Here

TOP

Related Classes of com.sencha.gxt.core.shared.event.GroupingHandlerRegistration

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.