Overview | Methods | This Package | All Packages
Return the underlying HTML peer element for this class.
Syntax
public final IUnknown hasPeer()
Return Value
Returns the element peer underlying the HTML peer for this class, assuming it is available.
Remarks
This method can return null even if the element or its parent was added to a document, but there hasn't been occasion to bind to its peer. The Java code that is running in a trusted environment can freely cast the resulting reference to a specific element peer type (for example, com.ms.wfc.html.om.IHTMLElement). This method always returns null if the code is running in a Web server environment.
Calling getPeer retrieves the peer element even if the element hasn't had a chance to bind to the document yet.
Calling this method represents a very advanced usage scenario. Typically, you would never use this method.