Examples of AnimationFinishedCallback


Examples of com.totsp.gwittir.client.fx.AnimationFinishedCallback

    super(new BoundWidgetTypeFactory(), null);
    final Button b = new Button("FOO!");

        final PropertyAnimator a = new PropertyAnimator(b, "height", "100px",
                "300px", MutationStrategy.UNITS_SINOIDAL, 3000,
                new AnimationFinishedCallback() {
                    public void onFinish(PropertyAnimator animator) {
                        final PropertyAnimator a = new PropertyAnimator(b,
                                "height", "300px", "100px",
                                MutationStrategy.UNITS_SINOIDAL, 3000);
                        final PropertyAnimator a2 = new PropertyAnimator(b,
View Full Code Here

Examples of com.totsp.gwittir.client.fx.AnimationFinishedCallback

    public boolean remove(Widget w) {
        if (currentWidget != null) {
            PropertyAnimator old = new PropertyAnimator(currentWidget,
                    getDirection(), "0%", "-100%",
                    MutationStrategy.UNITS_LINEAR, 1000,
                    new AnimationFinishedCallback() {
                        public void onFailure(PropertyAnimator animator,
                            Exception e) {
                            Logger.getAnonymousLogger().log( Level.INFO, "Exception animating transition", e);
                        }
View Full Code Here

Examples of com.totsp.gwittir.client.fx.AnimationFinishedCallback

        }

        this.currentAnimator = new PropertyAnimator(nextWidget,
                this.getDirection(), high, low, this.getMutationStrategy(),
                1000,
                new AnimationFinishedCallback() {
                    public void onFailure(PropertyAnimator animator, Exception e) {
                        currentAnimator = null;
                        clear();
                        add(w);
                        currentWidget = nextWidget;
                        toWidget = null;
                    }

                    public void onFinish(PropertyAnimator animator) {
                        currentWidget = nextWidget;
                        toWidget = null;
                        nextWidget.setTop("0px");
                        currentAnimator = null;
                    }
                });

        if (currentWidget != null) {
            final Widget oldWidget = (Widget) currentWidget.getUIObject();
            int totalOffset = this.currentWidget.getUIObject().getOffsetHeight() +
                Dimensions.INSTANCE.getTotalVerticalMargin(this.currentWidget.getUIObject()
                                                                             .getElement());
            Logger.getAnonymousLogger().log( Level.SPAM, "Total offset " + totalOffset, null);

            if (this.getDirection().equals(SlideTransitionSimplePanel.HORIZONTAL)) {
                nextWidget.setTop("-" + totalOffset + "px");
            }

            PropertyAnimator old = new PropertyAnimator(currentWidget,
                    this.getDirection(), "0%", "-100%",
                    this.getMutationStrategy(), 1000,
                    new AnimationFinishedCallback() {
                        public void onFailure(PropertyAnimator animator,
                            Exception e) {
                            Logger.getAnonymousLogger().log( Level.INFO, "Exception animating transition", e);
                        }
View Full Code Here

Examples of com.totsp.gwittir.client.fx.AnimationFinishedCallback

        }

        horizontalAnimator = new PropertyAnimator(this,
                "horizontalScrollPosition", new Integer(newPosition),
                integerStrategy, duration,
                new AnimationFinishedCallback() {
                    public void onFinish(PropertyAnimator animator) {
                        horizOverride = Integer.MIN_VALUE;
                        horizontalAnimator = null;
                    }
View Full Code Here

Examples of com.totsp.gwittir.client.fx.AnimationFinishedCallback

            scrollAnimator.cancel();
        }

        this.scrollAnimator = new PropertyAnimator(this, "scrollPosition",
                new Integer(newPosition), integerStrategy, duration,
                new AnimationFinishedCallback() {
                    public void onFinish(PropertyAnimator animator) {
                        scrollOverride = Integer.MIN_VALUE;
                        scrollAnimator = null;
                    }
View Full Code Here

Examples of com.totsp.gwittir.client.fx.AnimationFinishedCallback

        }

        horizontalAnimator = new PropertyAnimator(this,
                "horizontalScrollPosition", new Integer(newPosition),
                integerStrategy, duration,
                new AnimationFinishedCallback() {
                    public void onFinish(PropertyAnimator animator) {
                        horizOverride = Integer.MIN_VALUE;
                        horizontalAnimator = null;
                    }
View Full Code Here

Examples of com.totsp.gwittir.client.fx.AnimationFinishedCallback

            scrollAnimator.cancel();
        }

        this.scrollAnimator = new PropertyAnimator(this, "scrollPosition",
                new Integer(newPosition), integerStrategy, duration,
                new AnimationFinishedCallback() {
                    public void onFinish(PropertyAnimator animator) {
                        scrollOverride = Integer.MIN_VALUE;
                        scrollAnimator = null;
                    }
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.