Package org.olat.core.gui.components.choice

Examples of org.olat.core.gui.components.choice.Choice


    } else if (source == contentVc) {
      // links of this vc container coming in
      String cmd = event.getCommand();
      if (cmd.equals("cmd.changecols") && tableConfig.getPreferencesKey() != null) {
        // get the list of columns and if they are visible or not
        colsChoice = new Choice("colchoice", trans);
        colsChoice.setTableDataModel(table.createChoiceTableDataModel());
        colsChoice.addListener(this);
        colsChoice.setCancelKey("cancel");
        colsChoice.setSubmitKey("save");
       
View Full Code Here


        preselectedNamesList = stringToList(preselectedNames);
    }

        if (namesList.size() > 0) {
          stringModel = new StringListTableDataModel(namesList, preselectedNamesList);       
          stringChoice = new Choice("stringChoice", trans);
          stringChoice.setSubmitKey("select");
          stringChoice.setCancelKey("cancel");
          stringChoice.setTableDataModel(stringModel);
          stringChoice.addListener(this);
          main.put("stringChoice", stringChoice);
View Full Code Here

    groupList = new ArrayList<BusinessGroup>()
    areaList = new ArrayList<BGArea>();
    main = new Panel("main");
       
    //init wizard step 1
    groupsOrAreaChoice = new Choice("groupsOrAreaChoice", getTranslator());
    groupsOrAreaChoice.setTableDataModel(getGroupOrAreaChoiceTableDataModel(context));
    groupsOrAreaChoice.addListener(this);
    groupsOrAreaChoice.setSubmitKey("next");
   
    //init wizard step 2   
View Full Code Here

    VelocityContainer tmp = createVelocityContainer("tab_bgAreas");
    this.allAreas = areaManager.findBGAreasOfBGContext(this.bgContext);
    this.selectedAreas = areaManager.findBGAreasOfBusinessGroup(this.currBusinessGroup);
    this.areaDataModel = new AreasToGroupDataModel(this.allAreas, this.selectedAreas);

    areasChoice = new Choice("areasChoice", getTranslator());
    areasChoice.setSubmitKey("submit");
    areasChoice.setCancelKey("cancel");
    areasChoice.setTableDataModel(this.areaDataModel);
    areasChoice.addListener(this);
    tmp.put("areasChoice", areasChoice);
View Full Code Here

  private VelocityContainer createTabRights() {
    VelocityContainer tmp = createVelocityContainer("tab_bgRights");
    this.selectedRights = rightManager.findBGRights(this.currBusinessGroup);
    this.rightDataModel = new RightsToGroupDataModel(bgRights, this.selectedRights);

    rightsChoice = new Choice("rightsChoice", getTranslator());
    rightsChoice.setSubmitKey("submit");
    rightsChoice.setCancelKey("cancel");
    rightsChoice.setTableDataModel(this.rightDataModel);
    rightsChoice.addListener(this);
    tmp.put("rightsChoice", rightsChoice);
View Full Code Here

    this.allGroups = contextManager.getGroupsOfBGContext(this.bgContext);
    this.inAreaGroups = areaManager.findBusinessGroupsOfArea(this.area);
    this.groupsDataModel = new GroupsToAreaDataModel(this.allGroups, this.inAreaGroups);

    groupsChoice = new Choice("groupsChoice", trans);
    groupsChoice.setSubmitKey("submit");
    groupsChoice.setCancelKey("cancel");
    groupsChoice.setTableDataModel(groupsDataModel);
    groupsChoice.addListener(this);
    groupsTabVC.put(groupsChoice);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.choice.Choice

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.