/** * Handles the selection of a row in the property grid. * * @param event Row selection event. */ @EventHandler(value = "change", target = "rowProperties") private void onRowSelect(ChangeEvent event) { Rows rows = gridProperties.getRows(); Row selectedRow = rows.getSelectedCount() == 0 ? null : rows.getSelectedRow(); PropertyEditorBase<?> editor = selectedRow == null ? null : (PropertyEditorBase<?>) (selectedRow.getAttribute(EDITOR_ATTR)); PropertyInfo propInfo = editor == null ? null : editor.getPropInfo(); setPropertyDescription( propInfo == null ? "@cwf.shell.designer.property.grid.propdx.some.caption" : propInfo.getName(), propInfo == null ? " " : propInfo.getDescription()); if (editor != null) { editor.setFocus(); } }