Search in sources :

Example 1 with Choice

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));
}
Also used : Choice(org.olat.core.gui.components.choice.Choice)

Example 2 with Choice

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));
}
Also used : Choice(org.olat.core.gui.components.choice.Choice)

Example 3 with Choice

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);
}
Also used : Choice(org.olat.core.gui.components.choice.Choice) CloseableCalloutWindowController(org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)

Example 4 with Choice

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;
}
Also used : Choice(org.olat.core.gui.components.choice.Choice)

Example 5 with 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;
}
Also used : Choice(org.olat.core.gui.components.choice.Choice)

Aggregations

Choice (org.olat.core.gui.components.choice.Choice)10 AutoCompleteEvent (org.olat.core.gui.components.form.flexible.impl.elements.AutoCompleteEvent)2 CloseableCalloutWindowController (org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)2