public class DataTransferItemList extends HtmlUnitScriptable
DataTransferItemList.org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunctionCONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTNOT_FOUND| Constructor and Description | 
|---|
| DataTransferItemList() | 
| Modifier and Type | Method and Description | 
|---|---|
| static DataTransferItem | add(org.htmlunit.corejs.javascript.Context context,
   org.htmlunit.corejs.javascript.Scriptable scope,
   org.htmlunit.corejs.javascript.Scriptable thisObj,
   Object[] args,
   org.htmlunit.corejs.javascript.Function function)Creates a new  DataTransferItemusing the specified data and adds it to the drag data list. | 
| void | clear()Removes all DataTransferItem objects from the drag data items list, leaving the list empty. | 
| Object | get(int index,
   org.htmlunit.corejs.javascript.Scriptable start) | 
| FileList | getFiles()INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. | 
| int | getLength() | 
| void | jsConstructor()JavaScript constructor. | 
| void | remove(int index)Removes the DataTransferItem at the specified index from the list. | 
| 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, setParentScope, setupPromise, setupRejectedPromiseapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkSlotRemoval, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, 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, getSuperProperty, getSuperProperty, getSuperProperty, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, sizecreateSlotMappublic void jsConstructor()
public int getLength()
length propertypublic static DataTransferItem add(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, org.htmlunit.corejs.javascript.Function function)
DataTransferItem using the specified data and adds it to the drag data list.
 The item may be a File or a string of a given type. If the item is successfully added to the list,
 the newly-created DataTransferItem object is returned.context - the JavaScript contextscope - the scopethisObj - the scriptableargs - the arguments passed into the methodfunction - the functionDataTransferItem objectpublic void clear()
public void remove(int index)
index - the zero-based index number of the item in the drag data list to remove.
        If the index doesn't correspond to an existing item in the list, the list is left unchanged.public Object get(int index, org.htmlunit.corejs.javascript.Scriptable start)
get in interface org.htmlunit.corejs.javascript.Scriptableget in class org.htmlunit.corejs.javascript.ScriptableObjectpublic org.htmlunit.corejs.javascript.Scriptable values()
public FileList getFiles()
files propertyCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.