webbrowsereventmulticaster.java
来自「java internet 浏览器:一个java编写的web浏览器」· Java 代码 · 共 173 行
JAVA
173 行
//
// Auto-generated using JActiveX.EXE 5.00.2918
// ("D:\MICROSOFT VISUAL STUDIO\VJ98\jactivex.exe" /wfc /t "D:\MICROSOFT VISUAL STUDIO\VJ98\wfc.jnf" /w /xi /X:rkc /l "C:\WIN95\TEMP\jvc10E5.TMP" /nologo /d "e:\vj6\explore" "C:\WIN95\SYSTEM\SHDOCVW.DLL")
//
// WARNING: Do not remove the comments that include "@com" directives.
// This source file must be compiled by a @com-aware compiler.
// If you are using the Microsoft Visual J++ compiler, you must use
// version 1.02.3920 or later. Previous versions will not issue an error
// but will not generate COM-enabled class files.
//
package shdocvw.WebBrowser;
import com.ms.com.*;
import com.ms.com.IUnknown;
import com.ms.com.Variant;
// Dispatch-only interface WebBrowserEventMulticaster
class WebBrowserEventMulticaster implements shdocvw.DWebBrowserEvents2, com.ms.com.NoAutoScripting, com.ms.com.NoAutoMarshaling
{
shdocvw.WebBrowser.WebBrowser _jcom_parent;
WebBrowserEventMulticaster( shdocvw.WebBrowser.WebBrowser _jcom_parent )
{
this._jcom_parent = _jcom_parent;
}
public void StatusTextChange(String Text)
{
if( _jcom_parent.onStatusTextChange != null) {
_jcom_parent.onStatusTextChange.invoke( _jcom_parent, new shdocvw.WebBrowser.StatusTextChangeEvent( Text ) );
}
}
public void ProgressChange(int Progress, int ProgressMax)
{
if( _jcom_parent.onProgressChange != null) {
_jcom_parent.onProgressChange.invoke( _jcom_parent, new shdocvw.WebBrowser.ProgressChangeEvent( Progress, ProgressMax ) );
}
}
public void CommandStateChange(int Command, boolean Enable)
{
if( _jcom_parent.onCommandStateChange != null) {
_jcom_parent.onCommandStateChange.invoke( _jcom_parent, new shdocvw.WebBrowser.CommandStateChangeEvent( Command, Enable ) );
}
}
public void DownloadBegin()
{
if( _jcom_parent.onDownloadBegin != null) {
_jcom_parent.onDownloadBegin.invoke( _jcom_parent, com.ms.wfc.core.Event.EMPTY );
}
}
public void DownloadComplete()
{
if( _jcom_parent.onDownloadComplete != null) {
_jcom_parent.onDownloadComplete.invoke( _jcom_parent, com.ms.wfc.core.Event.EMPTY );
}
}
public void TitleChange(String Text)
{
if( _jcom_parent.onTitleChange != null) {
_jcom_parent.onTitleChange.invoke( _jcom_parent, new shdocvw.WebBrowser.TitleChangeEvent( Text ) );
}
}
public void PropertyChange(String szProperty)
{
if( _jcom_parent.onPropertyChange != null) {
_jcom_parent.onPropertyChange.invoke( _jcom_parent, new shdocvw.WebBrowser.PropertyChangeEvent( szProperty ) );
}
}
public void BeforeNavigate2(Object pDisp, Variant URL, Variant Flags, Variant TargetFrameName, Variant PostData, Variant Headers, boolean[] Cancel)
{
if( _jcom_parent.onBeforeNavigate2 != null) {
_jcom_parent.onBeforeNavigate2.invoke( _jcom_parent, new shdocvw.WebBrowser.BeforeNavigate2Event( pDisp, URL, Flags, TargetFrameName, PostData, Headers, Cancel ) );
}
}
public void NewWindow2(Object[] ppDisp, boolean[] Cancel)
{
if( _jcom_parent.onNewWindow2 != null) {
_jcom_parent.onNewWindow2.invoke( _jcom_parent, new shdocvw.WebBrowser.NewWindow2Event( ppDisp, Cancel ) );
}
}
public void NavigateComplete2(Object pDisp, Variant URL)
{
if( _jcom_parent.onNavigateComplete2 != null) {
_jcom_parent.onNavigateComplete2.invoke( _jcom_parent, new shdocvw.WebBrowser.NavigateComplete2Event( pDisp, URL ) );
}
}
public void DocumentComplete(Object pDisp, Variant URL)
{
if( _jcom_parent.onDocumentComplete != null) {
_jcom_parent.onDocumentComplete.invoke( _jcom_parent, new shdocvw.WebBrowser.DocumentCompleteEvent( pDisp, URL ) );
}
}
public void OnQuit()
{
if( _jcom_parent.onOnQuit != null) {
_jcom_parent.onOnQuit.invoke( _jcom_parent, com.ms.wfc.core.Event.EMPTY );
}
}
public void OnVisible(boolean Visible)
{
if( _jcom_parent.onOnVisible != null) {
_jcom_parent.onOnVisible.invoke( _jcom_parent, new shdocvw.WebBrowser.OnVisibleEvent( Visible ) );
}
}
public void OnToolBar(boolean ToolBar)
{
if( _jcom_parent.onOnToolBar != null) {
_jcom_parent.onOnToolBar.invoke( _jcom_parent, new shdocvw.WebBrowser.OnToolBarEvent( ToolBar ) );
}
}
public void OnMenuBar(boolean MenuBar)
{
if( _jcom_parent.onOnMenuBar != null) {
_jcom_parent.onOnMenuBar.invoke( _jcom_parent, new shdocvw.WebBrowser.OnMenuBarEvent( MenuBar ) );
}
}
public void OnStatusBar(boolean StatusBar)
{
if( _jcom_parent.onOnStatusBar != null) {
_jcom_parent.onOnStatusBar.invoke( _jcom_parent, new shdocvw.WebBrowser.OnStatusBarEvent( StatusBar ) );
}
}
public void OnFullScreen(boolean FullScreen)
{
if( _jcom_parent.onOnFullScreen != null) {
_jcom_parent.onOnFullScreen.invoke( _jcom_parent, new shdocvw.WebBrowser.OnFullScreenEvent( FullScreen ) );
}
}
public void OnTheaterMode(boolean TheaterMode)
{
if( _jcom_parent.onOnTheaterMode != null) {
_jcom_parent.onOnTheaterMode.invoke( _jcom_parent, new shdocvw.WebBrowser.OnTheaterModeEvent( TheaterMode ) );
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?