Package pivot.wtk.effects

Examples of pivot.wtk.effects.TransitionListener


                        scheduledFadeCallback = ApplicationContext.scheduleCallback(new Runnable() {
                            public void run() {
                                FadeTransition fadeTransition = new FadeTransition(messageLabel, 500, 30);

                                fadeTransition.start(new TransitionListener() {
                                    public void transitionCompleted(Transition transition) {
                                        messageLabel.setText(null);
                                    }
                                });
                            }
View Full Code Here


        if (closeTransition == null) {
            closeTransition = new FadeTransition(window,
                CLOSE_TRANSITION_DURATION, CLOSE_TRANSITION_RATE);

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

            if (expandTransition == null) {
                if (selectedIndex == -1) {
                    expandTransition = new ExpandTransition(true, EXPAND_DURATION, EXPAND_RATE);

                    layout();
                    expandTransition.start(new TransitionListener() {
                        public void transitionCompleted(Transition transition) {
                            tabPane.setSelectedIndex(-1);
                            expandTransition = null;
                        }
                    });
View Full Code Here

            if (previousSelectedIndex == -1) {
                if (tabPane.isShowing()) {
                    expandTransition = new ExpandTransition(false, EXPAND_DURATION, EXPAND_RATE);

                    layout();
                    expandTransition.start(new TransitionListener() {
                        public void transitionCompleted(Transition transition) {
                            expandTransition = null;
                        }
                    });
                }
View Full Code Here

              selectionChangeTransition = new SelectionChangeTransition(previousSelectedPanel, selectedPanel,
              SELECTION_CHANGE_DURATION, SELECTION_CHANGE_RATE);

              layout();
              selectionChangeTransition.start(new TransitionListener() {
                public void transitionCompleted(Transition transition) {
                  accordion.setSelectedIndex(selectedIndex);
                  selectionChangeTransition = null;

                  invalidateComponent();
View Full Code Here

        ApplicationContext.queueCallback(new Runnable() {
            public void run() {
                openTransition = new SlideTransition(window, 0, 0,
                    -window.getHeight(), 0, false, SLIDE_DURATION, SLIDE_RATE);
                openTransition.start(new TransitionListener() {
                    public void transitionCompleted(Transition transition) {
                        openTransition = null;
                    }
                });
            }
View Full Code Here

            }

            if (duration > 0) {
                closeTransition = new SlideTransition(sheet, beginX, 0,
                    beginY, -sheet.getHeight(), true, duration, SLIDE_RATE);
                closeTransition.start(new TransitionListener() {
                    public void transitionCompleted(Transition transition) {
                        sheet.close(result);
                        closeTransition = null;
                    }
                });
View Full Code Here

                    if (duration > 0) {
                        int height2 = getPreferredHeight(-1, false);

                        collapseTransition = new ExpansionTransition(height1, height2,
                            true, duration, EXPANSION_RATE);
                        collapseTransition.start(new TransitionListener() {
                            public void transitionCompleted(Transition transition) {
                                rollup.setExpanded(false);
                                collapseTransition = null;
                            }
                        });
View Full Code Here

                int height1 = getHeight();
                int height2 = getPreferredHeight(-1, true);

                expandTransition = new ExpansionTransition(height1, height2,
                    false, EXPANSION_DURATION, EXPANSION_RATE);
                expandTransition.start(new TransitionListener() {
                    public void transitionCompleted(Transition transition) {
                        expandTransition = null;
                    }
                });
            }
View Full Code Here

                if (expander.isExpanded()
                && expander.getContent() != null) {
                    expandTransition = new ExpandTransition(true, EXPAND_DURATION, EXPAND_RATE);

                    layout();
                    expandTransition.start(new TransitionListener() {
                        public void transitionCompleted(Transition transition) {
                            expander.setExpanded(false);
                            expandTransition = null;
                        }
                    });
View Full Code Here

TOP

Related Classes of 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.