| java.lang.Object com.gargoylesoftware.htmlunit.javascript.configuration.ClassConfiguration
ClassConfiguration | final public class ClassConfiguration (Code) | | A container for all the javascript configuration information.
version: $Revision: 2139 $ author: Mike Bowler author: Chris Erskine author: Ahmed Ashour |
Inner Class :protected class PropertyInfo | |
ClassConfiguration | public ClassConfiguration(String classname, String implementingClass, String jsConstructor, String extendedClass, String htmlClass, boolean jsObject) throws ClassNotFoundException(Code) | | Constructor
Parameters: classname - the name of the configuration class this entry is for Parameters: implementingClass - - the fully qualified name of the class implementing this functionality Parameters: jsConstructor - the constructor of method implementingClass Parameters: extendedClass - - The name of the class that this class extends Parameters: htmlClass - The name of the html class that this object supports Parameters: jsObject - boolean flag for if this object is a JavaScript object throws: ClassNotFoundException - - If the implementing class is not found |
addConstant | public void addConstant(String name)(Code) | | Add the constant to the configuration.
Parameters: name - - Name of the configuration. |
addFunction | public void addFunction(String name)(Code) | | Add the function to the configuration
Parameters: name - - Name of the function |
addProperty | public void addProperty(String name, boolean readable, boolean writeable)(Code) | | Add the property to the configuration
Parameters: name - - Name of the property Parameters: readable - - Flag for if the property is readable Parameters: writeable - - Flag for if the property is writeable |
constants | public List constants()(Code) | | Return the constant list.
a list. |
equals | public boolean equals(Object obj)(Code) | | Test for value equality of the 2 objects
Parameters: obj - the reference object with which to compare. true if the value of this object is the same as the objargument; false otherwise. |
functionKeys | public Set functionKeys()(Code) | | Return the set of keys for the defined functions
a set. |
getClassName | public String getClassName()(Code) | | Returns the className. |
getExtendedClass | public String getExtendedClass()(Code) | | Returns the extendedClass. |
getFunctionMethod | public Method getFunctionMethod(String functionName)(Code) | | Gets the method that implements the given function
Parameters: functionName - The name of the property Method |
getHtmlClassname | public String getHtmlClassname()(Code) | | Returns the htmlClassname. |
getLinkedClass | public Class getLinkedClass()(Code) | | Gets the class of the Javascript host object
Returns the linkedClass. |
getPropertyInfo | protected PropertyInfo getPropertyInfo(String propertyName)(Code) | | Return the PropertyInfo for the given property name
Parameters: propertyName - Name of property ClassConfiguration.PropertyInfo |
getPropertyReadMethod | public Method getPropertyReadMethod(String propertyName)(Code) | | Gets the method that implements the getter for the named property
Parameters: propertyName - The name of the property Method |
getPropertyWriteMethod | public Method getPropertyWriteMethod(String propertyName)(Code) | | Gets the method that implements the setter for the named property
Parameters: propertyName - The name of the property Method |
hashCode | public int hashCode()(Code) | | Currently, this is the hashcode for the name.
|
isJsObject | public boolean isJsObject()(Code) | | Returns the jsObject. |
propertyKeys | public Set propertyKeys()(Code) | | Return the set of keys for the defined properties.
a set. |
setBrowser | public void setBrowser(String propertyName, String browserName) throws IllegalStateException(Code) | | Set the browser information for this named property
Parameters: propertyName - - Name of the property to set Parameters: browserName - - Browser name to set throws: IllegalStateException - - Property does not exist |
setExtendedClass | public void setExtendedClass(String extendedClass)(Code) | | Parameters: extendedClass - The extendedClass to set. |
|
|