Examples of DialogCloseListener


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

Examples of org.apache.pivot.wtk.DialogCloseListener

        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

Examples of org.apache.pivot.wtk.DialogCloseListener

            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

Examples of org.apache.pivot.wtk.DialogCloseListener

            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

Examples of org.apache.pivot.wtk.DialogCloseListener

        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

Examples of org.apache.pivot.wtk.DialogCloseListener

            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

Examples of org.apache.pivot.wtk.DialogCloseListener

            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

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) {
                    Alert alert = (Alert)dialog;

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

Examples of pivot.wtk.DialogCloseListener

        ArrayList<String> options = new ArrayList<String>();
        options.add("OK");
        options.add("Cancel");

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

                if (alert.getResult()) {
                    if (alert.getSelectedOption() == 0) {
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.