javafx.scene.web.WebView.fireEvent()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(199)

本文整理了Java中javafx.scene.web.WebView.fireEvent()方法的一些代码示例,展示了WebView.fireEvent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.fireEvent()方法的具体详情如下:
包路径:javafx.scene.web.WebView
类名称:WebView
方法名:fireEvent

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,

相关文章