Package org.olat.core.gui.render

Examples of org.olat.core.gui.render.StringOutput


  /**
   *
   * @return the componentid (e.g.) o_c32645732
   */
  public StringOutput getCId() {
    StringOutput sb = new StringOutput(16);
    sb.append("o_c").append(vc.getDispatchID());
    return sb;
  }
View Full Code Here


   *
   * @param command
   * @return e.g. /olat/auth/1:2:3:cid:com/
   */
  public StringOutput commandURIbg(String command) {
    StringOutput sb = new StringOutput(100);
    renderer.getUrlBuilder().buildURI(sb, new String[] { VelocityContainer.COMMAND_ID }, new String[] { command }, isIframePostEnabled? AJAXFlags.MODE_TOBGIFRAME : AJAXFlags.MODE_NORMAL);
    return sb;
  }
View Full Code Here

  /**
   * renderer a target="oaa" if ajax-mode is on, otherwise returns an empty string
   * @return
   */
  public StringOutput bgTarget() {
    StringOutput sb = new StringOutput(16);
    if (isIframePostEnabled) {
      renderer.getUrlBuilder().appendTarget(sb);
    }
    return sb;
  }
View Full Code Here

   * FIXME:fj:b search occurences for $r.commandURI and try to replace them with $r.link(...) or such
   * @param command
   * @return
   */
  public StringOutput commandURI(String command) {
    StringOutput sb = new StringOutput(100);
    renderer.getUrlBuilder().buildURI(sb, new String[] { VelocityContainer.COMMAND_ID }, new String[] { command });
    return sb;
  }
View Full Code Here

   * @param paramKey
   * @param paramValue
   * @return
   */
  public StringOutput javaScriptBgCommand(String command, String paramKey, String paramValue) {
    StringOutput sb = new StringOutput(100);
    renderer.getUrlBuilder().buildJavaScriptBgCommand(sb, new String[] { VelocityContainer.COMMAND_ID, paramKey }, new String[] { command, paramValue }, isIframePostEnabled? AJAXFlags.MODE_TOBGIFRAME : AJAXFlags.MODE_NORMAL);
    return sb;
  }
View Full Code Here

   *
   * @param command
   * @return
   */
  public StringOutput javaScriptBgCommand(String command) {
    StringOutput sb = new StringOutput(100);
    renderer.getUrlBuilder().buildJavaScriptBgCommand(sb, new String[] { VelocityContainer.COMMAND_ID }, new String[] { command}, isIframePostEnabled? AJAXFlags.MODE_TOBGIFRAME : AJAXFlags.MODE_NORMAL);
    return sb;
 
View Full Code Here

   * e.g. '<form method="post" action="$r.formURIgb("viewswitch")">'
   * @param command
   * @return
   */
  public StringOutput formURIbg(String command) {
    StringOutput sb = new StringOutput(100);
    renderer.getUrlBuilder().buildURI(sb, new String[] { VelocityContainer.COMMAND_ID }, new String[] { command }, isIframePostEnabled? AJAXFlags.MODE_TOBGIFRAME : AJAXFlags.MODE_NORMAL);
    return sb;
  }
View Full Code Here

   * e.g. '<form method="post" action="$r.formURIgb("viewswitch")">'
   * @param command
   * @return
   */
  public StringOutput formURI(String command) {
    StringOutput sb = new StringOutput(100);
    renderer.getUrlBuilder().buildURI(sb, new String[] { VelocityContainer.COMMAND_ID }, new String[] { command });
    return sb;
  }
View Full Code Here

   *
   * @param command
   * @return
   */
  public StringOutput commandURI(String command, String paramKey, String paramValue) {
    StringOutput sb = new StringOutput(100);
    renderer.getUrlBuilder().buildURI(sb, new String[] { VelocityContainer.COMMAND_ID, paramKey }, new String[] { command, paramValue });
    return sb;
  }
View Full Code Here

   *
   * @param command
   * @return
   */
  public StringOutput commandURIbg(String command, String paramKey, String paramValue) {
    StringOutput sb = new StringOutput(100);
    renderer.getUrlBuilder().buildURI(sb, new String[] { VelocityContainer.COMMAND_ID, paramKey }, new String[] { command, paramValue }, isIframePostEnabled? AJAXFlags.MODE_TOBGIFRAME : AJAXFlags.MODE_NORMAL);
    return sb;
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.render.StringOutput

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.