public class FileList extends SimpleScriptable
FileList.| Constructor and Description |
|---|
FileList()
Creates an instance.
|
FileList(List<File> pathnames)
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, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, setClassNameapplyDescriptorToAttributeBitset, 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, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic void setParentScope(net.sourceforge.htmlunit.corejs.javascript.Scriptable m)
setParentScope in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablesetParentScope in class HtmlUnitScriptablepublic 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.Scriptableget in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.