Package org.apache.pivot.wtk

Examples of org.apache.pivot.wtk.DialogCloseListener


            ArrayList<String> options = new ArrayList<String>();
            options.add("Yes");
            options.add("No");

            alert = new Alert(MessageType.QUESTION, "Cancel shutdown?", options);
            alert.open(display, new DialogCloseListener() {
                public void dialogClosed(Dialog dialog, boolean modal) {
                    Alert alert = (Alert)dialog;

                    if (alert.getResult()) {
                        if (alert.getSelectedOption() == 1) {
View Full Code Here


        al.add("One");
        al.add("Two");
        motif.setListData(al);

        CalendarButton cbDate = (CalendarButton)bxmlSerializer.getNamespace().get("date");
        dcl = (new DialogCloseListener() {
            @Override
            public void dialogClosed(Dialog dialog, boolean modal) {
                // empty block
            }
        });
View Full Code Here

            options.add("Yes");
            options.add("No");

            alert = new Alert(MessageType.QUESTION, "Cancel shutdown?", options);
            alert.setModal(false);
            alert.open(display, new DialogCloseListener() {
                @Override
                public void dialogClosed(Dialog dialog, boolean modal) {
                    if (!(dialog instanceof Alert)) {
                        return ;
                    }
View Full Code Here

            options.add("Yes");
            options.add("No");

            alert = new Alert(MessageType.QUESTION, "Cancel shutdown?", options);
            alert.setModal(false);
            alert.open(display, new DialogCloseListener() {
                public void dialogClosed(Dialog dialog, boolean modal) {
                    if (!(dialog instanceof Alert)) {
                        return ;
                    }
View Full Code Here

        al.add("One");
        al.add("Two");
        motif.setListData(al);

        CalendarButton cbDate = (CalendarButton)bxmlSerializer.getNamespace().get("date");
        dcl = (new DialogCloseListener() {
            public void dialogClosed(Dialog dialog, boolean modal) {
            }
        });
        cbDate.getCalendarButtonSelectionListeners().add(new CalendarButtonSelectionListener() {
            @Override
View Full Code Here

            options.add("Yes");
            options.add("No");

            alert = new Alert(MessageType.QUESTION, "Cancel shutdown?", options);
            alert.setModal(false);
            alert.open(display, new DialogCloseListener() {
                public void dialogClosed(Dialog dialog, boolean modal) {
                    Alert alert = (Alert)dialog;

                    if (alert.getResult()) {
                        if (alert.getSelectedOptionIndex() == 1) {
View Full Code Here

            options.add("Yes");
            options.add("No");

            alert = new Alert(MessageType.QUESTION, "Cancel shutdown?", options);
            alert.setModal(false);
            alert.open(display, new DialogCloseListener() {
                public void dialogClosed(Dialog dialog, boolean modal) {
                    Alert alert = (Alert)dialog;

                    if (alert.getResult()) {
                        if (alert.getSelectedOption() == 1) {
View Full Code Here

            ArrayList<String> options = new ArrayList<String>();
            options.add("Yes");
            options.add("No");

            alert = new Alert(MessageType.QUESTION, "Cancel shutdown?", options);
            alert.open(display, new DialogCloseListener() {
                public void dialogClosed(Dialog dialog) {
                    Alert alert = (Alert)dialog;

                    if (alert.getResult()) {
                        if (alert.getSelectedOption() == 1) {
View Full Code Here

TOP

Related Classes of org.apache.pivot.wtk.DialogCloseListener

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.