ice.storm
Class DocumentProxy

java.lang.Object
  extended byice.storm.DynamicObject
      extended byice.storm.DocumentProxy

public class DocumentProxy
extends DynamicObject


Field Summary
 
Fields inherited from class ice.storm.DynamicObject
NOT_FOUND, SETD_IGNORE, SETD_NOT_FOUND, SETD_OK
 
Constructor Summary
DocumentProxy(Viewport view)
           
 
Method Summary
 Object getDynamicScopeParent()
          This is only relevant to support scope chain during event handler execution.
 Object getDynamicValue(String name, DynEnv env)
          Returns the `key' field or Defs.NOT_FOUND if `name' does not exist.
 int setDynamicValue(String name, Object value, DynEnv env)
          Set field `name' to `value'.
 
Methods inherited from class ice.storm.DynamicObject
deleteSlot, deleteSlot, execDynamicMethod, getEnumeratableIds, getMethodPropertySource, getScriptDataLock, getScriptWrapper, getSlot, getSlot, 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
 

Constructor Detail

DocumentProxy

public DocumentProxy(Viewport view)
Method Detail

getDynamicScopeParent

public Object getDynamicScopeParent()
Description copied from class: DynamicObject
This is only relevant to support scope chain during event handler execution. In ideal world this should always return null

Overrides:
getDynamicScopeParent in class DynamicObject

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 DynamicObject

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 DynamicObject
Returns:
SETD_NOT_FOUND if fied `name' is absent, SETD_IGNORE if field exist but set is ignored SETD_OK if set opeartion was ok