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

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


    // abstract class after this controller has been disposed
   
    if (initialComponent instanceof Panel) {
      wrapperPanel = (Panel) initialComponent;
    } else {
      wrapperPanel = new Panel("autowrapper of controller " + this.getClass().getName());
      wrapperPanel.setContent(initialComponent);
    }
    this.initialComponent = wrapperPanel;
  }
View Full Code Here


              boolean wasDomR = toRender.isDomReplaceable();
              if (!wasDomR) {
                throw new AssertException("cannot replace as dom fragment:"+toRender.getComponentName()+" ("+toRender.getClass().getName()+"),"+toRender.getExtendedDebugInfo());
              }
             
              Panel wrapper = new Panel("renderpanel");
              wrapper.setDomReplaceable(false); // to omit <div> around the render helper panel
              RenderResult renderResult = null;
              StringOutput jsol = new StringOutput();
              StringOutput hdr = new StringOutput();
              String result = null;
              try {
                toRender.setDomReplaceable(false);
                wrapper.setContent(toRender);
                String newTimestamp = String.valueOf(timestamp);
                URLBuilder ubu = new URLBuilder(uriPrefix,getInstanceId(), newTimestamp,wbackofficeImpl);

                renderResult = new RenderResult();
View Full Code Here

    super(ureq, wControl);
    myContent = createVelocityContainer("index");
    npeLink = LinkFactory.createLink("command.npe", myContent, this);
    assertLink = LinkFactory.createLink("command.assert", myContent, this);
    renderLink = LinkFactory.createLink("command.render", myContent, this);
    mainPanel = new Panel("homesitepanel");
    mainPanel.setContent(myContent);
   
    //add source view control
      Controller sourceview = new SourceViewController(ureq, wControl, this.getClass(), myContent);
      myContent.put("sourceview", sourceview.getInitialComponent());
View Full Code Here

    System.out.println(ores.getResourceableTypeName());
    if (ores.getResourceableTypeName().equals("BusinessGroup")) {
      lazyCreateChat = false;
    }
   
    Panel p = new Panel("groupchatholder");
    InstantMessagingGroupChatController groupchat = new InstantMessagingGroupChatController(ureq, windowControl, ores, roomName, p, compact, anonymousInChatroom, lazyCreateChat);
    container.put(ores.getResourceableId().toString(), p);
    chats.put(ores, groupchat);
   
  }
View Full Code Here

    if (ores == null) throw new AssertException("olat resourcable can not be null");
    this.ores = ores;
    this.locale = ureq.getLocale();
    this.anonymousInChatroom = anonymousInChatroom;
    this.lazyCreation = lazyCreation;
    main = new Panel("main");
    openGroupChatPanel = LinkFactory.createCustomLink("participantsCount", "cmd.open.client", "", Link.NONTRANSLATED, summaryCompactVC, this);
   
    if (lazyCreation) { //show only link to join the groupChat
      openGroupChatPanel.setCustomDisplayText(getTranslator().translate("click.to.join"));
      openGroupChatPanel.setCustomEnabledLinkCSS("b_toolbox_link");
View Full Code Here

  private boolean init(UserRequest ureq) {
    NICKNAME_ANONYMOUS = NICKNAME_PREFIX+(int)Math.rint(Math.random()*getIdentity().getKey());
    connection = InstantMessagingModule.getAdapter().getClientManager().getInstantMessagingClient(getIdentity().getName()).getConnection();
   
    roomJID = InstantMessagingModule.getAdapter().createChatRoomJID(ores);
    groupChatMsgPanel = new Panel("groupchat");
    roster = new Panel("roster");
    roster.setContent(rosterVC);
   
    messageHistory = new StringBuilder();
    groupchatVC.put("groupChatMessages", groupChatMsgPanel);
   
View Full Code Here

  @Override
  public void createGroupChat(UserRequest ureq, WindowControl windowControl, OLATResourceable ores, String roomName, boolean compact,
      boolean anonymousInChatroom) {
   
    Panel p = new Panel("groupchatholder");
    InstantMessagingGroupChatController groupchat = new InstantMessagingGroupChatController(ureq, windowControl, ores, roomName, p, compact, anonymousInChatroom, lazyCreateChat);
    container.put(ores.getResourceableId().toString(), p);
    chats.put(ores, groupchat);
   
  }
View Full Code Here

    InstantMessagingModule.getAdapter().getClientManager().registerEventListener(username, this, false);
    sendMessageForm = new SendMessageForm(ureq, getWindowControl());
    sendMessageForm.addControllerListener(this);
    sendMessageForm.resetTextField();
   
    chatMsgFieldPanel = new Panel("chatMsgField");
    chatMsgFieldPanel.setContent(chatMsgFieldContent);
   
    String chatPartnerUsername = InstantMessagingModule.getAdapter().getUsernameFromJid(chatPartnerJid);
    if (username.equals(chatPartnerUsername)) {
      chatMsgFieldContent.contextPut("chatMessages", getTranslator().translate("chat.with.yourself"));
View Full Code Here

    chooseScormRunMode = new ChooseScormRunModeForm("chooseScormRunMode", translator, !isAssessable);
    chooseScormRunMode.addListener(this);
    startPage.put("chooseScormRunMode", chooseScormRunMode);     
   
    main = new Panel("scormrunmain");
    // scorm always has a start page
    doStartPage(ureq);
    setInitialComponent(main);
  }
View Full Code Here

    super(ureq, wControl);
    //o_clusterOk by guido: save to hold reference to course inside editor
    this.course = course;
    this.scormNode = scormNode;
    this.config = scormNode.getModuleConfiguration();
    main = new Panel("cpmain");       
    cpConfigurationVc = this.createVelocityContainer("edit");
   
    chooseCPButton = LinkFactory.createButtonSmall("command.importcp", cpConfigurationVc, this);
    changeCPButton = LinkFactory.createButtonSmall("command.changecp", cpConfigurationVc, this);
   
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.