Package pivot.util

Examples of pivot.util.Vote


                    passwdTextInput.setText(keystorePassword);
                }

                sheet.getSheetStateListeners().add(new SheetStateListener() {
                    public Vote previewSheetClose(Sheet sheet, boolean result) {
                        Vote vote = Vote.APPROVE;

                        if (result) {
                            TextInput pathTextInput = (TextInput)sheetSerializer.getObjectByID("path");
                            TextInput passwdTextInput = (TextInput)sheetSerializer.getObjectByID("passwd");
View Full Code Here


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

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

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

        invalidateComponent();
    }

    // Accordion selection events
  public Vote previewSelectedIndexChange(final Accordion accordion, final int selectedIndex) {
    Vote vote = Vote.APPROVE;

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

        invalidateComponent();
    }

    // Tab pane selection events
  public Vote previewSelectedIndexChange(final TabPane tabPane, final int selectedIndex) {
        Vote vote = Vote.APPROVE;

        if (tabPane.isShowing()) {
            if (expandTransition == null) {
                if (selectedIndex == -1) {
                    expandTransition = new ExpandTransition(true, EXPAND_DURATION, EXPAND_RATE);
View Full Code Here

    }

    public Vote previewSheetClose(final Sheet sheet, final boolean result) {
        // Start a close transition, return false, and close the window
        // when the transition is complete
        Vote vote = Vote.APPROVE;

        if (closeTransition == null) {
            int duration = SLIDE_DURATION;
            int beginX = 0;
            int beginY = 0;
View Full Code Here

    }

    // RollupListener methods

    public Vote previewExpandedChange(final Rollup rollup) {
        Vote vote = Vote.APPROVE;

        if (rollup.getDisplay() != null) {
            if (rollup.isExpanded()) {
                // Start a collapse transition, return false, and set the
                // expanded state when the transition is complete
View Full Code Here

        titleLabel.setDisplayable(title != null);
        titleLabel.setText(title);
    }

    public Vote previewExpandedChange(final Expander expander) {
        Vote vote = Vote.APPROVE;

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

    public void orientationChanged(CardPane cardPane, Orientation previousOrientation) {
        // No-op
    }

    public Vote previewSelectedIndexChange(final CardPane cardPane, final int selectedIndex) {
        Vote vote = Vote.APPROVE;

        if (cardPane.isShowing()) {
            if (selectionChangeTransition == null) {
                Orientation orientation = cardPane.getOrientation();
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

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.