Package org.olat.core.gui.components.htmlsite

Examples of org.olat.core.gui.components.htmlsite.NewInlineUriEvent


        // adapt path if needed and refire to listening controllers
        String opath = ((NewInlineUriEvent)event).getNewUri();
        setCurURI(opath);
        fireEvent(ureq, event);
       
        NewInlineUriEvent iue = (NewInlineUriEvent) event;
        String newUri = iue.getNewUri();
        ThreadLocalUserActivityLogger.log(CourseLoggingAction.NODE_SINGLEPAGE_GET_FILE, getClass(),
            CoreLoggingResourceable.wrapSpUri(newUri));
      }
      else if (event instanceof ExternalSiteEvent) {
        ExternalSiteEvent ese = (ExternalSiteEvent)event;
View Full Code Here


        setCurURI(g_initialUri);
        if (g_inIframe) {
          idc.setCurrentURI(g_curURI);
        } else
          cpc.setCurrentURI(g_curURI);
          fireEvent(ureq, new NewInlineUriEvent(g_initialUri));
       
     
    } else if (source == editLink) {
      if (event.getCommand().equals(COMMAND_EDIT)) {
        if (g_curURI == null || g_new_rootContainer.resolve(g_curURI) == null) {
View Full Code Here

        TreeEvent te = (TreeEvent) event;
        switchToPage(ureq, te);
      }
    } else if (source == cpComponent) {
      if (event instanceof NewInlineUriEvent) {
        NewInlineUriEvent nue = (NewInlineUriEvent) event;
        // adjust the tree selection to the current choice if found
        selectTreeNode(ureq, nue.getNewUri());
      }
    }
  }
View Full Code Here

 
    @Override
  protected void event(UserRequest ureq, Controller source, Event event) {
      if (source == cpContentCtr) { // a .html click within the contentpackage
        if (event instanceof NewInlineUriEvent) {
          NewInlineUriEvent nue = (NewInlineUriEvent) event;
          // adjust the tree selection to the current choice if found
          selectTreeNode(ureq, nue.getNewUri());
        } else if (event instanceof NewIframeUriEvent) {
          NewIframeUriEvent nue =  (NewIframeUriEvent) event;
          selectTreeNode(ureq, nue.getNewUri());
        }// else ignore (e.g. misplaced olatcmd event (inner olat link found in a
          // contentpackaging file)
      }
  }
View Full Code Here

    if (source == spCtr) {
      if (event instanceof OlatCmdEvent) {
        // refire to listening controllers
        fireEvent(ureq, event);
      } else if (event instanceof NewInlineUriEvent) {
        NewInlineUriEvent nue = (NewInlineUriEvent)event;
        tempstorage.put(KEY_CURRENT_URI, nue.getNewUri());
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.htmlsite.NewInlineUriEvent

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.