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 class
Visits BindingRoots, initializing them.static class
static class
static class
Visits ComponentLifecycles, shutting them down.static class
Visits ComponentLifecycles, starting them up.static class
Visits TemplateHolders, calling initTemplate() on themstatic class
Counts 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 class
Visits DynamicPropertyProviders, initializing their UDTProperties. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
pop
(JComponent container) Called after a container's children have been visitedvoid
push
(JComponent container) Called before a container's children are visited.abstract boolean
visit
(JComponent component) Visit the component.static void
walk
(VisionContainer container, ComponentVisitor visitor) Walks the provided visitor down component hierarchy starting with the given container.static void
walk
(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.
-