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 = (Component)markupIdToComponent.values().iterator().next();
      final Page page = (Page)component.findParent(Page.class);
      if (page != null)
      {
        page.detach();
      }
    }
View Full Code Here

  {
    Iterator<Component> iterator = markupIdToComponent.values().iterator();
    while (iterator.hasNext())
    {
      final Component component = iterator.next();
      final Page parentPage = component.findParent(Page.class);
      if (parentPage != null)
      {
        parentPage.detach();
        break;
      }
View Full Code Here

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

  @Override
  protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
View Full Code Here

   */
  protected Form<?> findForm()
  {
    // try to find form in the hierarchy of owning component
    Component component = getComponent();
    return component.findParent(Form.class);
  }

  /**
   *
   * @see org.apache.wicket.ajax.AjaxEventBehavior#getEventHandler()
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

  {
    Iterator<Component> iterator = markupIdToComponent.values().iterator();
    while (iterator.hasNext())
    {
      final Component component = iterator.next();
      final Page parentPage = component.findParent(Page.class);
      if (parentPage != null)
      {
        parentPage.detach();
        break;
      }
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

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

  /**
   *
 
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

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.