public class DataTransferItemList extends HtmlUnitScriptable
DataTransferItemList
.org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
DataTransferItemList()
Creates an instance.
|
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
DataTransferItem using 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, 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 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.Scriptable
get
in class org.htmlunit.corejs.javascript.ScriptableObject
public org.htmlunit.corejs.javascript.Scriptable values()
public FileList getFiles()
files
propertyCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.