Class DeepChildFirstVisitor

  • All Implemented Interfaces:
    org.apache.wicket.util.visit.IVisitor<Component,​java.lang.Void>

    public abstract class DeepChildFirstVisitor
    extends java.lang.Object
    implements org.apache.wicket.util.visit.IVisitor<Component,​java.lang.Void>
    Author:
    Juergen Donnerstag
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void component​(Component component, org.apache.wicket.util.visit.IVisit<java.lang.Void> visit)  
      abstract boolean preCheck​(Component component)
      In order to find the deepest component, we traverse downwards starting from the root (e.g.
      org.apache.wicket.util.visit.Visit<java.lang.Void> visit​(Component rootComponent)
      Render the child hierarchy headers.
      org.apache.wicket.util.visit.Visit<java.lang.Void> visit​(Component rootComponent, org.apache.wicket.util.visit.Visit<java.lang.Void> visit)
      Render the child hierarchy headers.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeepChildFirstVisitor

        public DeepChildFirstVisitor()
        Construct.
    • Method Detail

      • visit

        public final org.apache.wicket.util.visit.Visit<java.lang.Void> visit​(Component rootComponent)
        Render the child hierarchy headers.
        Parameters:
        rootComponent -
        Returns:
        The object return by component()
      • visit

        public final org.apache.wicket.util.visit.Visit<java.lang.Void> visit​(Component rootComponent,
                                                                              org.apache.wicket.util.visit.Visit<java.lang.Void> visit)
        Render the child hierarchy headers.
        Parameters:
        rootComponent -
        visit -
        Returns:
        The object return by component()
      • component

        public abstract void component​(Component component,
                                       org.apache.wicket.util.visit.IVisit<java.lang.Void> visit)
        Specified by:
        component in interface org.apache.wicket.util.visit.IVisitor<Component,​java.lang.Void>
      • preCheck

        public abstract boolean preCheck​(Component component)
        In order to find the deepest component, we traverse downwards starting from the root (e.g. Page). However, once a component is not disabled (preCheck() returns false), iteration will stop and traversal continues with the sibling.
        Parameters:
        component - The component to be tested
        Returns:
        True, if component is enabled