Package rocket.event.client

Examples of rocket.event.client.EventPreviewAdapter


      draggedPanel.setYOffset(yOffset);
      draggedPanel.setActualWidget(widget);

      // register an event previewer to handle mouse events(watch for drag
      // move, drop ).
      final EventPreviewAdapter greedy = new EventPreviewAdapter() {
        public void onMouseMove(final MouseMoveEvent event) {
          DraggablePanel.this.onDragMove(event, draggedPanel);
        }

        public void onMouseUp(final MouseUpEvent event) {
          DraggablePanel.this.onDropped(event, draggedPanel, this);
        }
      };
      greedy.install();

      final Element dragPanelElement = draggedPanel.getElement();
      final int elementPageX = dragPanelElement.getAbsoluteLeft();
      final int elementPageY = dragPanelElement.getAbsoluteTop();
View Full Code Here


     * the event type.
     *
     * @return
     */
    protected EventPreview createEventPreview() {
      return new EventPreviewAdapter() {

        protected void beforeDispatching(final Event event) {
          event.setWidget(Splitter.this);
        }

View Full Code Here

   * {@link #onDraggingEventPreview(Event)}
   *
   * @return
   */
  protected EventPreview createDraggingEventPreview() {
    return new EventPreviewAdapter() {
      protected void onMouseMove(final MouseMoveEvent event) {
        FloatingSlider.this.onHandleMouseMove(event);
      }

      protected void onMouseUp(final MouseUpEvent event) {
View Full Code Here

   * handler event methods on the outter class.
   *
   * @return
   */
  protected EventPreview createDraggingEventPreview() {
    return new EventPreviewAdapter() {

      public void onMouseMove(final MouseMoveEvent event) {
        Slider.this.onMouseMove(event);
      }

View Full Code Here

TOP

Related Classes of rocket.event.client.EventPreviewAdapter

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.