Package org.olat.core.gui.components.panel

Examples of org.olat.core.gui.components.panel.Panel


    folderComponent.addListener(this);
    cmdUpload = new CmdUpload(ureq, getWindowControl());
    cmdUpload.execute(folderComponent, ureq, getWindowControl(), getTranslator(), true);   
    cmdUpload.hideFieldset();
    listenTo(cmdUpload);
    Panel mainPanel = new Panel("upl");
    mainPanel.pushContent(cmdUpload.getInitialComponent());
    fileChooser.put(mainPanel.getComponentName(), mainPanel);
    fileChooserActive = false;
    updateVelocityVariables(chosenFile);
    putInitialPanel(myContent);
 
View Full Code Here


      private Panel empty;
      private LayoutMain3ColsController columnLayoutCtr;

      @Override
      public void init(UserRequest ureq) {
        empty = new Panel("empty");      Translator translator = Util.createPackageTranslator(this.getClass(), ureq.getLocale());
        contentCtr = MessageUIFactory.createInfoMessage(ureq, getWindowControl(), translator.translate("status.currently.locked.title"), translator.translate("status.currently.locked"));
        listenTo(contentCtr); // auto dispose later
        Component resComp = contentCtr.getInitialComponent();

        columnLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), empty, empty, resComp, /*do not save no prefs*/null);
 
View Full Code Here

    msgs = fm.getMessagesByForum(forum);

    collator = Collator.getInstance(ureq.getLocale());
    collator.setStrength(Collator.PRIMARY);

    forumPanel = new Panel("forumPanel");
    forumPanel.addListener(this);

    //create page
    vcListTitles = createVelocityContainer("list_titles");
   
View Full Code Here

    if(ureq.getUserSession().getEntry("error.change.email.time") != null) {
      wControl.setError(ureq.getUserSession().getEntry("error.change.email.time").toString());
      ureq.getUserSession().removeEntryFromNonClearedStore("error.change.email.time");
    }
   
    dmzPanel = new Panel("content");
    content = initLoginContent(ureq, null);
    dmzPanel.pushContent(content);

    // DMZ navigation
    olatMenuTree = new MenuTree("olatMenuTree");       
View Full Code Here

    List<? extends Dated> items = feed.getFilteredItems(callback, ureq.getIdentity());
    naviCtr = new YearNavigationController(ureq, wControl, getTranslator(), items);
    listenTo(naviCtr);
    vcRightColumn.put("navi", naviCtr.getInitialComponent());

    mainPanel = new Panel("mainPanel");
    mainPanel.setContent(vcItems);
    this.putInitialPanel(mainPanel);
  }
