Examples of Fx


Examples of com.sencha.gxt.fx.client.animation.Fx

      // Show the body before animating
      appearance.getBodyWrap(getElement()).show();

      addStyleDependentName("animated");

      Fx fx = new Fx(getAnimationDuration());
      fx.addAfterAnimateHandler(new AfterAnimateHandler() {
        @Override
        public void onAfterAnimate(AfterAnimateEvent event) {
          afterExpand();
        }
      });
      fx.run(new SlideIn(appearance.getBodyWrap(getElement()), Direction.DOWN));

      // Disable toggle tool during animated expand
      if (collapseBtn != null) {
        collapseBtn.disable();
      }
View Full Code Here

Examples of com.sencha.gxt.fx.client.animation.Fx

   * Has no effect if the panel is not expanded.
   */
  public void collapse() {
    if (expanded) {
      if (animate) {
        Fx fx = new Fx();
        fx.addAfterAnimateHandler(new AfterAnimateHandler() {
          @Override
          public void onAfterAnimate(AfterAnimateEvent event) {
            afterCollapse();
          }
        });
View Full Code Here

Examples of com.sencha.gxt.fx.client.animation.Fx

          break;
      }
      panel.getElement().alignTo(getElement(), align, null);

      if (animate && !disableAnimations) {
        Fx fx = new Fx();
        fx.addAfterAnimateHandler(new AfterAnimateHandler() {
          @Override
          public void onAfterAnimate(AfterAnimateEvent event) {
            expanded = true;
          }
        });
View Full Code Here

Examples of com.sencha.gxt.fx.client.animation.Fx

      setValue(d);
    }
  }

  private void hideMonthPicker() {
    Fx fx = new Fx();
    fx.addAfterAnimateHandler(new AfterAnimateHandler() {
      @Override
      public void onAfterAnimate(AfterAnimateEvent event) {
        monthPicker.setVisible(false);
      }
    });
View Full Code Here

Examples of com.sencha.gxt.fx.client.animation.Fx

   * @param fx the fx instance
   * @param interval the rate of blink
   */
  public final void blink(Fx fx, int interval) {
    if (fx == null) {
      fx = new Fx();
    }
    fx.run(new Blink(this, interval));
  }
View Full Code Here

Examples of com.sencha.gxt.fx.client.animation.Fx

   *
   * @param fx the {@link Fx} object
   */
  public final void fadeToggle(Fx fx) {
    if (fx == null) {
      fx = new Fx();
    }
    if (!isVisible()) {
      fx.run(new FadeIn(this));
    } else {
      fx.run(new FadeOut(this));
View Full Code Here

Examples of com.sencha.gxt.fx.client.animation.Fx

    if (side == ScrollDirection.LEFT) {
      dir = ScrollDir.HORIZONTAL;
    }
   
    if(fx == null) {
      fx = new Fx();
    }

    fx.run(new com.sencha.gxt.fx.client.animation.Scroll(this, dir, value));
  }
View Full Code Here

Examples of com.sencha.gxt.fx.client.animation.Fx

   * @param direction the direction
   * @param fx the fx config
   */
  public final void slideIn(Direction direction, Fx fx) {
    if (fx == null) {
      fx = new Fx();
    }
    fx.run(new SlideIn(this, direction));
  }
View Full Code Here

Examples of com.sencha.gxt.fx.client.animation.Fx

   * @param direction the direction
   * @param fx the fx
   */
  public final void slideOut(Direction direction, Fx fx) {
    if (fx == null) {
      fx = new Fx();
    }
    fx.run(new SlideOut(this, direction));
  }
View Full Code Here

Examples of com.sencha.gxt.fx.client.animation.Fx

  }

  private void scrollTo(int pos, boolean animate) {
    XElement stripWrap = getStripWrap();
    if (animate) {
      Fx fx = new Fx();
      fx.addAfterAnimateHandler(new AfterAnimateHandler() {
        @Override
        public void onAfterAnimate(AfterAnimateEvent event) {
          appearance.updateScrollButtons(getElement());
        }
      });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.