use of org.olat.modules.qpool.ui.events.QItemViewEvent in project openolat by klemens.
the class ItemListMyListsController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (selectLink == source) {
Set<Integer> selections = getItemsTable().getMultiSelectedIndex();
if (!selections.isEmpty()) {
List<QuestionItemView> items = getItemViews(selections);
fireEvent(ureq, new QItemViewEvent("select-item", items));
}
} else if (myListEl == source) {
String selectedCollKey = myListEl.getSelectedKey();
if (StringHelper.isLong(selectedCollKey)) {
Long collectionKey = Long.parseLong(selectedCollKey);
doSelectCollection(ureq, collectionKey);
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.modules.qpool.ui.events.QItemViewEvent in project openolat by klemens.
the class ItemListMySharesController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (selectLink == source) {
Set<Integer> selections = getItemsTable().getMultiSelectedIndex();
if (!selections.isEmpty()) {
List<QuestionItemView> items = getItemViews(selections);
fireEvent(ureq, new QItemViewEvent("select-item", items));
}
} else if (myShareEl == source) {
String selectedKey = myShareEl.getSelectedKey();
if (selectedKey != null && selectedKey.length() > 4) {
String key = selectedKey.substring(4);
if (StringHelper.isLong(key)) {
Long resourceKey = Long.parseLong(key);
if (selectedKey.startsWith("pool")) {
doSelectPool(ureq, resourceKey);
} else if (selectedKey.startsWith("grou")) {
doSelectBusinessGroup(ureq, resourceKey);
}
}
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.modules.qpool.ui.events.QItemViewEvent in project OpenOLAT by OpenOLAT.
the class ItemListMyCompetencesController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (selectLink == source) {
Set<Integer> selections = getItemsTable().getMultiSelectedIndex();
if (!selections.isEmpty()) {
List<QuestionItemView> items = getItemViews(selections);
fireEvent(ureq, new QItemViewEvent("select-item", items));
}
} else if (myCompetenceLevelsEl == source) {
String selectedKey = myCompetenceLevelsEl.getSelectedKey();
if (StringHelper.isLong(selectedKey)) {
doSelectLevel(ureq, selectedKey);
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.modules.qpool.ui.events.QItemViewEvent in project OpenOLAT by OpenOLAT.
the class ItemListMySharesController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (selectLink == source) {
Set<Integer> selections = getItemsTable().getMultiSelectedIndex();
if (!selections.isEmpty()) {
List<QuestionItemView> items = getItemViews(selections);
fireEvent(ureq, new QItemViewEvent("select-item", items));
}
} else if (myShareEl == source) {
String selectedKey = myShareEl.getSelectedKey();
if (selectedKey != null && selectedKey.length() > 4) {
String key = selectedKey.substring(4);
if (StringHelper.isLong(key)) {
Long resourceKey = Long.parseLong(key);
if (selectedKey.startsWith("pool")) {
doSelectPool(ureq, resourceKey);
} else if (selectedKey.startsWith("grou")) {
doSelectBusinessGroup(ureq, resourceKey);
}
}
}
}
super.formInnerEvent(ureq, source, event);
}
use of org.olat.modules.qpool.ui.events.QItemViewEvent in project OpenOLAT by OpenOLAT.
the class ItemListMyListsController method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (selectLink == source) {
Set<Integer> selections = getItemsTable().getMultiSelectedIndex();
if (!selections.isEmpty()) {
List<QuestionItemView> items = getItemViews(selections);
fireEvent(ureq, new QItemViewEvent("select-item", items));
}
} else if (myListEl == source) {
String selectedCollKey = myListEl.getSelectedKey();
if (StringHelper.isLong(selectedCollKey)) {
Long collectionKey = Long.parseLong(selectedCollKey);
doSelectCollection(ureq, collectionKey);
}
}
super.formInnerEvent(ureq, source, event);
}
Aggregations