com.gargoylesoftware.htmlunit.javascript.host
Class Enumerator

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.Enumerator
All Implemented Interfaces:
Serializable, Cloneable, Map, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public class Enumerator
extends SimpleScriptable

A JavaScript object for Enumerator.

Version:
$Revision: 5301 $
Author:
Ahmed Ashour
See Also:
MSDN Documentation, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
Enumerator()
          Creates an instance.
 
Method Summary
 void jsConstructor(Object o)
          JavaScript constructor.
 boolean jsxFunction_atEnd()
          Returns whether the enumerator is at the end of the collection or not.
 Object jsxFunction_item()
          Returns the current item in the collection.
 void jsxFunction_moveFirst()
          Resets the current item in the collection to the first item.
 void jsxFunction_moveNext()
          Moves the current item to the next item in the collection.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, keySet, preventExtensions, put, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

Enumerator

public Enumerator()
Creates an instance. JavaScript objects must have a default constructor.

Method Detail

jsConstructor

public void jsConstructor(Object o)
JavaScript constructor.

Parameters:
o - the object to enumerate over

jsxFunction_atEnd

public boolean jsxFunction_atEnd()
Returns whether the enumerator is at the end of the collection or not.

Returns:
whether the enumerator is at the end of the collection or not

jsxFunction_item

public Object jsxFunction_item()
Returns the current item in the collection.

Returns:
the current item in the collection

jsxFunction_moveFirst

public void jsxFunction_moveFirst()
Resets the current item in the collection to the first item.


jsxFunction_moveNext

public void jsxFunction_moveNext()
Moves the current item to the next item in the collection.



Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.