| Modifier and Type | Method and Description |
|---|---|
JsArray<String> |
ValueMap.getJSStringArray(String name)
Gets the value with the given key as an string array.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ExecuteJavaScriptElementUtils.populateModelProperties(StateNode node,
JsArray<String> properties)
Populate model
properties: add them into
NodeFeatures.ELEMENT_PROPERTIES NodeMap if they are
not defined by the client-side element or send their client-side value to
the server otherwise. |
static void |
ExecuteJavaScriptElementUtils.registerUpdatableModelProperties(StateNode node,
JsArray<String> properties)
Register the updatable model properties of the
node. |
| Modifier and Type | Method and Description |
|---|---|
static JsArray<ApplicationConnection> |
Bootstrapper.getRunningApplications()
Gets a list of references to all running application instances.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ExecuteJavaScriptProcessor.invoke(String[] parameterNamesAndCode,
JsArray<Object> parameters,
JsMap<Object,StateNode> nodeParameters)
Executes the actual invocation.
|
void |
StateTree.sendTemplateEventToServer(StateNode node,
String methodName,
JsArray<?> argsArray)
Sends a request to call server side method with
methodName using
argsArray as argument values. |
| Modifier and Type | Method and Description |
|---|---|
JsArray<String> |
ServerEventObject.getMethods()
Gets the defined methods.
|
<T extends BindingStrategy<?>> |
BinderContext.getStrategies(Predicate<BindingStrategy<?>> predicate)
Gets the strategies with a specific type
T using filtering
predicate. |
| Modifier and Type | Method and Description |
|---|---|
static <T> JsArray<T> |
JsCollections.array()
Creates a new JavaScript Array.
|
static <T> JsArray<T> |
JsCollections.array(T... values)
Creates a new JavaScript Array with the given contents.
|
JsArray<T> |
JsArray.clear()
Clears the array.
|
JsArray<V> |
JsMap.mapValues()
Returns an array of the values in this
JsMap. |
JsArray<T> |
JsArray.splice(int index,
int remove,
T... add)
Removes and adds a number of items at the given index.
|
JsArray<T> |
JsArray.spliceArray(int index,
int remove,
JsArray<? extends T> add)
Removes and adds a number of items at the given index.
|
| Modifier and Type | Method and Description |
|---|---|
int |
JsArray.pushArray(JsArray<? extends T> values)
Adds items to the end of this array.
|
JsArray<T> |
JsArray.spliceArray(int index,
int remove,
JsArray<? extends T> add)
Removes and adds a number of items at the given index.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JreJsArray<T>
Deprecated.
Only to be used for testing
|
| Modifier and Type | Method and Description |
|---|---|
JsArray<T> |
JreJsArray.doSpliceArray(int index,
int remove,
JsArray<? extends T> add)
Deprecated.
JRE implementation of the final
spliceArray(int, int, JsArray)
method. |
JsArray<T> |
JreJsArray.splice(int index,
int remove,
T... add)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
JreJsArray.asList(JsArray<T> array)
Deprecated.
Gets the values of this array as a list.
|
JsArray<T> |
JreJsArray.doSpliceArray(int index,
int remove,
JsArray<? extends T> add)
Deprecated.
JRE implementation of the final
spliceArray(int, int, JsArray)
method. |
| Modifier and Type | Method and Description |
|---|---|
JsArray<elemental.dom.Node> |
DomNode.getChildNodes()
Returns the
childNodes property. |
JsArray<elemental.dom.Node> |
DomElement.querySelectorAll(String selectors)
Returns a non-live
NodeList of all elements descended from
this element and match the given group of CSS selectors. |
| Constructor and Description |
|---|
UpdatableModelProperties(JsArray<String> properties)
Creates a new instance of storage class based on given
properties. |
| Modifier and Type | Method and Description |
|---|---|
JsArray<?> |
ListSpliceEvent.getAdd()
Gets an array of added items.
|
JsArray<String> |
NodeMap.getPropertyNames()
Gets all property names in this map.
|
JsArray<?> |
ListSpliceEvent.getRemove()
Gets an array of removed items.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NodeList.splice(int index,
int remove,
JsArray<?> add)
Removes and adds a number of items at the given index.
|
| Constructor and Description |
|---|
ListSpliceEvent(NodeList source,
int index,
JsArray<?> remove,
JsArray<?> add,
boolean clear)
Creates a new list splice event.
|
ListSpliceEvent(NodeList source,
int index,
JsArray<?> remove,
JsArray<?> add,
boolean clear)
Creates a new list splice event.
|
| Modifier and Type | Method and Description |
|---|---|
static JsArray<Object> |
ClientJsonCodec.jsonArrayAsJsArray(elemental.json.JsonArray jsonArray)
Converts a JSON array to a JS array.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
NativeFunction.apply(Object thisArg,
JsArray<?> arguments)
Invokes this function with a given
this and arguments
provided as an array. |
Copyright © 2000–2020 Vaadin Ltd. All rights reserved.