Package org.apache.wicket

Examples of org.apache.wicket.Component.findParent()


    // detach the page if it was updated
    if (markupIdToComponent.size() > 0)
    {
      final Component component = markupIdToComponent.values().iterator().next();
      final Page page = component.findParent(Page.class);
      if (page != null)
      {
        page.detach();
      }
    }
View Full Code Here


  {
    // detach the page if it was updated
    if (markupIdToComponent.size() > 0)
    {
      final Component component = markupIdToComponent.values().iterator().next();
      final Page page = component.findParent(Page.class);
      if (page != null)
      {
        page.detach();
      }
    }
View Full Code Here

  {
    // detach the page if it was updated
    if (markupIdToComponent.size() > 0)
    {
      final Component component = markupIdToComponent.values().iterator().next();
      final Page page = component.findParent(Page.class);
      if (page != null)
      {
        page.detach();
      }
    }
View Full Code Here

  {
    // detach the page if it was updated
    if (markupIdToComponent.size() > 0)
    {
      final Component component = markupIdToComponent.values().iterator().next();
      final Page page = component.findParent(Page.class);
      if (page != null)
      {
        page.detach();
      }
    }
View Full Code Here

      // It must have a Page, otherwise one of its parents has been
      // removed. No Page, than disable the attribute modifier and
      // return the attribute value unchanged.

      // Component.findPage() is 'protected'. But this works as well.
      if (!(behaviorOwner instanceof Page) && behaviorOwner.findParent(Page.class) == null)
      {
        setEnabled(false);
        return currentValue;
      }
View Full Code Here

      // It must have a Page, otherwise one of its parents has been
      // removed. No Page, than disable the attribute modifier and
      // return the attribute value unchanged.

      // Component.findPage() is 'protected'. But this works as well.
      if (!(behaviorOwner instanceof Page) && behaviorOwner.findParent(Page.class) == null)
      {
        setEnabled(false);
        return currentValue;
      }
View Full Code Here

  {
    // detach the page if it was updated
    if (markupIdToComponent.size() > 0)
    {
      final Component component = markupIdToComponent.values().iterator().next();
      final Page page = component.findParent(Page.class);
      if (page != null)
      {
        page.detach();
      }
    }
View Full Code Here

      {
        __form = (Form<?>)component;
      }
      else
      {
        __form = component.findParent(Form.class);
      }

      if (__form == null)
      {
        throw new IllegalStateException(
View Full Code Here

        if (((IComponentResolver)cursor).resolve(container, markupStream, tag))
        {
          return true;
        }
      }
      cursor = cursor.findParent(MarkupContainer.class);
    }

    // fallback to application-level resolvers

    Iterator<IComponentResolver> resolvers = application.getPageSettings()
View Full Code Here

    {
      return (Form<?>)component;
    }
    else
    {
      return component.findParent(Form.class);
    }
  }

  @Override
  protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
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.