Example usage for javafx.scene.web WebView setContextMenuEnabled

List of usage examples for javafx.scene.web WebView setContextMenuEnabled

Introduction

In this page you can find the example usage for javafx.scene.web WebView setContextMenuEnabled.

Prototype

public final void setContextMenuEnabled(boolean value) 

Source Link

Usage

From source file:de.chaosfisch.uploader.gui.renderer.TagTextArea.java

private void initPicker(final WebView webView) {
    webView.getEngine().loadContent(getInlineHtml());
    webView.setContextMenuEnabled(false);
    webView.getEngine().setOnAlert(new EventHandler<WebEvent<String>>() {
        @Override/*w ww  . ja  va 2  s .co m*/
        public void handle(final WebEvent<String> event) {
            tags.set(event.getData());
        }
    });

    getChildren().add(webView);
}