use of org.olat.core.gui.components.choice.Choice in project OpenOLAT by OpenOLAT.
the class BGAreaEditController method initAndAddGroupsTab.
/**
* initalize the group to area association tab
*/
private void initAndAddGroupsTab() {
groupsTabVC = createVelocityContainer("groupstab");
tabbedPane.addTab(translate("tab.groups"), groupsTabVC);
allGroups = businessGroupService.findBusinessGroups(null, repoEntry, 0, -1);
inAreaGroups = areaManager.findBusinessGroupsOfArea(area);
groupsDataModel = new GroupsToAreaDataModel(allGroups, inAreaGroups);
groupsChoice = new Choice("groupsChoice", getTranslator());
groupsChoice.setSubmitKey("submit");
groupsChoice.setCancelKey("cancel");
groupsChoice.setModel(groupsDataModel);
groupsChoice.addListener(this);
groupsTabVC.put("groupsChoice", groupsChoice);
groupsTabVC.contextPut("noGroupsFound", (allGroups.size() > 0 ? Boolean.FALSE : Boolean.TRUE));
}
use of org.olat.core.gui.components.choice.Choice in project openolat by klemens.
the class BGAreaEditController method initAndAddGroupsTab.
/**
* initalize the group to area association tab
*/
private void initAndAddGroupsTab() {
groupsTabVC = createVelocityContainer("groupstab");
tabbedPane.addTab(translate("tab.groups"), groupsTabVC);
allGroups = businessGroupService.findBusinessGroups(null, repoEntry, 0, -1);
inAreaGroups = areaManager.findBusinessGroupsOfArea(area);
groupsDataModel = new GroupsToAreaDataModel(allGroups, inAreaGroups);
groupsChoice = new Choice("groupsChoice", getTranslator());
groupsChoice.setSubmitKey("submit");
groupsChoice.setCancelKey("cancel");
groupsChoice.setModel(groupsDataModel);
groupsChoice.addListener(this);
groupsTabVC.put("groupsChoice", groupsChoice);
groupsTabVC.contextPut("noGroupsFound", (allGroups.size() > 0 ? Boolean.FALSE : Boolean.TRUE));
}
use of org.olat.core.gui.components.choice.Choice in project openolat by klemens.
the class FlexiTableElementImpl method customizeCallout.
protected void customizeCallout(UserRequest ureq) {
Choice choice = getColumnListAndTheirVisibility();
callout = new CloseableCalloutWindowController(ureq, wControl, choice, customButton, "Customize", true, "o_sel_flexi_custom_callout");
callout.activate();
callout.addControllerListener(this);
}
use of org.olat.core.gui.components.choice.Choice in project openolat by klemens.
the class TableController method getColumnListAndTheirVisibility.
private Choice getColumnListAndTheirVisibility() {
Choice choice = new Choice("colchoice", getTranslator());
choice.setModel(table.createChoiceModel());
choice.addListener(this);
choice.setEscapeHtml(false);
choice.setCancelKey("cancel");
choice.setResetKey("reset");
choice.setSubmitKey("save");
choice.setElementCssClass("o_table_config");
return choice;
}
use of org.olat.core.gui.components.choice.Choice in project OpenOLAT by OpenOLAT.
the class TableController method getColumnListAndTheirVisibility.
private Choice getColumnListAndTheirVisibility() {
Choice choice = new Choice("colchoice", getTranslator());
choice.setModel(table.createChoiceModel());
choice.addListener(this);
choice.setEscapeHtml(false);
choice.setCancelKey("cancel");
choice.setResetKey("reset");
choice.setSubmitKey("save");
choice.setElementCssClass("o_table_config");
return choice;
}
Aggregations