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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classVisits BindingRoots, initializing them.static classstatic classstatic classVisits ComponentLifecycles, shutting them down.static classVisits ComponentLifecycles, starting them up.static classVisits TemplateHolders, calling initTemplate() on themstatic classCounts 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 classVisits DynamicPropertyProviders, initializing their UDTProperties. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpop(JComponent container) Called after a container's children have been visitedvoidpush(JComponent container) Called before a container's children are visited.abstract booleanvisit(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 Details
-
LOG
-
-
Constructor Details
-
ComponentVisitor
public ComponentVisitor()
-
-
Method Details
-
visit
Visit the component. Return false to not visit beneath this component. -
push
Called before a container's children are visited. -
pop
Called after a container's children have been visited -
walk
Walks the provided visitor down component hierarchy starting with the given container. -
walk
Walks the provided visitor down component hierarchy, optionally starting with the given container.
-