use of org.olat.modules.taxonomy.ui.events.DeleteTaxonomyLevelEvent in project openolat by klemens.
the class TaxonomyLevelOverviewController method event.
@Override
protected void event(UserRequest ureq, Controller source, Event event) {
if (metadataCtrl == source) {
if (event == Event.DONE_EVENT || event == Event.CHANGED_EVENT) {
taxonomyLevel = metadataCtrl.getTaxonomyLevel();
updateProperties();
fireEvent(ureq, event);
} else if (event == Event.CANCELLED_EVENT) {
fireEvent(ureq, Event.CANCELLED_EVENT);
}
} else if (confirmDeleteCtrl == source) {
if (event == Event.DONE_EVENT || event == Event.CHANGED_EVENT || event instanceof DeleteTaxonomyLevelEvent) {
fireEvent(ureq, new DeleteTaxonomyLevelEvent());
}
cmc.deactivate();
cleanUp();
} else if (createTaxonomyLevelCtrl == source) {
if (event == Event.DONE_EVENT || event == Event.CHANGED_EVENT) {
fireEvent(ureq, new NewTaxonomyLevelEvent(createTaxonomyLevelCtrl.getTaxonomyLevel()));
}
cmc.deactivate();
cleanUp();
} else if (moveLevelCtrl == source) {
if (event == Event.DONE_EVENT || event == Event.CHANGED_EVENT) {
taxonomyLevel = moveLevelCtrl.getMovedTaxonomyLevel();
fireEvent(ureq, new MoveTaxonomyLevelEvent(moveLevelCtrl.getMovedTaxonomyLevel()));
}
cmc.deactivate();
cleanUp();
} else if (cmc == source) {
cleanUp();
}
super.event(ureq, source, event);
}
Aggregations