Package org.olat.core.gui.control.history

Examples of org.olat.core.gui.control.history.HistoryEntry


   * @param componentTimestamp
   * @return -1 for back, 1 for forward, 0 for nothing/reload
   */
  private int findInHistory(UserRequest ureq) {
    for (int i = historyPos-1; i>=0; i--) {
      HistoryEntry he = history.get(i);
      if (he.isSame(ureq)) {
        // found "left" to the current position = left in time = back
        historyPos = i; // make ready for future comparisons
        return -1;
      }
    }
    // not found -> check forward
    int size = history.size();
    for (int i = historyPos+1; i<size; i++) {
      HistoryEntry he = history.get(i);
      if (he.isSame(ureq)) {
        // found "right" to the current position = right in time = forward
        historyPos = i; // make ready for future comparisons
        return 1;
      }
    }
View Full Code Here


      // add the new URL to the browser history, but not if the klick resulted in a new browser window (a href .. target=...) or in a download (excel or such)
      DispatchResult dr = ureq.getDispatchResult();
      MediaResource tMr = dr.getResultingMediaResource();
      Window tWin = dr.getResultingWindow();
      if (tMr == null && tWin == null) {
        addToHistory(new HistoryEntry(ureq));
      }
      wbackofficeImpl.fireCycleEvent(END_OF_DISPATCH_CYCLE);
     
     
      // if loglevel is set accordingly, collect anonymous controller usage statistics.
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.history.HistoryEntry

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.