ice.pilots.html4
Class DMediaList

java.lang.Object
  extended byice.storm.DynamicObject
      extended byice.storm.DynamicList
          extended byice.pilots.html4.DMediaList
All Implemented Interfaces:
MediaList

public class DMediaList
extends DynamicList
implements MediaList


Field Summary
 
Fields inherited from class ice.storm.DynamicObject
NOT_FOUND, SETD_IGNORE, SETD_NOT_FOUND, SETD_OK
 
Constructor Summary
DMediaList()
           
 
Method Summary
 void appendMedium(String newMedium)
          Adds the medium newMedium to the end of the list.
 void deleteMedium(String oldMedium)
          Deletes the medium indicated by oldMedium from the list.
 Object execDynamicMethod(String name, Object[] args, DynEnv env)
          Perform function-like actions for `name' with the given args.
 String getCssText()
           
 Object getDynamicValue(String name, DynEnv env)
          Returns the `key' field or Defs.NOT_FOUND if `name' does not exist.
 int getLength()
          The number of media in the list.
 String getMediaText()
          The parsable textual representation of the media list.
 String item(int index)
          Returns the indexth in the list.
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
 void setCssText(String cssText)
           
 int setDynamicValue(String name, Object value, DynEnv env)
          Set field `name' to `value'.
 void setMediaText(String mediaText)
           
 
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
 

Constructor Detail

DMediaList

public DMediaList()
Method Detail

getMediaText

public String getMediaText()
Description copied from interface: MediaList
The parsable textual representation of the media list. This is a comma-separated list of media.

Specified by:
getMediaText in interface MediaList

setMediaText

public void setMediaText(String mediaText)
Specified by:
setMediaText in interface MediaList

getCssText

public String getCssText()

setCssText

public void setCssText(String cssText)

getLength

public int getLength()
Description copied from interface: MediaList
The number of media in the list. The range of valid media is 0 to length-1 inclusive.

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

item

public String item(int index)
Description copied from interface: MediaList
Returns the indexth in the list. If index is greater than or equal to the number of media in the list, this returns null.

Specified by:
item in interface MediaList
Parameters:
index - Index into the collection.
Returns:
The medium at the indexth position in the MediaList, 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

deleteMedium

public void deleteMedium(String oldMedium)
Description copied from interface: MediaList
Deletes the medium indicated by oldMedium from the list.

Specified by:
deleteMedium in interface MediaList

appendMedium

public void appendMedium(String newMedium)
Description copied from interface: MediaList
Adds the medium newMedium to the end of the list. If the newMedium is already used, it is first removed.

Specified by:
appendMedium in interface MediaList

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