Package org.apache.pivot.wtk.effects

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


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

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

                            SelectionChangeTransition selectionChangeTransition =
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

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

            @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 collapseTransition = (CollapseTransition)transition;

                            if (!transition.isReversed()) {
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.