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

Examples of org.olat.core.gui.components.velocity.VelocityContainer


  /**
   * Wizard Step 1
   * @param ureq
   */
  private void buildStep1(UserRequest ureq) {
    step1Vc = new VelocityContainer("informations", VELOCITY_ROOT + "/step1_wizard_add_owners.html", translator, this);
    searchCtr = new RepositorySearchMultiSelectController(null, ureq, getWindowControl(), false, false, null, isAuthor & !isAdmin ? ureq.getIdentity().getName() : null);
    searchCtr.addControllerListener(this);
   
    // links
    if(isAuthor) {
View Full Code Here


  /**
   *
   * @param ureq
   */
  private void buildStep2(UserRequest ureq) {
    step2Vc = new VelocityContainer("informations", VELOCITY_ROOT + "/step2_wizard_add_owners.html", translator, this);
    step2Vc.contextPut("subtitle", translator.translate("wizard.step2." + CMD_SEARCH_OWNERS));
   
    userSearchCtr = new UserSearchController(ureq, getWindowControl(), false, true, false, UserSearchController.ACTION_KEY_CHOOSE_FINISH);
    userSearchCtr.addControllerListener(this);
   
View Full Code Here

    this.newEntry = null;
   
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());
    securityManager = ManagerFactory.getManager();
   
    mainContainer = new VelocityContainer("vcCopy", VELOCITY_ROOT + "/copy.html", translator, this);
    cancelButton = LinkFactory.createButton("cmd.cancel", mainContainer, this);
    forwardButton = LinkFactory.createButton("cmd.forward", mainContainer, this);
    forwardButton.setEnabled(false);
    LinkFactory.markDownloadLink(forwardButton); // TODO:cg: for copy of large repositoryEntries => Remove when new long-running task is implemented
    forwardButton.setTextReasonForDisabling(translator.translate("disabledforwardreason"));
View Full Code Here

  private Link closeLink;
  private BGManagementController managementController;

  protected DisposedBGAManagementController(UserRequest ureq, WindowControl control, BGManagementController managementController) {
    super(ureq, control);
    VelocityContainer initialContent = createVelocityContainer("disposedbgmanagement");
    closeLink = LinkFactory.createButton("bgmanagement.disposed.command.close", initialContent, this);
    putInitialPanel(initialContent);
    this.managementController = managementController;
  }
View Full Code Here

 
  private void init(String selectButtonLabel, UserRequest ureq, boolean withCancel, boolean enableDirectLaunch, String limitType, String limitUser) {
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());
    Roles roles = ureq.getUserSession().getRoles();
   
    vc = new VelocityContainer("reposearch", VELOCITY_ROOT + "/search.html", translator, this);
   
    Manager secMgr = ManagerFactory.getManager();
    SecurityGroup usermanagerGroup = secMgr.findSecurityGroupByName(Constants.GROUP_USERMANAGERS);
    boolean isUserManager = secMgr.isIdentityInSecurityGroup(ureq.getIdentity(), usermanagerGroup);
View Full Code Here

   * @param identity identity to be edited
   */
  public SystemRolesAndRightsController(WindowControl wControl, UserRequest ureq, Identity identity){
    super(wControl);   
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());
    main = new VelocityContainer("sysRolesVC", VELOCITY_ROOT + "/usysRoles.html", translator, null);
    this.identity = identity;
    setInitialComponent(main);
    sysRightsForm = createForm(ureq, identity);
    main.put("sysRightsForm", sysRightsForm);   
  }
View Full Code Here

      hasReturnbox = ne.isCapabilityAccessible("returnbox");
    }
    if (hasScoring) hasScoring = ne.isCapabilityAccessible("scoring");
    if (hasSolution) hasSolution = ne.isCapabilityAccessible("solution");
   
    content = new VelocityContainer("content", VELOCITY_ROOT + "/run.html", translator, this);
    if (hasTask) {
      taskController = new TaskController(ureq, wControl, config, ne.getCourseNode(), userCourseEnv.getCourseEnvironment());
      content.put("taskController", taskController.getInitialComponent());
      content.contextPut("hasTask", Boolean.TRUE);
    }
View Full Code Here

  private void init(String selectButtonLabel, UserRequest ureq, boolean withCancel, boolean enableDirectLaunch, String[] limitTypes) {
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());
    Roles roles = ureq.getUserSession().getRoles();
   
    vc = new VelocityContainer("reposearch", VELOCITY_ROOT + "/search.html", translator, this);

    searchForm = new SearchForm("searchform", translator, withCancel, roles.isOLATAdmin(), limitTypes);
    searchForm.addListener(this);
    searchForm.setVisible(false);
    vc.put("searchform",searchForm);
View Full Code Here

   */
  public SolutionController(UserRequest ureq, WindowControl wControl, CourseNode node, UserCourseEnvironment userCourseEnv, boolean previewMode) {
    super(wControl);
   
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());
    myContent = new VelocityContainer("taskVC", VELOCITY_ROOT + "/solutionRun.html", translator, this);
   
    // returnbox display
    OlatRootFolderImpl rootFolder = new OlatRootFolderImpl(
      SolutionController.getSolutionPathRelToFolderRoot(userCourseEnv.getCourseEnvironment(), node), null);
    OlatNamedContainerImpl namedContainer = new OlatNamedContainerImpl("solutions", rootFolder);
View Full Code Here

  /**
   * initialize the main velocity wrapper container
   */
  private void initEditVC() {
    editVC = new VelocityContainer("edit", VELOCITY_ROOT + "/edit.html", trans, this);
    editVC.put("tabbedpane", tabbedPane);
    editVC.contextPut("title", trans.translate("area.edit.title", new String[] { StringEscapeUtils.escapeHtml(this.area.getName()).toString() }));
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.velocity.VelocityContainer

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.