本文整理了Java中javafx.scene.web.WebView.fireEvent()
方法的一些代码示例,展示了WebView.fireEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.fireEvent()
方法的具体详情如下:
包路径:javafx.scene.web.WebView
类名称:WebView
方法名:fireEvent
暂无
代码示例来源:origin: stackoverflow.com
void editorWebViewRequestFocus()
{
final WebView view = (WebView) ((GridPane) ((HTMLEditorSkin) editor.getSkin()).getChildren().get( 0 )).getChildren().get( 2 );
Platform.runLater( () ->
{
view.fireEvent( new MouseEvent( MouseEvent.MOUSE_PRESSED, 100, 100, 200, 200, MouseButton.PRIMARY, 1, false, false, false, false,
false, false, false, false, false, false, null ) );
editor.requestFocus();
view.fireEvent( new MouseEvent( MouseEvent.MOUSE_RELEASED, 100, 100, 200, 200, MouseButton.PRIMARY, 1, false, false, false, false,
false, false, false, false, false, false, null ) );
} );
}
代码示例来源:origin: stackoverflow.com
view.fireEvent(new MouseEvent(MouseEvent.MOUSE_PRESSED, 100, 100, 200, 200, MouseButton.PRIMARY, 1, false, false, false, false, false, false, false, false, false, false, null));
editor.requestFocus();
view.fireEvent(new MouseEvent(MouseEvent.MOUSE_RELEASED, 100, 100, 200, 200, MouseButton.PRIMARY, 1, false, false, false, false, false, false, false, false, false, false, null));
});
代码示例来源:origin: com.machinepublishers/jbrowserdriver
context.item().httpListener.get().resetStatusCode();
context.item().view.get().fireEvent(
new javafx.scene.input.KeyEvent(
javafx.scene.input.KeyEvent.KEY_TYPED, new String(new int[] { codePoint }, 0, 1), "", KeyCode.UNDEFINED,
内容来源于网络,如有侵权,请联系作者删除!