The XdevCheckBox is a selection component that can map only two conditions; namely, selected and not selected. The field name is displayed next to the checkbox.
The XdevCheckBox is a form component and can be persisted via XdevFieldGroup.For this, you must link the XdevCheckBox under XdevFieldGroup > Field mapping > Property to an attribute of type Boolean.
...
Section |
---|
Data binding: Data container (model) - Property
A property can be set to implicit using setValue Code Block |
---|
language | java |
---|
theme | Confluence |
---|
| // Sets the Property
checkBox.setValue(true); |
or by setting the property of an item as the model. As such, the allocation can be set using the setPropertyDataSource method. Code Block |
---|
language | java |
---|
theme | Confluence |
---|
| // Gets a property from the SeletcedItem of a Table with "Product" Entities
Property<?> itemProperty = this.table.getSelectedItem().getItemProperty("discontinued");
// Sets the Property
checkBox.setPropertyDataSource(itemProperty); |
|
...