Package com.google.gwt.event.shared

Examples of com.google.gwt.event.shared.HandlerManager


        }
      }

      boolean cancelled = false;
      if (context instanceof HandlerManagerContext) {
        HandlerManager manager = ((HandlerManagerContext) context).getHandlerManager();
        CellBeforeSelectionEvent<N> event = CellBeforeSelectionEvent.fire(manager, context, value);
        if (event != null && event.isCanceled()) {
          cancelled = true;
        }
      } else {
        CellBeforeSelectionEvent<N> event = CellBeforeSelectionEvent.fire(this, context, value);
        if (!fireCancellableEvent(event)) {
          cancelled = true;
        }
      }

      if (!cancelled) {
        N newVal = null;
        if (up) {
          newVal = getPropertyEditor().incr(value);
          if (newVal.doubleValue() > maxValue.doubleValue() || newVal.doubleValue() < minValue.doubleValue()) {
            return;
          }
          input.setValue(getPropertyEditor().render(newVal));
        } else {
          newVal = getPropertyEditor().decr(value);
          if (newVal.doubleValue() > maxValue.doubleValue() || newVal.doubleValue() < minValue.doubleValue()) {
            return;
          }
          input.setValue(getPropertyEditor().render(newVal));
        }

        if (context instanceof HandlerManagerContext) {
          HandlerManager manager = ((HandlerManagerContext) context).getHandlerManager();
          CellSelectionEvent.fire(manager, context, newVal);
        } else {
          CellSelectionEvent.fire(this, lastContext, newVal);
        }
      }
View Full Code Here


   * this method to create a custom {@link HandlerManager}.
   *
   * @return the {@link HandlerManager} you want to use
   */
  protected HandlerManager createHandlerManager() {
    return new HandlerManager(this);
  }
View Full Code Here

   * this method to create a custom {@link HandlerManager}.
   *
   * @return the {@link HandlerManager} you want to use
   */
  protected HandlerManager createHandlerManager() {
    return new HandlerManager(this);
  }
View Full Code Here

    this.userResized = userResized;
  }

  protected HandlerManager ensureHandlers() {
    if (handlerManager == null) {
      handlerManager = new HandlerManager(this);
    }
    return handlerManager;
  }
View Full Code Here

   *
   * @return the store's handler manager
   */
  protected HandlerManager ensureHandlers() {
    if (handlerManager == null) {
      handlerManager = new HandlerManager(this);
    }
    return handlerManager;
  }
View Full Code Here

    }
  }

  protected HandlerManager ensureHandlers() {
    if (handlerManager == null) {
      handlerManager = new HandlerManager(this);
    }
    return handlerManager;
  }
View Full Code Here

    }
  }

  protected HandlerManager ensureHandlers() {
    if (handlerManager == null) {
      handlerManager = new HandlerManager(this);
    }
    return handlerManager;
  }
View Full Code Here

      return dateRenderer;
    }

    @Override
    protected HandlerManager createHandlerManager() {
      return new HandlerManager(source);
    }
View Full Code Here

    }

    @Override
    protected HandlerManager createHandlerManager() {
      return new HandlerManager(source);
    }
View Full Code Here

    }

    @Override
    protected HandlerManager createHandlerManager() {
      return new HandlerManager(source);
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.event.shared.HandlerManager

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.