Interface UICheckBox
- All Superinterfaces:
UIAtomicWidget,UIAtomicWithEnumeration,UIAtomicWithEnumerationItem,UIWidget
Since multiple checkboxes that have the same path (but different indexes) can be added to the page, the underlying field must be an aggregated list.
The checkbox can also be used for a boolean type field.
In this case, only one checkbox can be added to the page,
corresponding to the value true (i.e. the index 0
in the enumeration for a boolean type).
Please note that when checkbox is not checked, and that associated node does not offer to choose null
as value, it will be equals to false.
JavaScript type
The JavaScript type for this widget is an Array of
Strings (String[]) that corresponds to the selected keys.
If no checkboxes are selected, the value will be an empty Array, that is, [].
In the case of a boolean, since only one checkbox is present (for the value true),
an empty Array represents the value false and an Array
containing the value "true" represents true.
If an afterValueChanged action
has been set on this widget, the JavaScript type of the value will be the same.
-
Method Summary
Methods inherited from interface com.orchestranetworks.ui.form.widget.UIAtomicWidget
getActionOnAfterValueChanged, isAjaxPrevalidationEnabled, isAjaxValueSynchEnabled, setActionOnAfterValueChanged, setAjaxPrevalidationEnabled, setAjaxValueSynchEnabledMethods inherited from interface com.orchestranetworks.ui.form.widget.UIAtomicWithEnumeration
getSpecificNomenclature, setSpecificNomenclatureMethods inherited from interface com.orchestranetworks.ui.form.widget.UIAtomicWithEnumerationItem
getIndex, isLabelEnabled, setIndex, setLabelEnabledMethods inherited from interface com.orchestranetworks.ui.form.widget.UIWidget
isEditorDisabled, setEditorDisabled