Package org.apache.wicket.util.iterator

Examples of org.apache.wicket.util.iterator.ComponentHierarchyIterator


   * @return A iterator which iterators over all children and grand-children the Component,
   *         returning only components which implement (instanceof) the provided clazz.
   */
  public final ComponentHierarchyIterator visitChildren(final Class<?> clazz)
  {
    return new ComponentHierarchyIterator(this).filterByClass(clazz);
  }
View Full Code Here


  /**
   * @return A iterator which iterators over all children and grand-children the Component
   */
  public final ComponentHierarchyIterator visitChildren()
  {
    return new ComponentHierarchyIterator(this);
  }
View Full Code Here

   * @return A iterator which iterators over all children and grand-children the Component,
   *         returning only components which implement (instanceof) the provided clazz.
   */
  public final ComponentHierarchyIterator visitChildren(final Class<?> clazz)
  {
    return new ComponentHierarchyIterator(this).filterByClass(clazz);
  }
View Full Code Here

  /**
   * @return A iterator which iterators over all children and grand-children the Component
   */
  public final ComponentHierarchyIterator visitChildren()
  {
    return new ComponentHierarchyIterator(this);
  }
View Full Code Here

   * @return A iterator which iterators over all children and grand-children the Component,
   *         returning only components which implement (instanceof) the provided clazz.
   */
  public final ComponentHierarchyIterator visitChildren(final Class<?> clazz)
  {
    return new ComponentHierarchyIterator(this).filterByClass(clazz);
  }
View Full Code Here

  /**
   * @return A iterator which iterators over all children and grand-children the Component
   */
  public final ComponentHierarchyIterator visitChildren()
  {
    return new ComponentHierarchyIterator(this);
  }
View Full Code Here

   * @return A iterator which iterators over all children and grand-children the Component,
   *         returning only components which implement (instanceof) the provided clazz.
   */
  public final ComponentHierarchyIterator visitChildren(final Class<?> clazz)
  {
    return new ComponentHierarchyIterator(this).filterByClass(clazz);
  }
View Full Code Here

  }

  @Override
  protected void onRender()
  {
    final ComponentHierarchyIterator visitChildren = getPage().visitChildren(
      FacebookRootProvider.class);
    if (!visitChildren.hasNext())
      throw new MissingFacebookRootException();

    if (findPage() != null)
    {
      AjaxRequestTarget target = getRequestCycle().find(AjaxRequestTarget.class);
View Full Code Here

  /**
   * @param component
   */
  private void checkFacebookRoot(final Component component)
  {
    final ComponentHierarchyIterator visitChildren = component.getPage().visitChildren(
      FacebookRootProvider.class);
    if (!visitChildren.hasNext())
      throw new MissingFacebookRootException();
  }
View Full Code Here

  /**
   * @return A iterator which iterators over all children and grand-children the Component
   */
  public final ComponentHierarchyIterator visitChildren()
  {
    return new ComponentHierarchyIterator(this);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.util.iterator.ComponentHierarchyIterator

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.