Examples of prepend()


Examples of org.apache.wicket.util.string.PrependingStringBuffer.prepend()

     * to replace it by prepending a path separator, as this identification can be assigned to
     * an submit form component name
     */
    if ("submit".equals(inputName.toString()))
    {
      inputName.prepend(Component.PATH_SEPARATOR);
    }
    return inputName.toString();
  }

  /**
 
View Full Code Here

Examples of org.apache.wicket.util.string.PrependingStringBuffer.prepend()

  {
    PrependingStringBuffer buffer = new PrependingStringBuffer();
    Url filterPrefixUrl = Url.parse(filterPrefix, getCharset());
    for (int i = 0; i < filterPrefixUrl.getSegments().size() - 1; ++i)
    {
      buffer.prepend("../");
    }
    return buffer.toString();
  }

  @Override
View Full Code Here

Examples of org.apache.wicket.util.string.PrependingStringBuffer.prepend()

    String id = component.getId();
    final PrependingStringBuffer inputName = new PrependingStringBuffer(id.length());
    Component c = component;
    while (true)
    {
      inputName.prepend(id);
      c = c.getParent();
      if (c == null || (c instanceof Form<?> && ((Form<?>)c).isRootForm()) ||
        c instanceof Page)
      {
        break;
View Full Code Here

Examples of org.apache.wicket.util.string.PrependingStringBuffer.prepend()

      if (c == null || (c instanceof Form<?> && ((Form<?>)c).isRootForm()) ||
        c instanceof Page)
      {
        break;
      }
      inputName.prepend(Component.PATH_SEPARATOR);
      id = c.getId();
    }

    /*
     * having input name "submit" causes problems with JavaScript, so we create a unique string
View Full Code Here

Examples of org.apache.wicket.util.string.PrependingStringBuffer.prepend()

     * to replace it by prepending a path separator, as this identification can be assigned to
     * an submit form component name
     */
    if ("submit".equals(inputName.toString()))
    {
      inputName.prepend(Component.PATH_SEPARATOR);
    }
    return inputName.toString();
  }

  /**
 
View Full Code Here

Examples of org.apache.wicket.util.string.PrependingStringBuffer.prepend()

        // Servlet/Filter, with no leading '/'.
        PrependingStringBuffer prepender = new PrependingStringBuffer(url.toString());

        // Prepend prefix to the URL to make it relative to the current
        // request.
        prepender.prepend(requestCycle.getRequest().getRelativePathPrefixToWicketHandler());

        result = prepender.toString();
        // We need to special-case links to the home page if we're at the
        // same level.
        if (result.length() == 0)
View Full Code Here

Examples of org.apache.wicket.util.string.PrependingStringBuffer.prepend()

    for (int i = 0; i < wicketPath.length(); i++)
    {
      if (wicketPath.charAt(i) == '/')
      {
        prepender.prepend("../");
      }
    }
    return relativePathPrefixToContextRoot = prepender.toString();
  }
View Full Code Here

Examples of org.commoncrawl.io.shared.NIOHttpHeaders.prepend()

      // we don't want to populate default http headers ...
      connection.setPopulateDefaultHeaderItems(false);
      // get at headers object
      NIOHttpHeaders headers = connection.getRequestHeaders();
      // populate http request string
      headers.prepend("GET" + " " + theURL.getFile() +" "  + "HTTP/1.1", null);
      // populate host entry ...
      if (theURL.getPort() != -1 && theURL.getPort() != 80) {
        headers.set("Host",theURL.getHost() +":"+String.valueOf(theURL.getPort()));
      }
      else {
View Full Code Here

Examples of org.jostraca.transform.TextualTransformManager.prepend()

      TextualTransformManager textTTM = pTextualTransformManagerTable.getTextTTM();
      if( textTTM.contains( iCollapseWhiteSpaceTransform ) ) {
        textTTM.remove( iCollapseWhiteSpaceTransform );
      }
      else {
        textTTM.prepend( iCollapseWhiteSpaceTransform );
      }

      // REVIEW: this is deprecated

      // REVIEW: need a cleaner way to do this - should be handled by
View Full Code Here

Examples of org.jostraca.util.SimpleObjectManager.prepend()

  public void testPrependAppendRemove() throws Exception {
    SimpleObjectManager som = new SimpleObjectManager( TextualTransform.class );

    TrimTransform tt = new TrimTransform();
    som.prepend( tt );
    assertTrue( (TextualTransform.class.getName()+": "+tt.getClass().getName()).equals( som.toString() ) );

    try {
      som.prepend( new Object() );
      fail();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.