public class DhWindow
Represents an HTML window object.
Constructors
Name | Description |
---|---|
DhWindow() | Creates a DhWindow object. |
DhWindow(IHTMLWindow2 window, IHTMLDocument2 docPeer, DhDocument document) | Creates a DhWindow object. |
Methods
Name | Description |
---|---|
close() | Closes the window, and resets its document and window peers to null. |
findWindow( IHTMLWindow2 windowPeer) | Loops through all the known windows and tries to locate the one with the specified windowPeer. |
getBrowser() | Retrieves the representation of the browser object. |
getClosed() | Determines if the window is closed. |
getDialogArguments() | Retrieves the arguments passed to a modal dialog window. |
getDocument() | Retrieves the document contained in this window. |
getEventPeer() | Retrieves a peer that handles events for this window. |
getFrame(String name) | Retrieves the first frame that has the specified name. |
getFrames() | Retrieves an array of DhWindow objects, one for each frame enclosed in this window. |
getHashString() | Retrieves a hash string passed to the document. |
getHistoryLength() | Retrieves the number of entries in the window's history. |
getName() | Retrieves a string representing the name of the window. |
getParent() | Retrieves the parent of this window. |
getPeer() | Retrieves the underlying HTML peer element for this class. |
getReturnValue() | Retrieves the return value from a modal dialog window. |
getSearchString() | Retrieves a search string passed to the document. |
getUrl() | Retrieves a string representing the URL of the window's document. |
getWindowPeer() | Retrieves the underlying HTML peer element for this class. |
goBackInHistory(int delta, DhEventHandler h) | Loads the previous URL in the history list. |
goForwardInHistory(int delta, DhEventHandler h) | Loads the next URL in the history list. |
goRelativeInHistory(int delta, DhEventHandler h) | Loads the previous URL in the history list. |
MessageBox( String s ) | Displays a modal user message box. |
navigate(String url, DhEventHandler h) | Opens a new URL in this window with the specified name and properties and returns a DhWindow handle to the newly opened window. |
open(String url, String name, DhWindowInfo wi, boolean fReplace) | Opens a new URL in this window with the given name and properties and returns a DhWindow handle to the newly opened window. |
setFocus(boolean focus) | Sets or removes the focus of the current window. |
setName(String name) | Sets the name of the current window. |
setReturnValue(Variant retValue) | Retrieves the return value from a modal dialog window. |
setStatus(String s ) | Displays a string in the status bar of the window host (typically the browser). |
showModalDialog(String dialogUrl, Variant dialogArgs, DhDialogInfo di) | Opens an HTML dialog window using the URL as the source of the contents and dialoginfo to define the appearance of the dialog window. |
Creates a DhWindow object.
Creates a DhWindow object.
Closes the window, and resets its document and window peers to null.
Returns the DhWindow object corresponding to the specified windowPeer.
Loops through all the known windows and tries to locate the one with the specified windowPeer.
Returns an object representing the browser.
Retrieves the representation of the browser object.
Returns true if the window is closed; otherwise, returns false.
Determines if the window is closed.
Returns arguments passed to this dialog window through showModalDialog().
Retrieves the arguments passed to a modal dialog window.
Returns the document associated with this window.
Retrieves the document contained in this window. The result can be null if the document is not accessible (for example, because of security restrictions).
Returns an IUnknown object containing a reference to the peer that handles events for this window.
Retrieves a peer that handles events for this window.
Returns the window defining the enclosed frame having the specified name.
Retrieves the first frame that has the specified name. This name has to be unique. Otherwise, it returns null.
Returns the array of windows defining the enclosed frames.
Retrieves an array of DhWindow objects, one for each frame enclosed in this window.
Returns hash segment of the window's URL.
Retrieves a hash string passed to the document. This is usually the string after the hash mark (#).
Returns the history length.
Retrieves the number of entries in the window's history.
Returns the name of the window.
Retrieves a string representing the name of the window.
Returns the parent window of this window.
Retrieves the parent of this window.
Returns the element peer underlying the HTML peer for this class.
Retrieves the underlying HTML peer element for this class. This method returns null if the document is not bound to this class. Java code that is running in a trusted environment can freely cast the resulting reference to a specific element peer type (for example, wfc.html.om.IHTMLWindow2). This method always returns null if the code is running in a Web server environment.
Calling this method represents a very advanced usage scenario. Typically, you would never use this method.
Returns arguments passed to this dialog window through showModalDialog().
Retrieves the return value from a modal dialog window.
Returns the search segment of URL of the window.
Retrieves a search string passed to the document. This is usually the string after the question mark (?).
Returns the location URL of the window.
Retrieves a string representing the URL of the window's document.
Returns the element peer underlying the HTML peer for this class.
Retrieves the underlying HTML peer element for this class. This method returns null if the document is not bound to this class. Java code that is running in a trusted environment can freely cast the resulting reference to a specific element peer type (for example, wfc.html.om.IHTMLWindow2). This method always returns null if the code is running in a Web server environment.
Calling this method represents a very advanced usage scenario. Typically, you would never use this method.
Loads the previous URL in the history list.
Loads the next URL in the history list.
Returns a unique index representing this navigation.
Loads the previous URL in the history list.
Displays a modal user message box.
Opens a new URL in this window with the specified name and properties and returns a DhWindow handle to the newly opened window.
Opens a new URL in this window with the given name and properties and returns a DhWindow handle to the newly opened window.
Sets or removes the focus of the current window.
Sets the name of the current window.
Returns arguments passed to this dialog through showModalDialog().
Retrieves the return value from a modal dialog window.
Displays a string in the status bar of the window host (typically the browser).
Returns a com.ms.com.Variant object that packages the returned values or values of the dialog window.
Opens an HTML dialog window using the URL as the source of the contents and dialoginfo to define the appearance of the dialog window. It retrieves a Variant object that packages the return value or values of the dialog window.