| Constructor and Description |
|---|
NodeFeature(int id,
StateNode node)
Creates a new feature.
|
| Modifier and Type | Method and Description |
|---|---|
abstract elemental.json.JsonValue |
convert(Function<Object,elemental.json.JsonValue> converter)
Convert the feature values into a
JsonValue using provided
converter for the values stored in the feature (i.e. |
protected elemental.json.JsonValue |
getAsDebugJson(Object value)
Helper for getting a JSON representation of a child value.
|
abstract elemental.json.JsonValue |
getDebugJson()
Gets a JSON object representing the contents of this feature.
|
int |
getId()
Gets the id of this feature.
|
StateNode |
getNode()
Gets the node of this feature.
|
public NodeFeature(int id,
StateNode node)
id - the id of the featurenode - the node that the feature belongs topublic int getId()
public StateNode getNode()
public abstract elemental.json.JsonValue getDebugJson()
public abstract elemental.json.JsonValue convert(Function<Object,elemental.json.JsonValue> converter)
JsonValue using provided
converter for the values stored in the feature (i.e. primitive
types, StateNodes).converter - converter to convert values stored in the featureprotected elemental.json.JsonValue getAsDebugJson(Object value)
value - the child valueCopyright © 2000–2025 Vaadin Ltd. All rights reserved.