public class FileList extends SimpleScriptable
FileList
.Constructor and Description |
---|
FileList()
Creates an instance.
|
FileList(File[] array)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start) |
int |
getLength()
Returns the
length property. |
File |
item(int index)
Returns a
File object representing the file at the specified index in the file list. |
void |
setParentScope(net.sourceforge.htmlunit.corejs.javascript.Scriptable m) |
clone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, put, setClassName
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public FileList()
public FileList(File[] array)
array
- the array of filespublic void setParentScope(net.sourceforge.htmlunit.corejs.javascript.Scriptable m)
setParentScope
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
setParentScope
in class HtmlUnitScriptable
public int getLength()
length
property.length
propertypublic File item(int index)
File
object representing the file at the specified index in the file list.index
- The zero-based index of the file to retrieve from the listFile
representing the requested filepublic Object get(int index, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
get
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
get
in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
Copyright © 2002–2017 Gargoyle Software Inc.. All rights reserved.