public class IAttributes
extends net.java.html.lib.Objs
| Modifier and Type | Field and Description |
|---|---|
net.java.html.lib.Objs.Property<net.java.html.lib.Objs> |
$attr
A map of DOM element attribute names to the normalized name.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IAttributes(net.java.html.lib.Objs.Constructor<?> c,
Object js) |
| Modifier and Type | Method and Description |
|---|---|
void |
$addClass(String classVal)
Adds the CSS class value specified by the classVal parameter to the
element.
|
static IAttributes |
$as(Object obj) |
net.java.html.lib.Objs |
$attr() |
Object |
$get(String name)
this is necessary to be able to access the scoped attributes.
|
String |
$normalize(String name)
Converts an attribute name (e.g.
|
<T> net.java.html.lib.Function |
$observe(String name,
net.java.html.lib.Function.A1<? super T,? extends Object> fn)
Observes an interpolated attribute.
|
void |
$removeClass(String classVal)
Removes the CSS class value specified by the classVal parameter from the
element.
|
void |
$set(String key,
Object value)
Set DOM element attribute value.
|
void |
$updateClass(String newClasses,
String oldClasses)
Adds and removes the appropriate CSS class values to the element based on the difference between
the new and old CSS class values (specified as newClasses and oldClasses).
|
$as, $cast, $delete, $js, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOfpublic net.java.html.lib.Objs.Property<net.java.html.lib.Objs> $attr
protected IAttributes(net.java.html.lib.Objs.Constructor<?> c,
Object js)
public static IAttributes $as(Object obj)
public Object $get(String name)
$get in class net.java.html.lib.Objspublic net.java.html.lib.Objs $attr()
public void $addClass(String classVal)
public String $normalize(String name)
public <T> net.java.html.lib.Function $observe(String name, net.java.html.lib.Function.A1<? super T,? extends Object> fn)
public void $removeClass(String classVal)
public void $set(String key, Object value)
$set in class net.java.html.lib.ObjsCopyright © 2016. All rights reserved.