Package com.sencha.gxt.fx.client.animation

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


      // Show the body before animating
      getAppearance().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(getAppearance().getBodyWrap(getElement()), Direction.DOWN));

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


   * 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

          // do nothing
      }
      panel.getElement().alignTo(getElement(), align, 0, 0);

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

      // Disable toggle tool during animated collapse
      if (collapseBtn != null) {
        collapseBtn.disable();
      }

      Fx fx = new Fx(getAnimationDuration());
      fx.addAfterAnimateHandler(new AfterAnimateHandler() {
        @Override
        public void onAfterAnimate(AfterAnimateEvent event) {
          afterCollapse();
        }
      });
      fx.run(new SlideOut(getAppearance().getBodyWrap(getElement()), Direction.UP));

      addStyleDependentName("animated");
    } else {
      getAppearance().getBodyWrap(getElement()).hide();
      afterCollapse();
View Full Code Here

    if (autoHide) {
      preview.remove();
    }
    if (isAnimate()) {
      Fx fx = new Fx();
      fx.addAfterAnimateHandler(new AfterAnimateHandler() {
        @Override
        public void onAfterAnimate(AfterAnimateEvent event) {
          afterHide();
        }
      });

      fx.run(new FadeOut(getElement()));
    } else {
      afterHide();
    }
  }
View Full Code Here

    if (autoHide) {
      preview.add();
    }

    if (animate) {
      Fx fx = new Fx();
      fx.addAfterAnimateHandler(new AfterAnimateHandler() {

        @Override
        public void onAfterAnimate(AfterAnimateEvent event) {
          afterShow();
        }
      });

      fx.run(new FadeIn(getElement()));
    } else {
      afterShow();
    }

    return this;
View Full Code Here

      // Disable toggle tool during animated collapse
      if (collapseBtn != null) {
        collapseBtn.disable();
      }

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

      addStyleDependentName("animated");
    } else {
      appearance.getBodyWrap(getElement()).hide();
      afterCollapse();
View Full Code Here

      // 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

   * 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

          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

TOP

Related Classes of com.sencha.gxt.fx.client.animation.Fx

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.