Examples of ComponentHierarchyIterator


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

    /**
     * @return all form components that are assigned to this {@link FormGroup}
     */
    private List<FormComponent<?>> findFormComponents() {
        final ComponentHierarchyIterator it = getBodyContainer().visitChildren(FormComponent.class);

        final List<FormComponent<?>> components = new ArrayList<FormComponent<?>>();
        while (it.hasNext()) {
            components.add((FormComponent<?>) it.next());
        }

        return components;
    }
View Full Code Here

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

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

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

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

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

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

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

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

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

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

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

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

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

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