@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="DOMTokenList")
public class DOMTokenList
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DOMTokenList.Entry |
static interface |
DOMTokenList.ForEachCallback |
static interface |
DOMTokenList.ForEachCallback2 |
static interface |
DOMTokenList.ForEachCallback3 |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
value
The value property of the DOMTokenList interface is a stringifier that returns the value of the list as a DOMString, or clears and sets the list to the given value.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DOMTokenList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String... tokens)
The add() method of the DOMTokenList interface adds the given token to the list.
|
boolean |
contains(java.lang.String token)
The contains() method of the DOMTokenList interface returns a Boolean — true if the underlying list contains the given token, otherwise false.
|
JsIterator<DOMTokenList.Entry> |
entries()
The DOMTokenList.entries() method returns an iterator allowing you to go through all key/value pairs contained in this object.
|
void |
forEach(DOMTokenList.ForEachCallback callback)
The forEach() method of the DOMTokenList interface calls the callback given in parameter once for each value pair in the list, in insertion order.
|
void |
forEach(DOMTokenList.ForEachCallback2 callback)
The forEach() method of the DOMTokenList interface calls the callback given in parameter once for each value pair in the list, in insertion order.
|
void |
forEach(DOMTokenList.ForEachCallback3 callback)
The forEach() method of the DOMTokenList interface calls the callback given in parameter once for each value pair in the list, in insertion order.
|
java.lang.String |
item(int index)
The item() method of the DOMTokenList interface returns an item in the list by its index.
|
JsIterator<java.lang.Double> |
keys()
The keys() method of the DOMTokenList interface returns an iterator allowing to go through all keys contained in this object.
|
int |
length()
The length read-only property of the DOMTokenList interface is an integer representing the number of objects stored in the object.
|
void |
remove(java.lang.String... tokens)
The remove() method of the DOMTokenList interface removes the specified tokens from the list.
|
boolean |
replace(java.lang.String token,
java.lang.String newToken)
The replace() method of the DOMTokenList interface replaces an existing token with a new token.
|
boolean |
supports(java.lang.String token)
The supports() method of the DOMTokenList interface returns true if a given token is in the associated attribute's supported tokens.
|
boolean |
toggle(java.lang.String token)
The toggle() method of the DOMTokenList interface removes a given token from the list and returns false.
|
boolean |
toggle(java.lang.String token,
boolean force)
The toggle() method of the DOMTokenList interface removes a given token from the list and returns false.
|
JsIterator<java.lang.String> |
values()
The values() method of the DOMTokenList interface returns an iterator allowing developers to go through all values contained in the DOMTokenList.
|
@Nonnull public java.lang.String value
@JsProperty(name="length") public int length()
public void add(@Nonnull
java.lang.String... tokens)
public boolean contains(@Nonnull
java.lang.String token)
public void remove(@Nonnull
java.lang.String... tokens)
public boolean replace(@Nonnull
java.lang.String token,
@Nonnull
java.lang.String newToken)
public boolean supports(@Nonnull
java.lang.String token)
public boolean toggle(@Nonnull
java.lang.String token,
boolean force)
public boolean toggle(@Nonnull
java.lang.String token)
@Nullable public java.lang.String item(int index)
@Nonnull public JsIterator<java.lang.Double> keys()
@Nonnull public JsIterator<java.lang.String> values()
@Nonnull public JsIterator<DOMTokenList.Entry> entries()
public void forEach(@Nonnull
DOMTokenList.ForEachCallback callback)
public void forEach(@Nonnull
DOMTokenList.ForEachCallback2 callback)
public void forEach(@Nonnull
DOMTokenList.ForEachCallback3 callback)