public interface UICheckBox extends UIAtomicWithEnumerationItem
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
.
The JavaScript type for this widget is an Array
of
String
s (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.
getIndex, isLabelEnabled, setIndex, setLabelEnabled
getSpecificNomenclature, setSpecificNomenclature
getActionOnAfterValueChanged, isAjaxPrevalidationEnabled, isAjaxValueSynchEnabled, setActionOnAfterValueChanged, setAjaxPrevalidationEnabled, setAjaxValueSynchEnabled
isEditorDisabled, setEditorDisabled