com.vaadin.ui.JavaScript

Here are the examples of the java api com.vaadin.ui.JavaScript taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : ViewUtil.java
with Apache License 2.0
from opensecuritycontroller

public static void showHelpBrowserWindow(String guid) {
    JavaScript javaScript = MainUI.getCurrent().getPage().getJavaScript();
    if (!useFirstName) {
        javaScript.execute(closeNativeWindow(HELP_WINDOW_NAME_1));
    } else {
        javaScript.execute(closeNativeWindow(HELP_WINDOW_NAME_2));
    }
    MainUI.getCurrent().getPage().open("/WebHelp/" + guid, useFirstName ? HELP_WINDOW_NAME_1 : HELP_WINDOW_NAME_2);
    useFirstName = !useFirstName;
}