Examples of Vote


Examples of org.apache.pivot.util.Vote

            }
        }

        if (!isOpen()) {
            opening = true;
            Vote vote = windowStateListeners.previewWindowOpen(this);

            if (vote == Vote.APPROVE) {
                // Set the owner and add to the owner's owned window list
                this.owner = ownerArgument;
View Full Code Here

Examples of org.apache.pivot.util.Vote

            // close - not doing so would prevent close transitions from running
            // in parallel, forcing them to run in series)
            if (cancel) {
                closing = false;
            } else {
                Vote vote = windowStateListeners.previewWindowClose(this);

                if (vote == Vote.APPROVE) {
                    // Remove the window from the display
                    Display display = getDisplay();
                    display.remove(this);
View Full Code Here

Examples of org.apache.pivot.util.Vote

    }

    // Tab pane selection events
    @Override
    public Vote previewSelectedIndexChange(TabPane tabPane, int selectedIndex) {
        Vote vote;

        if (tabPane.isCollapsible()) {
            if (tabPane.isShowing()
                && selectionChangeTransition == null) {
                int previousSelectedIndex = tabPane.getSelectedIndex();
View Full Code Here

Examples of org.apache.pivot.util.Vote

            }
        }

        @Override
        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

Examples of org.apache.pivot.util.Vote

            }
        }

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

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

            return vote;
        }
View Full Code Here

Examples of org.apache.pivot.util.Vote

    /**
     * {@inheritDoc}
     */
    @Override
    public Vote previewExpandedChange(final Expander expander) {
        Vote vote;

        if (expander.isShowing()
            && expandTransition == null
            && expander.getContent() != null) {
            final boolean expanded = expander.isExpanded();
View Full Code Here

Examples of org.apache.pivot.util.Vote

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

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

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

Examples of org.apache.pivot.util.Vote

            isReadOnly = beanDictionary.isReadOnly(columnName);
            rowData = beanDictionary;
        }

        if (!isReadOnly) {
            Vote vote = rowEditorListeners.previewEditRow(this, tableView, rowIndex, columnIndex);

            if (vote == Vote.APPROVE) {
                this.tableView = tableView;
                this.rowIndex = rowIndex;
                this.columnIndex = columnIndex;
View Full Code Here

Examples of org.apache.pivot.util.Vote

        String columnName = tableView.getColumns().get(columnIndex).getName();

        // Preview the changes
        HashMap<String, Object> changes = new HashMap<String, Object>();
        changes.put(columnName, text);
        Vote vote = rowEditorListeners.previewSaveChanges(this, tableView, rowIndex,
            columnIndex, changes);

        if (vote == Vote.APPROVE) {
            List<Object> tableData = (List<Object>)tableView.getTableData();
View Full Code Here

Examples of org.apache.pivot.util.Vote

    public void close(boolean result) {
        if (!isClosed()) {
            closing = true;

            Vote vote = sheetStateListeners.previewSheetClose(this, result);

            if (vote == Vote.APPROVE) {
                Window owner = getOwner();

                super.close();
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.