Package org.olat.core.gui.components.velocity

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()


    VelocityContainer membersVc = createVelocityContainer("ownersandmembers");
    // 1. show owners if configured with Owners
    if (flags.isEnabled(BGConfigFlags.GROUP_OWNERS) && bgpm.showOwners()) {
      GroupController gownersC = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup.getOwnerGroup());
      membersVc.put("owners", gownersC.getInitialComponent());
      membersVc.contextPut("showOwnerGroups", Boolean.TRUE);
    } else {
      membersVc.contextPut("showOwnerGroups", Boolean.FALSE);
    }
    // 2. show participants if configured with Participants
    if (bgpm.showPartips()) {
View Full Code Here


    if (flags.isEnabled(BGConfigFlags.GROUP_OWNERS) && bgpm.showOwners()) {
      GroupController gownersC = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup.getOwnerGroup());
      membersVc.put("owners", gownersC.getInitialComponent());
      membersVc.contextPut("showOwnerGroups", Boolean.TRUE);
    } else {
      membersVc.contextPut("showOwnerGroups", Boolean.FALSE);
    }
    // 2. show participants if configured with Participants
    if (bgpm.showPartips()) {
      GroupController gparticipantsC = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup
          .getPartipiciantGroup());
View Full Code Here

    // 2. show participants if configured with Participants
    if (bgpm.showPartips()) {
      GroupController gparticipantsC = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup
          .getPartipiciantGroup());
      membersVc.put("participants", gparticipantsC.getInitialComponent());
      membersVc.contextPut("showPartipsGroups", Boolean.TRUE);
    } else {
      membersVc.contextPut("showPartipsGroups", Boolean.FALSE);
    }
    // 3. show waiting-list if configured
    membersVc.contextPut("hasWaitingList", new Boolean(businessGroup.getWaitingListEnabled()) );
View Full Code Here

      GroupController gparticipantsC = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup
          .getPartipiciantGroup());
      membersVc.put("participants", gparticipantsC.getInitialComponent());
      membersVc.contextPut("showPartipsGroups", Boolean.TRUE);
    } else {
      membersVc.contextPut("showPartipsGroups", Boolean.FALSE);
    }
    // 3. show waiting-list if configured
    membersVc.contextPut("hasWaitingList", new Boolean(businessGroup.getWaitingListEnabled()) );
    if (bgpm.showWaitingList()) {
      GroupController waitingListController = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup.getWaitingGroup());
View Full Code Here

      membersVc.contextPut("showPartipsGroups", Boolean.TRUE);
    } else {
      membersVc.contextPut("showPartipsGroups", Boolean.FALSE);
    }
    // 3. show waiting-list if configured
    membersVc.contextPut("hasWaitingList", new Boolean(businessGroup.getWaitingListEnabled()) );
    if (bgpm.showWaitingList()) {
      GroupController waitingListController = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup.getWaitingGroup());
      membersVc.put("waitingList", waitingListController.getInitialComponent());
      membersVc.contextPut("showWaitingList", Boolean.TRUE);
    } else {
View Full Code Here

    // 3. show waiting-list if configured
    membersVc.contextPut("hasWaitingList", new Boolean(businessGroup.getWaitingListEnabled()) );
    if (bgpm.showWaitingList()) {
      GroupController waitingListController = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup.getWaitingGroup());
      membersVc.put("waitingList", waitingListController.getInitialComponent());
      membersVc.contextPut("showWaitingList", Boolean.TRUE);
    } else {
      membersVc.contextPut("showWaitingList", Boolean.FALSE);
    }
    mainPanel.setContent(membersVc);
  }
View Full Code Here

    if (bgpm.showWaitingList()) {
      GroupController waitingListController = new GroupController(ureq, getWindowControl(), false, true, false, businessGroup.getWaitingGroup());
      membersVc.put("waitingList", waitingListController.getInitialComponent());
      membersVc.contextPut("showWaitingList", Boolean.TRUE);
    } else {
      membersVc.contextPut("showWaitingList", Boolean.FALSE);
    }
    mainPanel.setContent(membersVc);
  }

  /**
 
View Full Code Here

  }
 
  private void displayChecklist(UserRequest ureq, WindowControl wControl) {
    // add title
    VelocityContainer displayChecklistVC = this.createVelocityContainer("display");
    displayChecklistVC.contextPut("checklistTitle", this.checklist.getTitle());
    // add edit and manage button
    if((canEdit | canManage) && course != null) {
      displayChecklistVC.contextPut("showAuthorBtns", Boolean.TRUE);
      authorOptions = new ChecklistAuthorOptionsForm(ureq, getWindowControl(), canEdit, canManage);
      authorOptions.addControllerListener(this);
View Full Code Here

    // add title
    VelocityContainer displayChecklistVC = this.createVelocityContainer("display");
    displayChecklistVC.contextPut("checklistTitle", this.checklist.getTitle());
    // add edit and manage button
    if((canEdit | canManage) && course != null) {
      displayChecklistVC.contextPut("showAuthorBtns", Boolean.TRUE);
      authorOptions = new ChecklistAuthorOptionsForm(ureq, getWindowControl(), canEdit, canManage);
      authorOptions.addControllerListener(this);
      displayChecklistVC.put("authorOptions", authorOptions.getInitialComponent());
    } else {
      displayChecklistVC.contextPut("showAuthorBtns", Boolean.FALSE);
View Full Code Here

      displayChecklistVC.contextPut("showAuthorBtns", Boolean.TRUE);
      authorOptions = new ChecklistAuthorOptionsForm(ureq, getWindowControl(), canEdit, canManage);
      authorOptions.addControllerListener(this);
      displayChecklistVC.put("authorOptions", authorOptions.getInitialComponent());
    } else {
      displayChecklistVC.contextPut("showAuthorBtns", Boolean.FALSE);
    }
   
    panel = new Panel("runTable");
   
    initTable(ureq);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.