Package org.apache.pivot.wtk

Examples of org.apache.pivot.wtk.Application$AboutHandler


     * Terminates the application context.
     */
    public static boolean exit() {
        boolean cancelShutdown = false;

        Application application = applicationContext.getApplication();
        if (application != null) {
            try {
                cancelShutdown = application.shutdown(true);
            } catch(Exception exception) {
                displayException(exception);
            }

            if (!cancelShutdown) {
View Full Code Here


                case WindowEvent.WINDOW_OPENED: {
                    addDisplay(applicationContext.getDisplay());
                    createTimer();

                    // Load the application
                    Application application = null;
                    try {
                        Class<?> applicationClass = Class.forName(applicationClassName);
                        application = (Application)applicationClass.newInstance();
                        applicationContext.setApplication(application);
                    } catch(Exception exception) {
                        Alert.alert(MessageType.ERROR, exception.getMessage(),
                            applicationContext.getDisplay());
                        exception.printStackTrace();
                    }

                    // Set focus to the display host
                    DisplayHost displayHost = applicationContext.getDisplayHost();
                    displayHost.requestFocus();

                    // Start the application
                    if (application != null) {
                        try {
                            application.startup(applicationContext.getDisplay(),
                                new ImmutableMap<String, String>(properties));
                        } catch(Exception exception) {
                            displayException(exception);
                        }
View Full Code Here

TOP

Related Classes of org.apache.pivot.wtk.Application$AboutHandler

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.