void (ActionEvent e) { final int selectedRow=getSelectedRow(); if(isEditing() || selectedRow==-1){ return; } final Property property=myProperties.get(selectedRow); if(getPropChildren(property).length>0) { if (myExpand) { if (!isPropertyExpanded(property)) { expandProperty(selectedRow); } } else { if (isPropertyExpanded(property)) { collapseProperty(selectedRow); } } } }