Package com.vaadin.terminal.gwt.server

Examples of com.vaadin.terminal.gwt.server.WebApplicationContext


        return m_statefulTargetRepository.preregister(attributes, tags);
    }

    private void addCrossPlatformAddShortcut(Button button, int keycode, String description) {
        // ACE-427 - NPE when using getMainWindow() if no authentication is used...
        WebApplicationContext context = (WebApplicationContext) getContext();
        ShortcutHelper.addCrossPlatformShortcut(context.getBrowser(), button, description, keycode, ModifierKey.SHIFT);
    }
View Full Code Here


        getWindow().showNotification(title, String.format("<br/>%s", message), Notification.TYPE_WARNING_MESSAGE);
    }

    private void addCrossPlatformShortcut(Button button, int key, String description) {
        // ACE-427 - NPE when using getMainWindow() if no authentication is used...
        WebApplicationContext context = (WebApplicationContext) getApplication().getContext();
        ShortcutHelper.addCrossPlatformShortcut(context.getBrowser(), button, description, key);
    }
View Full Code Here

    /**
     * Get current {@link ProcessToolRegistry}
     * @return current registry
     */
    public static ProcessToolRegistry getRegistry() {
        WebApplicationContext webCtx = (WebApplicationContext) getCurrent().getContext();
        ServletContext sc = webCtx.getHttpSession().getServletContext();
        return (ProcessToolRegistry) sc.getAttribute(ProcessToolRegistry.class.getName());
    }
View Full Code Here

TOP

Related Classes of com.vaadin.terminal.gwt.server.WebApplicationContext

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.