Package org.apache.wicket.markup

Examples of org.apache.wicket.markup.WicketTag


   */
  protected DequeueTagAction canDequeueTag(ComponentTag tag)
  {
    if (tag instanceof WicketTag)
    {
      WicketTag wicketTag = (WicketTag)tag;
      if (wicketTag.isContainerTag())
      {
        return DequeueTagAction.DEQUEUE;
      }
      else if (wicketTag.getAutoComponentFactory() != null)
      {
        return DequeueTagAction.DEQUEUE;
      }
      else if (wicketTag.isFragmentTag())
      {
        return DequeueTagAction.SKIP;
      }
      else if (wicketTag.isChildTag())
      {
        return DequeueTagAction.SKIP;
      }
      else
      {
View Full Code Here


    // Identify tags with Wicket namespace
    if (namespace.equalsIgnoreCase(tag.getNamespace()))
    {
      // It is <wicket:...>
      tag = new WicketTag(tag.getXmlTag());

      if (Strings.isEmpty(wicketIdValue))
      {
        // Make it a Wicket component. Otherwise it would be RawMarkup
        tag.setId(namespace + "_" + tag.getName());
View Full Code Here

    // For all <wicket:link ..> tags which probably change the
    // current autolink status.
    if (tag instanceof WicketTag)
    {
      final WicketTag wtag = (WicketTag)tag;
      if (wtag.isLinkTag())
      {
        // Beginning of the region
        if (tag.isOpen() || tag.isOpenClose())
        {
          if (tag.isOpen())
View Full Code Here

  public Component resolve(final MarkupContainer container, final MarkupStream markupStream,
    final ComponentTag tag)
  {
    if (tag instanceof WicketTag)
    {
      WicketTag wtag = (WicketTag)tag;
      if (wtag.isLinkTag() && (wtag.getNamespace() != null))
      {
        String id = tag.getId() + "-" + container.getPage().getAutoIndex();

        return new TransparentWebMarkupContainer(id);
      }
View Full Code Here

    final ComponentTag tag)
  {
    // If <wicket:...>
    if (tag instanceof WicketTag)
    {
      final WicketTag wTag = (WicketTag)tag;

      // If <wicket:fragment ...>
      if (wTag.isFragmentTag())
      {
        return new WebComponent(wTag.getId()).setVisible(false);
      }
    }

    // We were not able to handle the tag
    return null;
View Full Code Here

    // Identify tags with Wicket namespace
    if (namespace.equalsIgnoreCase(tag.getNamespace()))
    {
      // It is <wicket:...>
      tag = new WicketTag(tag.getXmlTag());

      if (Strings.isEmpty(wicketIdValue))
      {
        // Make it a Wicket component. Otherwise it would be RawMarkup
        tag.setId("_wicket_" + tag.getName());
View Full Code Here

    // For all <wicket:link ..> tags which probably change the
    // current autolink status.
    if (tag instanceof WicketTag)
    {
      final WicketTag wtag = (WicketTag)tag;
      if (wtag.isLinkTag())
      {
        // Beginning of the region
        if (tag.isOpen() || tag.isOpenClose())
        {
          if (tag.isOpen())
View Full Code Here

  public Component resolve(final MarkupContainer container, final MarkupStream markupStream,
    final ComponentTag tag)
  {
    if (tag instanceof WicketTag)
    {
      WicketTag wtag = (WicketTag)tag;
      if (wtag.isLinkTag() && (wtag.getNamespace() != null))
      {
        String id = tag.getId() + "-" + container.getPage().getAutoIndex();
        tag.setId(id);

        return new TransparentWebMarkupContainer(id);
View Full Code Here

      ComponentTag tag = stream.getTag();
      if (tag.isOpen() || tag.isOpenClose())
      {
        if (tag instanceof WicketTag)
        {
          WicketTag wtag = (WicketTag)tag;
          if (tagName.equalsIgnoreCase(wtag.getName()))
          {
            return stream.getMarkupFragment();
          }
        }
View Full Code Here

  {
    // Create a HtmlHeaderContainer for the header tag found
    final MarkupElement element = markup.get(0);
    if (element instanceof WicketTag)
    {
      final WicketTag wTag = (WicketTag)element;
      if ((wTag.isHeadTag() == true) && (wTag.getNamespace() != null))
      {
        // Create the header container and associate the markup with it
        return new HeaderPartContainer(id, container, markup);
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.WicketTag

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.