Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
      languagejava
      themeConfluence
      // 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
      languagejava
      themeConfluence
      // 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);


...