OptionsNodeList
class is used to store the options available within
caplin.presenter.node.SelectionField and caplin.presenter.node.MultiSelectionField
instances.
Attributes | Name and Description |
---|---|
|
caplin.presenter.node.OptionsNodeList(Object vOptions)
Constructs a new |
Attributes | Name and Description |
---|---|
|
caplin.presenter.node.Option
getFirstOption()
Retrieve the first option in the list — typically the default option. |
|
void
getOptionByLabel(String sLabel)
Retrieve the option with the given label. |
|
void
getOptionByValue(String sValue)
Retrieve the option with the given unique value. |
|
Array
getOptionLabels()
Retrieve an array of labels for each caplin.presenter.node.Option contained within this object. |
|
Array
getOptions()
Retrieve the array of caplin.presenter.node.Option instances contained by this object. |
|
Array
getOptionValues()
Retrieve an array of values for each caplin.presenter.node.Option contained within this object. |
|
void
setOptions(Object vOptions)
Reset the list of available options using the given array or map. |
►
caplin.presenter.node.OptionsNodeList(Object vOptions)
Constructs a new OptionsNodeList
instance.
Object | vOptions | The set of available options, either as an array (keys only) or a map (keys to label). |
►
caplin.presenter.node.Option
getFirstOption()
Retrieve the first option in the list — typically the default option.
►
void
getOptionByLabel(String sLabel)
Retrieve the option with the given label. (If there is more than one option which has the given label, the first instance is returned.)
String | sLabel | Label to search. |
►
void
getOptionByValue(String sValue)
Retrieve the option with the given unique value.
String | sValue | Value to search. |
►
Array
getOptionLabels()
Retrieve an array of labels for each caplin.presenter.node.Option contained within this object.
►
Array
getOptions()
Retrieve the array of caplin.presenter.node.Option instances contained by this object.
►
Array
getOptionValues()
Retrieve an array of values for each caplin.presenter.node.Option contained within this object.
►
void
setOptions(Object vOptions)
Reset the list of available options using the given array or map.
Object | vOptions | The set of available options, either as an array (keys only) or a map (keys to label). |