Package org.biouno.unochoice
Interface CascadableParameter<T>
- All Superinterfaces:
ScriptableParameter<T>
,UnoChoiceParameter
- All Known Implementing Classes:
AbstractCascadableParameter
,CascadeChoiceParameter
,DynamicReferenceParameter
A parameter that monitors other referenced parameters. When any of these parameters change,
this parameter gets updated. It has a map with the current parameters that can be retrieved
by the UI to render the most updated view, based on the state of the referenced parameters.
- Since:
- 0.20
- Author:
- Bruno P. Kinoshita
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Exposed to the UI.Evaluates a script and returns its result as a Map.Gets the list of referenced parameters.Methods inherited from interface org.biouno.unochoice.ScriptableParameter
getChoices
-
Method Details
-
getReferencedParameters
String getReferencedParameters()Gets the list of referenced parameters. If any of these parameters change in the UI we will update our current parameters.- Returns:
- the referencedParameters
-
getChoicesForUI
Evaluates a script and returns its result as a Map. List values are automatically handled and converted to Maps too.- Returns:
- script result as Map
-
doUpdate
Exposed to the UI. Is triggered every time any of the referenced parameters gets updated.- Parameters:
parameters
- Comma separated list of parameters
-