Examples of findParent()


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

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

  {
    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

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

  {
    if (form == null)
    {
      // try to find form in the hierarchy of owning component
      Component component = getComponent();
      form = component.findParent(Form.class);
      if (form == null)
      {
        throw new IllegalStateException(
          "form was not specified in the constructor and cannot "
            + "be found in the hierarchy of the component this behavior "
View Full Code Here

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

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

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

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

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

  {
    if (form == null)
    {
      // try to find form in the hierarchy of owning component
      Component component = getComponent();
      form = component.findParent(Form.class);
      if (form == null)
      {
        throw new IllegalStateException(
          "form was not specified in the constructor and cannot "
            + "be found in the hierarchy of the component this behavior "
View Full Code Here

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

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

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

  {
    if (__form == null)
    {
      // try to find form in the hierarchy of owning component
      Component component = getComponent();
      __form = component.findParent(Form.class);
      if (__form == null)
      {
        throw new IllegalStateException(
          "form was not specified in the constructor and cannot "
            + "be found in the hierarchy of the component this behavior "
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.