Package org.olat.core.gui.control.floatingresizabledialog

Examples of org.olat.core.gui.control.floatingresizabledialog.FloatingResizableDialogController


   *      org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)
   */
  public void event(UserRequest ureq, Component source, Event event) {
    if (source == devToolLink) {
      removeAsListenerAndDispose(floatCtr);
      floatCtr = new FloatingResizableDialogController(ureq, getWindowControl(), myContent, "Brasato Development Tool", 1000, 200, 10, 60, true, true);
      listenTo(floatCtr);
      mainpanel.setContent(floatCtr.getInitialComponent());     
    } else if (source == web10Link) {
      // choose regular mode
      winMgrImpl.setShowDebugInfo(false);
View Full Code Here


        if (trayContentC != null) trayContentC.dispose();
      } else {
        if (cbe != latestCB) {
          latestCB = cbe;
          trayContentC = cbe.createTrayUI().createController(ureq, getWindowControl());
          frdC = new FloatingResizableDialogController(ureq, getWindowControl(), trayContentC.getInitialComponent(), "clipboard tray");
          frdC.addControllerListener(this);
          detail = frdC.getInitialComponent();
          expandedP.setContent(detail);
        }
      }
View Full Code Here

          y = indicateNewMessage.getOffsetY();
      }
      //only open floating window if not yet open
      if (!chatWindowOpen) {
        if (floatingResizablePanelCtr != null ) floatingResizablePanelCtr.dispose();
        floatingResizablePanelCtr = new FloatingResizableDialogController(ureq, getWindowControl(), groupchatVC,
              getTranslator().translate("course.groupchat")+" "+roomNameShort(roomName), 550, 300, x, y, roster, getTranslator().translate("groupchat.roster"), true, false, true, "chat_window");
        floatingResizablePanelCtr.addControllerListener(this);
        jsc.setRefreshIntervall(InstantMessagingModule.getCHAT_POLLTIME());
         
        if (chatWindowHolder != null) {
View Full Code Here

    chatContent.put("chatMsgFieldPanel", chatMsgFieldPanel);
   
    chatContent.put("sendMessageForm", sendMessageForm.getInitialComponent());
   
    String winId = "chat_panel_" + chatPartnerUsername;//contains only a-z and 0-9, it's legal
    chatPanelCtr = new FloatingResizableDialogController(ureq, getWindowControl(), chatContent, getTranslator().translate("im.chat.with")+": "+
        getFullUserName(chatPartnerUsername),
        450, 300, offsetX, offsetY, null, null, true, false, true, String.valueOf(this.hashCode()));
    listenTo(chatPanelCtr);
   
    refresh = LinkFactory.createCustomLink("refresh", "cmd.refresh", "", Link.NONTRANSLATED, chatContent, this);
View Full Code Here

  @Override
  public void event(UserRequest ureq, Component source, Event event) {
    if (source == open) {
      UserSearchController userSearch = new UserSearchController(ureq, getWindowControl(), true);
      dialog = new FloatingResizableDialogController(ureq, getWindowControl(), userSearch.getInitialComponent(), "Your title", 350, 350, 400, 200, null, "", true, false);
      dialog.addControllerListener(this);
      panelVc.put("panel", dialog.getInitialComponent());
      panel.setContent(panelVc);
    } else if (source == open2) {
      dialog = new FloatingResizableDialogController(ureq, getWindowControl(), localContent, "Your title", 350, 350, 400, 200, createVelocityContainer("localContent2"), "", true, false);
      dialog.addControllerListener(this);
      panelVc.put("panel", dialog.getInitialComponent());
      contentLink = LinkFactory.createLink("link4", localContent, this);
      panel.setContent(panelVc);
    } else if (source == contentLink) {
View Full Code Here

     
      if (source == statusChanger) {
        if(statusChangerPanelCtr != null) {
          removeAsListenerAndDispose(statusChangerPanelCtr);
        }
        statusChangerPanelCtr = new FloatingResizableDialogController(ureq, getWindowControl(), statusChangerContent,
            getTranslator().translate("im.status.change"), 210, 200, statusChanger.getOffsetX()-130, statusChanger.getOffsetY()+25, null, null, false, false, true, "im_status");
        listenTo(statusChangerPanelCtr);
        statusPanel.setContent(statusChangerPanelCtr.getInitialComponent());
        statusChanger.setDirty(false);
       
      } else if (source == onlineOfflineCount) {
        if (!clientHelper.isChatDisabled()) { //only open panel when chat is not disabled
          if(rosterPanelCtr != null) {
            removeAsListenerAndDispose(rosterPanelCtr);
          }
        rosterPanelCtr = new FloatingResizableDialogController(ureq, getWindowControl(), buddiesList,
              getTranslator().translate("im.buddies"), 300, 500, onlineOfflineCount.getOffsetX()-80, onlineOfflineCount.getOffsetY()+25, null, null, true, true, true, "im_roster");
        listenTo(rosterPanelCtr);
        rosterPanel.setContent(rosterPanelCtr.getInitialComponent());
        onlineOfflineCount.setDirty(false);
        }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.floatingresizabledialog.FloatingResizableDialogController

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.