XdevTwinColSelect
The XdevTwinColSelect consists of two list boxes with which you can create a selection list by simultaneously taking up one or more values in the right list box. Only the entries of the right list box are persisted.
The XdevTwinColSelect is a form component and can be persisted via the XdevFieldGroup.
Important properties:
Important events:
Data binding:
Data container (model)
XdevBeanItemContainer - Standard data container. The allocation is set using the setContainerDataSource method.
// Generates a new XdevBeanItemContainer 'productList' XdevBeanItemContainer<Product> productList = new XdevBeanItemContainer<Product>(Product.class); // Sets the XdevBeanItemContainer twinColSelect.setContainerDataSource(productList);XdevLazyEntityContainer - RapidClipse exclusively uses this when the property Entity > Auto query data is selected.
Examples:
Selected object - Returns the selected object (entity): Example: category entity
BeanItem<Category> selectedItem = twinColSelect.getSelectedItem(); Category category = selectedItem.getBean();or
Category Category = (Category)listSelect.getValue();or - Delivers a list of all selected elements
List<BeanItem<Category>> selectedItems = twinColSelect.getSelectedItems()Reset selection - Sets the selection to the initial state. This triggers a valueChange event.
twinColSelect.clear();Allocate focus - Allocates the focus on the XdevTwinColSelect. This can trigger a focus event, if necessary.
twinColSelect.focus();