com.gargoylesoftware.htmlunit.javascript.host
Class Style

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.Style
All Implemented Interfaces:
java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable

public class Style
extends SimpleScriptable

A JavaScript object for a Style.

Version:
$Revision: 1.3 $
Author:
Mike Bowler, Christian Sell, Daniel Gredler, Chris Erskine, Ahmed Ashour
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
Style()
 Create an instance.
 
Method Summary
 java.lang.String jsxFunction_getPropertyValue(java.lang.String name)
 Gets the value of the specified property of the style.
 java.lang.String jsxGet_behavior()
 Gets the object's behavior (IE only).
 java.lang.String jsxGet_filter()
 Gets the object's filter (IE only).
 void jsxSet_behavior(java.lang.String behavior)
 Sets the object's behavior (IE only).
 void jsxSet_filter(java.lang.String filter)
 Sets the object's filter (IE only).
 void put(java.lang.String name, org.mozilla.javascript.Scriptable start, java.lang.Object newValue)
 Set the specified property.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getHtmlElementOrDie, getHtmlElementOrNull, getIntArg, getObjectArg, getStringArg, makeScriptableFor, setDomNode, setHtmlElement
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Style

public Style()
Create an instance. Javascript objects must have a default constructor.

Method Detail

jsxFunction_getPropertyValue

public java.lang.String jsxFunction_getPropertyValue(java.lang.String name)
Gets the value of the specified property of the style.

Parameters:
name - the style property name
Returns:
empty string if nothing found

jsxGet_behavior

public java.lang.String jsxGet_behavior()
Gets the object's behavior (IE only).

Returns:
the object's behavior

jsxGet_filter

public java.lang.String jsxGet_filter()
Gets the object's filter (IE only). See the MSDN documentation for more information.

Returns:
the object's filter

jsxSet_behavior

public void jsxSet_behavior(java.lang.String behavior)
Sets the object's behavior (IE only).

Parameters:
behavior - the new behavior

jsxSet_filter

public void jsxSet_filter(java.lang.String filter)
Sets the object's filter (IE only). See the MSDN documentation for more information.

Parameters:
filter - the new filter

put

public void put(java.lang.String name,
                org.mozilla.javascript.Scriptable start,
                java.lang.Object newValue)
Set the specified property.

Specified by:
put in interface org.mozilla.javascript.Scriptable
Overrides:
put in class org.mozilla.javascript.ScriptableObject
Parameters:
name - The name of the property
start - The scriptable object that was originally invoked for this property
newValue - The new value


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.