Package org.olat.core.util

Examples of org.olat.core.util.ConsumableBoolean


   * This will select the node with the ID secondLevelNodeId
   *
   * @param selectedPath The path of the node or NULL
   */
  public void selectPath(String selectedPath) {
    functionCallsVC.contextPut("selectPath", (selectedPath == null ? Boolean.FALSE : new ConsumableBoolean(true)));
    functionCallsVC.contextPut("selectedPath", selectedPath);
  }
View Full Code Here


   * the rendered tree
   *
   * @param removedPath The path of the node or NULL
   */
  public void removePath(String removedPath) {
    functionCallsVC.contextPut("removePath", (removedPath == null ? Boolean.FALSE : new ConsumableBoolean(true)));
    functionCallsVC.contextPut("removedPath", removedPath);
  }
View Full Code Here

   * This will reload the node with the ID secondLevelNodeId
   *
   * @param reloadedPath the path of the node or NULL
   */
  public void reloadPath(String reloadedPath) {
    functionCallsVC.contextPut("reloadPath", (reloadedPath == null ? Boolean.FALSE : new ConsumableBoolean(true)));
    functionCallsVC.contextPut("reloadedPath", reloadedPath);
  }
View Full Code Here

    wrapper.contextPut("collabsibleContentPanelTitel", StringEscapeUtils.escapeHtml(collabsibleContentPanelTitel));
    wrapper.contextPut("resizable", resizable);
    wrapper.contextPut("constrain", constrain);
    wrapper.contextPut("scroll", Boolean.valueOf(autoScroll).toString());
    if (wControl.getWindowBackOffice().getGlobalSettings().getAjaxFlags().isIframePostEnabled()) {
      wrapper.contextPut("renderOnce", new ConsumableBoolean(true));//panels should only be rendered once in ajax mode, otherwise they get doubled (e.g. switching tabs between open courses)
      wrapper.contextPut("renderAlways", Boolean.FALSE);
    } else {
      wrapper.contextPut("renderAlways", Boolean.TRUE);//render each time in non ajax mode
      wrapper.contextPut("renderOnce", new ConsumableBoolean(true));
    }
    putInitialPanel(main);
  }
View Full Code Here

  private void scrollToCurrentMessage() {
    // Scroll to message, but only the first time the view is rendered
    if (currentMsg.getThreadtop() == null || currentMessagesMap.size() == 1) {
      vcThreadView.contextPut("goToMessage", Boolean.FALSE);
    } else {
      vcThreadView.contextPut("goToMessage", new ConsumableBoolean(true));
      vcThreadView.contextPut("goToMessageId", currentMsg.getKey());           
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.core.util.ConsumableBoolean

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.