public class FileList extends HtmlUnitScriptable
FileList
.org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
FileList()
Creates an instance.
|
FileList(File[] array)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int index,
org.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 |
jsConstructor()
JavaScript constructor.
|
void |
setParentScope(org.htmlunit.corejs.javascript.Scriptable m) |
void |
updateFiles(ArrayList<File> files)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
org.htmlunit.corejs.javascript.Scriptable |
values()
Returns an Iterator allowing to go through all keys contained in this object.
|
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
public FileList()
public FileList(File[] array)
array
- the array of filespublic void jsConstructor()
public void updateFiles(ArrayList<File> files)
files
- the new files listpublic void setParentScope(org.htmlunit.corejs.javascript.Scriptable m)
setParentScope
in interface org.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, org.htmlunit.corejs.javascript.Scriptable start)
get
in interface org.htmlunit.corejs.javascript.Scriptable
get
in class org.htmlunit.corejs.javascript.ScriptableObject
public org.htmlunit.corejs.javascript.Scriptable values()
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.