Class ComponentVisitor
- 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 java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComponentVisitor.BindingInitVisitorVisits BindingRoots, initializing them.static classComponentVisitor.ComponentSecurityVisitorstatic classComponentVisitor.LocaleChangedVisitorstatic classComponentVisitor.ShutdownVisitorVisits ComponentLifecycles, shutting them down.static classComponentVisitor.StartupVisitorVisits ComponentLifecycles, starting them up.static classComponentVisitor.TemplateHolderVisitorVisits TemplateHolders, calling initTemplate() on themstatic classComponentVisitor.TemplatePreDeserializeVisitorCounts up the number of each template that will be needed on initialize, and then can pre-load instances for templates that will be needed more than once.static classComponentVisitor.UDTInitVisitorVisits DynamicPropertyProviders, initializing their UDTProperties.
-
Constructor Summary
Constructors Constructor Description ComponentVisitor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidpop(javax.swing.JComponent container)Called after a container's children have been visitedvoidpush(javax.swing.JComponent container)Called before a container's children are visited.abstract booleanvisit(javax.swing.JComponent component)Visit the component.static voidwalk(VisionContainer container, ComponentVisitor visitor)Walks the provided visitor down component hierarchy starting with the given container.static voidwalk(VisionContainer container, ComponentVisitor visitor, boolean skipVisitRoot)Walks the provided visitor down component hierarchy, optionally starting with the given container.
-
-
-
Field Detail
-
LOG
protected static final LoggerEx LOG
-
-
Method Detail
-
visit
public abstract boolean visit(javax.swing.JComponent component)
Visit the component. Return false to not visit beneath this component.
-
push
public void push(javax.swing.JComponent container)
Called before a container's children are visited.
-
pop
public void pop(javax.swing.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.
-
-