ice.pilots.html4
Class DRuleList

java.lang.Object
  extended byice.storm.DynamicObject
      extended byice.storm.DynamicList
          extended byice.pilots.html4.DRuleList
All Implemented Interfaces:
CSSRuleList

public class DRuleList
extends DynamicList
implements CSSRuleList


Field Summary
 
Fields inherited from class ice.storm.DynamicObject
NOT_FOUND, SETD_IGNORE, SETD_NOT_FOUND, SETD_OK
 
Method Summary
 void deleteRule(int index)
           
 Object execDynamicMethod(String name, Object[] args, DynEnv env)
          Perform function-like actions for `name' with the given args.
 Object getDynamicValue(String name, DynEnv env)
          Returns the `key' field or Defs.NOT_FOUND if `name' does not exist.
 int getLength()
          The number of CSSRules in the list.
 int insertRule(String rule, int index)
           
 CSSRule item(int index)
          Used to retrieve a CSS rule by ordinal index.
protected  Object script_item(int index, DynEnv env)
          Returns null if not found
protected  Object script_namedItem(String name, DynEnv env)
          Returns null if not found
 int setDynamicValue(String name, Object value, DynEnv env)
          Set field `name' to `value'.
 
Methods inherited from class ice.storm.DynamicList
getEnumeratableIds, getMethodPropertySource, getSlot, getSlot, script_tags
 
Methods inherited from class ice.storm.DynamicObject
deleteSlot, deleteSlot, getDynamicScopeParent, getScriptDataLock, getScriptWrapper, hasSlot, hasSlot, javaReflectionTarget, readOnlySlots, script_toSource, script_toString, setScriptWrapperIfAbsent, setSlot, setSlot, unlinkAllSlots
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLength

public int getLength()
Description copied from interface: CSSRuleList
The number of CSSRules in the list. The range of valid child rule indices is 0 to length-1 inclusive.

Specified by:
getLength in interface CSSRuleList
Specified by:
getLength in class DynamicList

item

public CSSRule item(int index)
Description copied from interface: CSSRuleList
Used to retrieve a CSS rule by ordinal index. The order in this collection represents the order of the rules in the CSS style sheet. If index is greater than or equal to the number of rules in the list, this returns null.

Specified by:
item in interface CSSRuleList
Returns:
The style rule at the index position in the CSSRuleList, or null if that is not a valid index.

script_item

protected Object script_item(int index,
                             DynEnv env)
Description copied from class: DynamicList
Returns null if not found

Specified by:
script_item in class DynamicList

script_namedItem

protected Object script_namedItem(String name,
                                  DynEnv env)
Description copied from class: DynamicList
Returns null if not found

Specified by:
script_namedItem in class DynamicList

insertRule

public int insertRule(String rule,
                      int index)

deleteRule

public void deleteRule(int index)

getDynamicValue

public Object getDynamicValue(String name,
                              DynEnv env)
Description copied from class: DynamicObject
Returns the `key' field or Defs.NOT_FOUND if `name' does not exist. Returns `FUNCTION_MARK' if `name' represent a function that can be invoke via execDynamicMethod. Note that returned `null' indicates that value is present but set to null.

Overrides:
getDynamicValue in class DynamicList

setDynamicValue

public int setDynamicValue(String name,
                           Object value,
                           DynEnv env)
Description copied from class: DynamicObject
Set field `name' to `value'. Use `env' to unwrap `value' to a particular type or store it as is

Overrides:
setDynamicValue in class DynamicList

execDynamicMethod

public Object execDynamicMethod(String name,
                                Object[] args,
                                DynEnv env)
Description copied from class: DynamicObject
Perform function-like actions for `name' with the given args. Returns the result or Defs.NOT_FOUND if name is not associated with function action. Should return result of env.wrapVoid() to indicate method without return value. Use `env' to unwrap `args' elements to a particular type.

Overrides:
execDynamicMethod in class DynamicList