Ignore:
Timestamp:
12/04/13 15:34:41 (11 years ago)
Author:
csl14
Message:

Webview captures mouse click events and copies selected text + disabled webview right click menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/reflection/JavaFX.java

    r566 r569  
    2525        public static Method WebViewSetPrefSize;
    2626        public static Method WebViewGetEngine;
     27        public static Method WebViewSetContextMenuEnabled;
    2728
    2829        public static Class WebEngine;
     
    4950        public static Class State;
    5051        public static List<Object> StateConstants;
     52       
     53        public static Class EventHandler;
     54       
     55        public static Class Node;
     56        public static Method NodeSetOnMouseClicked;
     57       
     58        public static Class MouseEvent;
     59        public static Method MouseEventGetButton;
     60       
     61        public static Class MouseButton;
    5162
    5263        public static Class JSObject;
     
    8697                        WebViewSetPrefSize = WebView.getMethod("setPrefSize", double.class, double.class);
    8798                        WebViewGetEngine = WebView.getMethod("getEngine");
     99                        WebViewSetContextMenuEnabled = WebView.getMethod("setContextMenuEnabled", boolean.class);
    88100
    89101                        WebEngine = classLoader.loadClass("javafx.scene.web.WebEngine");
     
    110122                        State = classLoader.loadClass("javafx.concurrent.Worker$State");
    111123                        StateConstants = Arrays.asList(State.getEnumConstants());
     124                       
     125                        EventHandler = classLoader.loadClass("javafx.event.EventHandler");
     126                       
     127                        Node = classLoader.loadClass("javafx.scene.Node");
     128                        NodeSetOnMouseClicked = Node.getMethod("setOnMouseClicked", EventHandler);
     129                       
     130                        MouseEvent = classLoader.loadClass("javafx.scene.input.MouseEvent");
     131                        MouseEventGetButton = MouseEvent.getMethod("getButton");
     132                       
     133                        MouseButton = classLoader.loadClass("javafx.scene.input.MouseButton");
    112134
    113135                        JSObject = classLoader.loadClass("netscape.javascript.JSObject");
Note: See TracChangeset for help on using the changeset viewer.