Package org.olat.core.gui.components.tabbedpane

Examples of org.olat.core.gui.components.tabbedpane.TabbedPane


      CustomLinkTreeModel customLinkTreeModel) {
    super(ureq, wControl);
   
    tabbedPaneViewVC = createVelocityContainer("linkchooser");

    linkChooserTabbedPane = new TabbedPane("linkChooserTabbedPane", ureq.getLocale());
    tabbedPaneViewVC.put("linkChooserTabbedPane", linkChooserTabbedPane);

    fileLinkChooserController = new FileLinkChooserController(ureq, wControl, rootDir, uploadRelPath, suffixes, fileName);   
    listenTo(fileLinkChooserController);
    linkChooserTabbedPane.addTab(translate("linkchooser.tabbedpane.label.filechooser"), fileLinkChooserController.getInitialComponent());
View Full Code Here


   * @see org.olat.core.gui.control.generic.dtabs.Activateable#activate(org.olat.core.gui.UserRequest,
   *      java.lang.String)
   */
  public void activate(UserRequest ureq, String viewIdentifier) {
    // viewIdentifier contains key of tab to be activated
    TabbedPane myTabbedPane = getTabbedPane();
    Translator translator = getTranslator();
    String[] paneKeys = getPaneKeys();

    if (myTabbedPane == null) { throw new OLATRuntimeException("tabs not yet added!", new IllegalStateException()); }
    boolean foundKey = false;
    if (paneKeys.length > 0) {
      int i = 0;
      while (!foundKey && i<paneKeys.length) {
        foundKey = viewIdentifier.equals(paneKeys[i]);
        i++;
      }
    }
    if (foundKey) {
      // it is a tab which we know
      myTabbedPane.setSelectedPane(translator.translate(viewIdentifier));
    } else {
      // it may be a tab of our children
      ActivateableTabbableDefaultController[] children = getChildren();
      for (int j = 0; j < children.length; j++) {
        children[j].activate(ureq, viewIdentifier);
View Full Code Here

      glossaryItem = new GlossaryItem("", "");
      glossaryItemList.add(glossaryItem);
    }
    editorVC.contextPut("addNewItem", addNewItem);

    glossEditTabP = new TabbedPane("tp", ureq.getLocale());
   
    itmCtrl = new GlossaryTermAndSynonymController(ureq, control, glossaryItem, glossaryFolder);
    listenTo(itmCtrl);
    glossEditTabP.addTab(translate("term.and.synonyms.title"), itmCtrl.getInitialComponent());
   
View Full Code Here

          ureq.getIdentity(),
          Constants.PERMISSION_ACCESS,
          OresHelper.lookupType(this.getClass())))
        throw new OLATSecurityException("Insufficient permissions to access PersonalSettingsController");

      userConfig = new TabbedPane("userConfig", ureq.getLocale());

      hpec = new ProfileAndHomePageEditController(ureq, getWindowControl(), (Identity)DBFactory.getInstance().loadObject(ureq.getIdentity()), false);
      userConfig.addTab(translator.translate("tab.profile"), hpec.getInitialComponent());
     
      ucsc = new ChangePrefsController(ureq, getWindowControl(), (Identity)DBFactory.getInstance().loadObject(ureq.getIdentity()));
View Full Code Here

  protected NotificationSubscriptionAndNewsController(Identity subscriberIdentity, UserRequest ureq, WindowControl wControl,
      Date newsSinceDate) {
    super(ureq, wControl, Util.createPackageTranslator(GuestHomeSite.class, ureq.getLocale()));
    this.subscriberIdentity = subscriberIdentity;
    tabbedPane = new TabbedPane("tabbedPane", getLocale());
    tabbedPane.addListener(this);
    // Add news view
    newsCtr = NotificationUIFactory.createNewsListingController(subscriberIdentity, ureq, getWindowControl(), newsSinceDate);
    listenTo(newsCtr);
    tabbedPane.addTab(translate("overview.tab.news"), newsCtr.getInitialComponent());
View Full Code Here

   *      org.olat.core.gui.translator.Translator, QTIEditorMainController)
   */
  public TabbedPane createEditTabbedPane(UserRequest ureq, WindowControl wControl, Translator trnsltr,
      QTIEditorMainController editorMainController) {
    if (myTabbedPane == null) {
      myTabbedPane = new TabbedPane("tabbedPane", ureq.getLocale());
      TabbableController tabbCntrllr = new AssessmentController(assmnt, qtiPackage, ureq, wControl, editorMainController
          .isRestrictedEdit());
      tabbCntrllr.addTabs(myTabbedPane);
      tabbCntrllr.addControllerListener(editorMainController);
    }
View Full Code Here

   */
  public TabbedPane createEditTabbedPane(UserRequest ureq, WindowControl wControl, Translator trnsltr,
      QTIEditorMainController editorMainController) {
    if (myTabbedPane == null) {
      try {
        myTabbedPane = new TabbedPane("tabbedPane", ureq.getLocale());
        TabbableController tabbCntrllr = new ItemNodeTabbedFormController(item, qtiPackage, ureq, wControl, trnsltr, editorMainController
            .isRestrictedEdit());
        tabbCntrllr.addTabs(myTabbedPane);
        tabbCntrllr.addControllerListener(editorMainController);
      } catch (Exception e) {
View Full Code Here

    if (initialPageName != null && wiki.pageExists(WikiManager.generatePageId(initialPageName))) page = wiki.getPage(initialPageName, true);
    else page = wiki.getPage(WikiPage.WIKI_INDEX_PAGE);
    this.pageId = page.getPageId();
   
    WikiPage menuPage = getWiki().getPage(WikiPage.WIKI_MENU_PAGE);
    tabs = new TabbedPane("userTabP", ureq.getLocale());
    tabs.addListener(this);
    // init the tabbed pane container
    content = createVelocityContainer("index");

    // add a histroy ctr that displays visited pages
View Full Code Here

  public GuiDemoPanesController(UserRequest ureq, WindowControl wControl) {
    super(ureq,wControl);
   
    vcMain = createVelocityContainer("guidemo-panes");
   
    tabbedPane = new TabbedPane("pane", ureq.getLocale());
    tabbedPane.addListener(this);
   
    pane1 = createVelocityContainer("guidemo-pane1");
    pane2 = createVelocityContainer("guidemo-pane2");
    pane3 = createVelocityContainer("guidemo-pane3");
View Full Code Here

      selTree.setTreeModel(cetm);
      selTree.setActionCommand("processpublish");
      selTree.setFormButtonKey("publizieren");
      selTree.addListener(this);

      tabbedNodeConfig = new TabbedPane("tabbedNodeConfig", ureq.getLocale());
      main.put(tabbedNodeConfig.getComponentName(), tabbedNodeConfig);

      toolC = ToolFactory.createToolController(getWindowControl());
      listenTo(toolC);
      toolC.addHeader(translate(NLS_HEADER_TOOLS));
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.tabbedpane.TabbedPane

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.