View Full Code Here

      // fallback to default theme when file does not exist in configured theme
      newMessageSoundURL = newMessageSoundURL.replace("/themes/" + guiTheme.getIdentifyer(), "/themes/default");
    }
    newMsgIcon.contextPut("newMessageSoundURL", newMessageSoundURL);

    notifieNewMsgPanel = new Panel("newMsgPanel");
    notifieNewMsgPanel.setContent(newMsgIcon);
       
    statusChanger = LinkFactory.createCustomLink("statusChanger", "cmd.status", "", Link.NONTRANSLATED, statusChangerLink, this);
    statusChanger.setCustomEnabledLinkCSS("b_small_icon o_instantmessaging_"+clientManager.getInstantMessagingClient(username).getDefaultRosterStatus()+"_icon");
    statusChanger.registerForMousePositionEvent(true);
    statusChanger.setTooltip(getTranslator().translate("im.status.change.long"), false);
    statusChangerPanel = new Panel("statusChangerPanel");
    statusChangerPanel.setContent(statusChanger);
   
    statusPanel = new Panel("statusPanel");
   
    //set defaults
    buddiesSummaryPanel = new Panel("buddiesSummaryPanel");
    buddiesSummaryPanel.setContent(buddiesSummary);
   
    rosterPanel = new Panel("rosterPanel");
   
    onlineOfflineCount = LinkFactory.createCustomLink("onlineOfflineCount", "cmd.roster", "", Link.NONTRANSLATED, buddiesSummary, this);
    onlineOfflineCount.setCustomDisplayText("(0/0)");
    onlineOfflineCount.setTooltip(getTranslator().translate("im.roster.intro"), false);
    onlineOfflineCount.registerForMousePositionEvent(true);
   
   
    /**
     * status changer links
     */
    available = LinkFactory.createLink("presence.available", statusChangerContent, this);
    available.setCustomEnabledLinkCSS("o_instantmessaging_available_icon");
   
    chat = LinkFactory.createLink("presence.chat", statusChangerContent, this);
    chat.setCustomEnabledLinkCSS("o_instantmessaging_chat_icon");
   
    away = LinkFactory.createLink("presence.away", statusChangerContent, this);
    away.setCustomEnabledLinkCSS("o_instantmessaging_away_icon");
   
    xa = LinkFactory.createLink("presence.xa", statusChangerContent, this);
    xa.setCustomEnabledLinkCSS("o_instantmessaging_xa_icon");
   
    dnd = LinkFactory.createLink("presence.dnd", statusChangerContent, this);
    dnd.setCustomEnabledLinkCSS("o_instantmessaging_dnd_icon");
   
    unavailable = LinkFactory.createLink("presence.unavailable", statusChangerContent, this);
    unavailable.setCustomEnabledLinkCSS("o_instantmessaging_unavailable_icon");
   
    statusChangerContent.contextPut("contextpath", WebappHelper.getServletContextPath());
    statusChangerContent.contextPut("lang", ureq.getLocale().toString());
   
   
    /**
     * buddies list links
     */
   
    toggleOffline = LinkFactory.createCustomLink("toggleOffline", "cmd.offline", "", Link.NONTRANSLATED, buddiesList, this);
    toggleOffline.setCustomDisplayText(getTranslator().translate("im.show.offline.buddies"));
    toggleOffline.setCustomEnabledLinkCSS("o_instantmessaging_showofflineswitch");
   
    toggleGroups = LinkFactory.createCustomLink("toggleGroups", "cmd.groups", "", Link.NONTRANSLATED, buddiesList, this);
    toggleGroups.setCustomDisplayText(getTranslator().translate("im.show.groups"));
    toggleGroups.setCustomEnabledLinkCSS("o_instantmessaging_showgroupswitch");
   
    showOtherUsers = LinkFactory.createLink("im.others.connected", buddiesList, this);
    showOtherUsers.setCustomEnabledLinkCSS("o_instantmessaging_footerlinks");
    showOtherUsers.setAjaxEnabled(false); //opens new window -> disable background post!
    showOtherUsers.setTarget("_blank");
   
    buddiesList.contextPut("othersConnected", new ConncectedUsersHelper());
    buddiesList.contextPut("contextpath", WebappHelper.getServletContextPath());
    buddiesList.contextPut("lang", ureq.getLocale().toString());
    buddiesList.contextPut("othersConnected", new ConncectedUsersHelper());
   
    buddiesListContent.contextPut("imclient", clientHelper);
    buddiesListContentPanel = new Panel("buddiesListContent");
    buddiesListContentPanel.setContent(buddiesListContent);
    buddiesList.put("buddiesListContent", buddiesListContentPanel);
   
    main.put("newMsgPanel", notifieNewMsgPanel);
    main.put("statusChangerPanel", statusChangerPanel);
View Full Code Here

    }
   
    columList = new ArrayList<String>();
    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);
View Full Code Here

    String cmd = (String) tm.getRootNode().getUserObject();
    contentCtr = createController(cmd, ureq);
    listenTo(contentCtr); // auto dispose later
    Component resComp = contentCtr.getInitialComponent();
   
    content = new Panel("content");
    content.setContent(resComp);

    columnsLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), olatMenuTree,null, content, "sysadminmain");
    listenTo(columnsLayoutCtr); // auto dispose later
    putInitialPanel(columnsLayoutCtr.getInitialComponent());
View Full Code Here

  public CPEditController(CPCourseNode cpNode, UserRequest ureq, WindowControl wControl, ICourse course, UserCourseEnvironment euce) {
    super(ureq, wControl);
    this.cpNode = cpNode;
    this.config = cpNode.getModuleConfiguration();   

    main = new Panel("cpmain");   
   
    cpConfigurationVc = this.createVelocityContainer("edit");
    chooseCPButton = LinkFactory.createButtonSmall(NLS_COMMAND_CREATECP, cpConfigurationVc, this);
    changeCPButton = LinkFactory.createButtonSmall(NLS_COMMAND_CHANGECP, cpConfigurationVc, this);
   
View Full Code Here

    super(ureq, wControl);
    this.courseNode = tuCourseNode;
    this.config = config;
    this.courseEnv = cenv;
   
    main = new Panel("turunmain");
    if (config.getBooleanSafe(TUConfigForm.CONFIG_EXTERN, false)) {
      doStartPage(ureq);
    } else {
      doLaunch(ureq);
    }   
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.panel.Panel

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.