Package pivot.util

Examples of pivot.util.Vote


    }

    private static class AccordionSelectionListenerList extends ListenerList<AccordionSelectionListener>
        implements AccordionSelectionListener {
        public Vote previewSelectedIndexChange(Accordion accordion, int selectedIndex) {
            Vote vote = Vote.APPROVE;

            for (AccordionSelectionListener listener : this) {
                vote = vote.tally(listener.previewSelectedIndexChange(accordion, selectedIndex));
            }

            return vote;
        }
View Full Code Here


        }

        int previousSelectedIndex = this.selectedIndex;

        if (previousSelectedIndex != selectedIndex) {
            Vote vote = cardPaneListeners.previewSelectedIndexChange(this, selectedIndex);

            if (vote == Vote.APPROVE) {
                this.selectedIndex = selectedIndex;
                cardPaneListeners.selectedIndexChanged(this, previousSelectedIndex);
            } else {
View Full Code Here

*/
public class CardPane extends Container {
    private static class CardPaneListenerList extends ListenerList<CardPaneListener>
        implements CardPaneListener {
        public Vote previewSelectedIndexChange(CardPane cardPane, int selectedIndex) {
            Vote vote = Vote.APPROVE;

            for (CardPaneListener listener : this) {
                vote = vote.tally(listener.previewSelectedIndexChange(cardPane, selectedIndex));
            }

            return vote;
        }
View Full Code Here

        return expanded;
    }

    public void setExpanded(boolean expanded) {
        if (expanded != this.expanded) {
            Vote vote = rollupStateListeners.previewExpandedChange(this);

            if (vote == Vote.APPROVE) {
                this.expanded = expanded;
                rollupStateListeners.expandedChanged(this);
            } else {
View Full Code Here

    }

    private static class RollupStateListenerList extends ListenerList<RollupStateListener>
        implements RollupStateListener {
        public Vote previewExpandedChange(Rollup rollup) {
            Vote vote = Vote.APPROVE;

            for (RollupStateListener listener : this) {
                vote = vote.tally(listener.previewExpandedChange(rollup));
            }

            return vote;
        }
View Full Code Here

            throw new IllegalArgumentException("Owner is opened on a different display.");
        }

        if (!isOpen()
            && !opening) {
            Vote vote = windowStateListeners.previewWindowOpen(this, display);

            if (vote == Vote.APPROVE) {
                opening = true;

                // Add this as child of display
View Full Code Here

     * was the focus host, the focused component will be cleared.
     */
    public void close() {
        if (!isClosed()
            && !closing) {
            Vote vote = windowStateListeners.previewWindowClose(this);

            if (vote.isApproved()) {
                closing = true;

                if (isActive()) {
                    setActiveWindow(null);
                }
View Full Code Here

     * @author gbrown
     */
    private static class WindowStateListenerList extends ListenerList<WindowStateListener>
        implements WindowStateListener {
        public Vote previewWindowOpen(Window window, Display display) {
            Vote vote = Vote.APPROVE;

            for (WindowStateListener listener : this) {
                vote = vote.tally(listener.previewWindowOpen(window, display));
            }

            return vote;
        }
View Full Code Here

                listener.windowOpened(window);
            }
        }

        public Vote previewWindowClose(Window window) {
            Vote vote = Vote.APPROVE;

            for (WindowStateListener listener : this) {
                vote = vote.tally(listener.previewWindowClose(window));
            }

            return vote;
        }
View Full Code Here

        display.getComponentKeyListeners().add(closeHandler);
    }

    @Override
    public Vote previewWindowClose(final Window window) {
        Vote vote = Vote.APPROVE;

        if (closeTransition == null) {
            closeTransition = new FadeWindowTransition(window,
                CLOSE_TRANSITION_DURATION, CLOSE_TRANSITION_RATE,
                dropShadowDecorator);
View Full Code Here

TOP

Related Classes of pivot.util.Vote

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.