Package org.olat.core.gui.components

Examples of org.olat.core.gui.components.Component


        throw new AssertException(e.getMessage());
      }
      RepositoryEntry selectedEntry = RepositoryManager.getInstance().lookupRepositoryEntry(key);
      if (selectedEntry != null) {
        ToolController toolC = detailsController.setEntry(selectedEntry, ureq, jumpfromcourse);
        Component toolComp = (toolC == null ? null : toolC.getInitialComponent());
        columnsLayoutCtr.setCol2(toolComp);
        mainPanel.setContent(detailsController.getInitialComponent());
      }
    } else if (viewIdentifier.startsWith(CatalogEntry.class.getSimpleName())) {
      String catId = viewIdentifier.substring(viewIdentifier.indexOf(':') + 1);
View Full Code Here


      fccecontr.setAllowedFileSuffixes(ALLOWED_FILE_SUFFIXES_NO_IFRAME);
    }
    fccecontr.setShowHomeLink(!statefulMicroWeb.equals(KEY_TRUE_WITHOUT_HOMELINK));
   
    fcPanel = new Panel("filechoosecreateedit");
    Component fcContent = fccecontr.getInitialComponent();
    fcPanel.setContent(fcContent);
    myContent.put(fcPanel.getComponentName(), fcPanel);
   
    CourseGroupManager groupMgr = course.getCourseEnvironment().getCourseGroupManager();
    CourseEditorTreeModel editorModel = course.getEditorTreeModel();
View Full Code Here

    //brasato:: review why such a type check was necessary
    if (handler instanceof CourseHandler) {
      infopanelVC
      .put("CourseInfoForm", new DisplayCourseInfoForm("CourseInfoForm", getTranslator(), CourseFactory.loadCourse(repositoryEntry.getOlatResource())));
    }
    Component comp = handler.getDetailsComponent(repositoryEntry.getOlatResource(), ureq);
    if (comp != null) { // push handler specific details view
      infopanelVC.contextPut("hasHandlerDetails", Boolean.valueOf("true"));
      infopanelVC.put("handlerDetails", comp);
    } else {
      infopanelVC.contextRemove("hasHandlerDetails");
View Full Code Here

   */
  private void doEditSettings(UserRequest ureq, Controller contentController) {
    if (!isAuthor) throw new OLATSecurityException("Trying to edit properties , but user is not author: user = " + ureq.getIdentity());
    contentController.addControllerListener(this);
   
    Component component = contentController.getInitialComponent();
    if(component!=null) {
      removeAsListenerAndDispose(settingsCloseableModalController);
      settingsCloseableModalController = new CloseableModalController(getWindowControl(), translate("close"),
        contentController.getInitialComponent());
      listenTo(settingsCloseableModalController);
View Full Code Here

    // displayed on the first page
    String learningObj = coCourseNode.getLearningObjectives();
    Panel panel = new Panel("panel");
    myContent.put("learningObjectives", panel);
    if (learningObj != null) {
      Component learningObjectives = ObjectivesHelper.createLearningObjectivesComponent(learningObj, ureq);
      panel.setContent(learningObjectives);
    }

    boolean valid = false; // true if at least one email adress
    Stack<ContactList> contactLists = new Stack<ContactList>();
View Full Code Here

    }

    // Adding learning objectives
    String learningObj = stCourseNode.getLearningObjectives();
    if (learningObj != null) {
      Component learningObjectives = ObjectivesHelper.createLearningObjectivesComponent(learningObj, ureq);
      myContent.put("learningObjectives", learningObjectives);
      myContent.contextPut("hasObjectives", learningObj); // dummy value, just
                                                          // an exists operator
    }
View Full Code Here

    }
   
    // Adding learning objectives
    String learningObj = denCourseNode.getLearningObjectives();
    if (learningObj != null) {
      Component learningObjectives = ObjectivesHelper.createLearningObjectivesComponent(learningObj, ureq);
      runVC.put("learningObjectives", learningObjectives);
      runVC.contextPut("hasObjectives", learningObj);       
    }
   
    runVC.put("datesTable", runDENTable.getInitialComponent());
View Full Code Here

   * @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)
   */
  public void event(UserRequest ureq, Component source, Event event) {
    if (source == tabbedPane) { // those must be links
      TabbedPaneChangedEvent tbcEvent = (TabbedPaneChangedEvent)event;
      Component newComponent = tbcEvent.getNewComponent();
      if (newComponent == cachePanel) {
        if (cacheController != null) {
          cacheController.dispose();
        }
        cacheController = new AllCachesController(ureq, getWindowControl());
View Full Code Here

  public void event(UserRequest ureq, Component source, Event event) {
    if (source == olatMenuTree) {
      if (event.getCommand().equals(MenuTree.COMMAND_TREENODE_CLICKED)) {
        TreeNode selTreeNode = olatMenuTree.getSelectedNode();
        Object userObject = selTreeNode.getUserObject();
        Component resComp = initComponentFromMenuCommand(userObject, ureq);
        content.setContent(resComp);
      } else { // the action was not allowed anymore
        content.setContent(null); // display an empty field (empty panel)
      }
    } else {
View Full Code Here

  public void activate(UserRequest ureq, String viewIdentifier) {
    if(viewIdentifier.startsWith("notifications")) {
      GenericTreeModel tm = (GenericTreeModel)olatMenuTree.getTreeModel();
      TreeNode node = tm.findNodeByUserObject("created.newUsersNotification");
      olatMenuTree.setSelectedNode(node);
      Component resComp = initComponentFromMenuCommand("created.newUsersNotification", ureq);
      content.setContent(resComp);
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.Component

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.