Variable.DefaultImpls
Constructor and Description |
---|
VariableWithValues(Variable delegate,
java.util.List<ru.yandex.money.tools.grafana.dsl.variables.VariableValue> values,
int selectedIndex)
Variable with values that can be selected at dashboard screen.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asVariable()
Returns string representation of this variable.
|
java.lang.String |
getName()
Variable name.
|
org.json.JSONObject |
toJson()
returns object as JSON.
|
asVariable, getName
public VariableWithValues(Variable delegate, java.util.List<ru.yandex.money.tools.grafana.dsl.variables.VariableValue> values, int selectedIndex)
Variable with values that can be selected at dashboard screen.
It's recommended to use instances of this class as delegates for other variable implementations.
delegate
- a variable delegatevalues
- a list of variables that can be selectedselectedIndex
- index of selected valuedelegate
- a variable delegatevalues
- a list of variables that can be selectedselectedIndex
- index of selected value