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 class
ComponentVisitor.BindingInitVisitor
Visits BindingRoots, initializing them.static class
ComponentVisitor.ComponentSecurityVisitor
static class
ComponentVisitor.LocaleChangedVisitor
static class
ComponentVisitor.ShutdownVisitor
Visits ComponentLifecycles, shutting them down.static class
ComponentVisitor.StartupVisitor
Visits ComponentLifecycles, starting them up.static class
ComponentVisitor.TemplateHolderVisitor
Visits TemplateHolders, calling initTemplate() on themstatic class
ComponentVisitor.TemplatePreDeserializeVisitor
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
ComponentVisitor.UDTInitVisitor
Visits 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 void
pop(javax.swing.JComponent container)
Called after a container's children have been visitedvoid
push(javax.swing.JComponent container)
Called before a container's children are visited.abstract boolean
visit(javax.swing.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 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.
-
-