java.lang.Object
com.inductiveautomation.factorypmi.application.components.util.ComponentVisitor
Direct Known Subclasses:
ComponentTranslationPanel.TermFindingComponentVisitor, ComponentVisitor.BindingInitVisitor, ComponentVisitor.ComponentSecurityVisitor, ComponentVisitor.LocaleChangedVisitor, ComponentVisitor.ShutdownVisitor, ComponentVisitor.StartupVisitor, ComponentVisitor.TemplateHolderVisitor, ComponentVisitor.TemplatePreDeserializeVisitor, ComponentVisitor.UDTInitVisitor

public abstract class ComponentVisitor extends Object
  • Field Details

    • LOG

      protected static final LoggerEx LOG
  • Constructor Details

    • ComponentVisitor

      public ComponentVisitor()
  • Method Details

    • visit

      public abstract boolean visit(JComponent component)
      Visit the component. Return false to not visit beneath this component.
    • push

      public void push(JComponent container)
      Called before a container's children are visited.
    • pop

      public void pop(JComponent container)
      Called after a container's children have been visited
    • walk

      public static void walk(VisionContainer container, ComponentVisitor visitor)
      Walks the provided visitor down component hierarchy starting with the given container.
    • walk

      public static void walk(VisionContainer container, ComponentVisitor visitor, boolean skipVisitRoot)
      Walks the provided visitor down component hierarchy, optionally starting with the given container.