Package com.ms.activeX Previous
Previous
Contents
Contents
Index
Index
Next
Next

Class AXExplorer

Constructor , Methods

public class AXExplorer extends AXComponent {
  // Constructor
  public AXExplorer();
  // Methods
  public synchronized void addNotify();
  public synchronized Dimension preferredSize();
  public synchronized Dimension minimumSize();
  public synchronized void GoBack();
  public synchronized void GoForward();
  public synchronized void GoHome();
  public synchronized void GoSearch();
  public synchronized void Navigate(String url);
  public synchronized void Refresh();
  public synchronized void Refresh2(Variant level);
  public synchronized void Stop();
  public synchronized IUnknown Application();
  public synchronized IUnknown Parent();
  public synchronized IUnknown Container();
  public synchronized IUnknown Document();
  public synchronized boolean TopLevelCOntainer();
  public synchronized String Type();
  public synchronized String LocationName();
  public synchronized String LocationURL();
  public void addAXExplorerEventListener(AXExplorerEventListener listener);
  public void removeAXExplorerEventListener(AXExplorerEventListener listener);
}

The AXExplorer class hosts Microsoft® Internet Explorer. To use this class, you must first install Microsoft® Internet Explorer version 3.0 or later.


Constructor


AXExplorer

public AXExplorer();

Creates an empty instance.


Methods


addAXExplorerEventListener

public void addAXExplorerEventListener(AXExplorerEventListener listener);

Adds a listener.

Return Value:

No return value.

ParameterDescription
listener The listener that is added.


addNotify

public synchronized void addNotify();

Creates the control at notification time.

Return Value:

No return value.


Application

public synchronized IUnknown Application();

Returns the IUnknown of an application object representing the application that contains the Internet Explorer control.

Return Value:

Returns the IUnknown of an application object.


Container

public synchronized IUnknown Container();

Returns the IUnknown of the container for the Internet Explorer control, if it exists.

Return Value:

Returns the IUnknown of the container.


Document

public synchronized IUnknown Document();

Returns the IUnknown of the active document.

Return Value:

Returns the IUnknown of the active document.


GoBack

public synchronized void GoBack();

Navigates to the previous item in the history list.

Return Value:

No return value.


GoForward

public synchronized void GoForward();

Navigates to the next item in the history list.

Return Value:

No return value.


GoHome

public synchronized void GoHome();

Navigates to the current home page or start page.

Return Value:

No return value.


GoSearch

public synchronized void GoSearch();

Navigates to the current search page.

Return Value:

No return value.


LocationName

public synchronized String LocationName();

Retrieves the name of the resource that Internet Explorer is currently displaying.

Return Value:

Returns the name of the resource that Internet Explorer is currently displaying.


LocationURL

public synchronized String LocationURL();

Retrieves the Universal Resource Locator (URL) of the resource that Internet Explorer is currently displaying.

Return Value:

Returns the URL of the resource that Internet Explorer is currently displaying.


minimumSize

public synchronized Dimension minimumSize();

Queries an object to determine its minimum size (in pixels).

Return Value:

Returns an object's minimum size.


Navigate

public synchronized void Navigate(String url);

Navigates to the resource identified by a URL.

Return Value:

No return value.

ParameterDescription
url The URL of the resource.


Parent

public synchronized IUnknown Parent();

Retrieves the IUnknown of the form that the Internet Explorer control is located on.

Return Value:

Returns the IUnknown of the form that the Internet Explorer control is located on.


preferredSize

public synchronized Dimension preferredSize();

Queries an object to determine its preferred size (in pixels).

Return Value:

Returns an object's preferred size.


Refresh

public synchronized void Refresh();

Reloads the file that Internet Explorer is currently displaying.

Return Value:

No return value.


Refresh2

public synchronized void Refresh2(Variant level);

Reloads the file that Internet Explorer is currently displaying by using the specified refresh level.

Return Value:

No return value.

ParameterDescription
level The refresh level.


removeAXExplorerEventListener

public void removeAXExplorerEventListener(AXExplorerEventListener listener);

Removes a listener.

Return Value:

No return value.

ParameterDescription
listener The listener that is removed.


Stop

public synchronized void Stop();

Cancels the opening of a file.

Return Value:

No return value.


TopLevelCOntainer

public synchronized boolean TopLevelCOntainer();

Retrieves a value that indicates whether the current object is the top-level container of the Internet Explorer control.

Return Value:

Returns a value that indicates whether the current object is the top-level container of the Internet Explorer control.


Type

public synchronized String Type();

Retrieves the type of the current contained object.

Return Value:

Returns the type of the current contained object.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.