/** * Returns the editor associated with the named property, or null if none found. * * @param propName The property name. * @param select If true, select editor's the containing row. * @return The associated property editor (may be null). */ public PropertyEditorBase<?> findEditor(String propName, boolean select) { for (Object child : gridProperties.getRows().getChildren()) { if (child instanceof Row) { Row row = (Row) child; PropertyEditorBase<?> editor = (PropertyEditorBase<?>) row.getAttribute(EDITOR_ATTR); if (editor != null && editor.getPropInfo().getId().equals(propName)) { if (select) { row.setSelected(true); } return editor; } } } return null; }