Ein Property kann implizit gesetzt werden mit setValue
Code Block
language
java
theme
Confluence
// Sets the Property
checkBox.setValue(true);
oder indem ein Property eines Items als Model gesetzt wird. Die Zuweisung erfolgt dabei mit der Methode setPropertyDataSource.
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);