Package org.apache.pivot.wtk.effects

Examples of org.apache.pivot.wtk.effects.TransitionListener


            if (closeTransition == null) {
                closeTransition = new FadeWindowTransition(window,
                    closeTransitionDuration, closeTransitionRate,
                    dropShadowDecorator);

                closeTransition.start(new TransitionListener() {
                    @Override
                    public void transitionCompleted(Transition transition) {
                        window.close();
                    }
                });
View Full Code Here


            @Override
            public void buttonPressed(final Button button) {
                if (collapseTransition == null) {
                    collapseTransition = new CollapseTransition(button, TRANSITION_DURATION, TRANSITION_RATE);

                    TransitionListener transitionListener = new TransitionListener() {
                        @Override
                        public void transitionCompleted(Transition transition) {
                            CollapseTransition collapseTransitionLocal = (CollapseTransition)transition;

                            if (!transition.isReversed()) {
View Full Code Here

                        selectionChangeTransition = new SelectionChangeTransition(selectedIndex, true);
                    }
                }

                if (selectionChangeTransition != null) {
                    selectionChangeTransition.start(new TransitionListener() {
                        @Override
                        public void transitionCompleted(Transition transition) {
                            TabPane tabPaneLocal = (TabPane)getComponent();

                            SelectionChangeTransition selectionChangeTransitionLocal =
View Full Code Here

        Window owner = window.getOwner();
        owner.getComponentListeners().add(ownerListener);

        openTransition = new OpenTransition(false);
        openTransition.start(new TransitionListener() {
            @Override
            public void transitionCompleted(Transition transition) {
                openTransition = null;
            }
        });
View Full Code Here

            openTransition = null;
        } else
        if (reason == Vote.DEFER
            && openTransition != null
            && !openTransition.isRunning()) {
            openTransition.start(new TransitionListener() {
                @Override
                public void transitionCompleted(Transition transition) {
                    openTransition = null;
                    doingFinalClose = true;
                    sheet.close(closingResult);
View Full Code Here

            && expander.getContent() != null) {
            final boolean expanded = expander.isExpanded();
            shadeButton.setButtonData(expanded ? collapseImage : expandImage);
            expandTransition = new ExpandTransition(expanded);

            expandTransition.start(new TransitionListener() {
                @Override
                public void transitionCompleted(Transition transition) {
                    expander.setExpanded(!expanded);
                    expandTransition = null;
                }
View Full Code Here

            closeTransition = new FadeWindowTransition(suggestionPopup,
                closeTransitionDuration, closeTransitionRate,
                dropShadowDecorator);

            closeTransition.start(new TransitionListener() {
                @Override
                public void transitionCompleted(Transition transition) {
                    suggestionPopup.close(result);
                }
            });
View Full Code Here

            && expandTransition == null
            && rollup.getContent() != null) {
            final boolean expanded = rollup.isExpanded();
            expandTransition = new ExpandTransition(expanded);

            expandTransition.start(new TransitionListener() {
                @Override
                public void transitionCompleted(Transition transition) {
                    rollup.setExpanded(!expanded);
                    expandTransition = null;
                }
View Full Code Here

                    selectionChangeTransition = new SelectionChangeTransition(fromPanel,
                        toPanel);

                    layout();
                    selectionChangeTransition.start(new TransitionListener() {
                        @Override
                        public void transitionCompleted(Transition transition) {
                            accordion.setSelectedIndex(selectedIndex);
                            selectionChangeTransition = null;
View Full Code Here

                    break;
                }
            }

            if (selectionChangeTransition != null) {
                selectionChangeTransition.start(new TransitionListener() {
                    @Override
                    public void transitionCompleted(Transition transition) {
                        CardPane cardPane = (CardPane)getComponent();

                        SelectionChangeTransition selectionChangeTransition =
View Full Code Here

TOP

Related Classes of org.apache.pivot.wtk.effects.TransitionListener

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.