action = new ActionEvent(bean, GeneralConstants.END,
ACTION_SAVE_BEAN);
listeners.actionPerformed(action);
}
} else if (addButton.equals(event.getSource())) {
BeanTreeNode selection = (BeanTreeNode) tree.getSelectionPath()
.getLastPathComponent();
selection.addNewChild();
model.nodeStructureChanged(selection);
} else if (removeButton.equals(event.getSource())) {
BeanTreeNode selection = (BeanTreeNode) tree.getSelectionPath()
.getLastPathComponent();
BeanTreeNode parent = (BeanTreeNode) selection.getParent();
selection.removeFromParent();
model.nodeStructureChanged(parent);
}
else
throw new InvalidParameterException("Command " + command