Package org.apache.wicket.markup

Examples of org.apache.wicket.markup.MarkupStream.skipUntil()


      {
        stream.next();
      }

      // Search for <wicket:xxx> in the remaining markup and try to resolve the component
      while (stream.skipUntil(ComponentTag.class))
      {
        ComponentTag tag = stream.getTag();
        if (tag.isOpen() || tag.isOpenClose())
        {
          if (tag instanceof WicketTag)
View Full Code Here


    // Get markup associated with Border or Panel component
    final MarkupStream originalMarkupStream = getMarkupStream();
    final MarkupStream associatedMarkupStream = getAssociatedMarkupStream(true);

    // skip until the targetted tag is found
    associatedMarkupStream.skipUntil(openTagName);
    setMarkupStream(associatedMarkupStream);

    // Get open tag in associated markup of border component
    final ComponentTag associatedMarkupOpenTag = associatedMarkupStream.getTag();
View Full Code Here

  public IMarkupFragment findMarkupInAssociatedFileHeader(final IMarkupFragment markup,
    final Component child)
  {
    IMarkupFragment childMarkup = null;
    MarkupStream stream = new MarkupStream(markup);
    while (stream.skipUntil(ComponentTag.class) && (childMarkup == null))
    {
      ComponentTag tag = stream.getTag();
      if (tag instanceof WicketTag)
      {
        WicketTag wtag = (WicketTag)tag;
View Full Code Here

   */
  private final IMarkupFragment findPanelTag(final IMarkupFragment markup)
  {
    MarkupStream stream = new MarkupStream(markup);

    while (stream.skipUntil(ComponentTag.class))
    {
      ComponentTag tag = stream.getTag();
      if (tag.isOpen() || tag.isOpenClose())
      {
        if (tag instanceof WicketTag)
View Full Code Here

      Checks.argumentNotEmpty(name, "name");

      MarkupStream stream = new MarkupStream(markup);

      // Skip any raw markup
      stream.skipUntil(ComponentTag.class);

      // Skip <wicket:border>
      stream.next();

      while (stream.skipUntil(ComponentTag.class))
View Full Code Here

      stream.skipUntil(ComponentTag.class);

      // Skip <wicket:border>
      stream.next();

      while (stream.skipUntil(ComponentTag.class))
      {
        ComponentTag tag = stream.getTag();
        if (tag.isOpen() || tag.isOpenClose())
        {
          if (tag instanceof WicketTag)
View Full Code Here

    if ((markup != null) && (markup.size() > 1))
    {
      MarkupStream stream = new MarkupStream(markup);

      // Skip the first component tag which already belongs to 'this' container
      if (stream.skipUntil(ComponentTag.class))
      {
        stream.next();
      }

      // Search for <wicket:xxx> in the remaining markup and try to resolve the component
View Full Code Here

      {
        stream.next();
      }

      // Search for <wicket:xxx> in the remaining markup and try to resolve the component
      while (stream.skipUntil(ComponentTag.class))
      {
        ComponentTag tag = stream.getTag();
        if (tag.isOpen() || tag.isOpenClose())
        {
          if (tag instanceof WicketTag)
View Full Code Here

      {
        // The component's markup must be in the same file as its parent
        if (markup.getMarkupResourceStream() == parentMarkup.getMarkupResourceStream())
        {
          MarkupStream stream = new MarkupStream(markup);
          stream.skipUntil(ComponentTag.class);
          ComponentTag openTag = stream.getTag();
          if (openTag != null)
          {
            MarkupStream parentStream = new MarkupStream(parentMarkup);
            if (parentStream.skipUntil(ComponentTag.class))
View Full Code Here

          stream.skipUntil(ComponentTag.class);
          ComponentTag openTag = stream.getTag();
          if (openTag != null)
          {
            MarkupStream parentStream = new MarkupStream(parentMarkup);
            if (parentStream.skipUntil(ComponentTag.class))
            {
              parentStream.next();
            }

            Stack<ComponentTag> stack = new Stack<ComponentTag>();
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.