com.gargoylesoftware.htmlunit.activex.javascript.msxml
Class MSXMLActiveXObjectFactory

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.activex.javascript.msxml.MSXMLActiveXObjectFactory

public class MSXMLActiveXObjectFactory
extends Object

ActiveXObjectFactory for the MSXML ActiveX library.

Version:
$Revision: 9017 $
Author:
Frank Danek

Constructor Summary
MSXMLActiveXObjectFactory()
           
 
Method Summary
 net.sourceforge.htmlunit.corejs.javascript.Scriptable create(String activeXName, WebWindow enclosingWindow)
          Creates an instance of the ActiveX object for the given name.
 void init(BrowserVersion browserVersion)
          Initializes the factory.
 boolean supports(String activeXName)
          Checks if the given ActiveX name is supported by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSXMLActiveXObjectFactory

public MSXMLActiveXObjectFactory()
Method Detail

init

public void init(BrowserVersion browserVersion)
          throws Exception
Initializes the factory.

Parameters:
browserVersion - the browser version to use
Throws:
Exception - if something goes wrong

supports

public boolean supports(String activeXName)
Checks if the given ActiveX name is supported by this factory.

Parameters:
activeXName - the ActiveX name to check
Returns:
true if the given name is supported

create

public net.sourceforge.htmlunit.corejs.javascript.Scriptable create(String activeXName,
                                                                    WebWindow enclosingWindow)
Creates an instance of the ActiveX object for the given name.

Parameters:
activeXName - the ActiveX name to create an object for
enclosingWindow - the enclosing window
Returns:
the created ActiveX object


Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.