Class ContainerTracker
- java.lang.Object
-
- io.github.jonestimd.swing.validation.ContainerTracker
-
- Direct Known Subclasses:
FieldChangeTracker,ValidationTracker
public abstract class ContainerTracker extends java.lang.ObjectBase class for tracking changes to a component hierarchy. AftertrackFieldChanges(Container)is called for a root container,componentAdded(Component)andcomponentRemoved(Component)will be called for anyComponentthat is added or removed within the hierarchy of the the root container. Children of the following components are excluded from the tracking:JComboBoxJListJTable
-
-
Constructor Summary
Constructors Constructor Description ContainerTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcomponentAdded(java.awt.Component component)Adds theContainerListenerto thecomponent.protected voidcomponentRemoved(java.awt.Component component)Removes theContainerListenerto thecomponent.voidtrackFieldChanges(java.awt.Container container)Adds theContainerListenerto thecontainerand any of its nested containers.voiduntrackFieldChanges(java.awt.Container container)Removes theContainerListenerfrom thecontainerand any of its nested containers.
-
-
-
Method Detail
-
trackFieldChanges
public void trackFieldChanges(java.awt.Container container)
Adds theContainerListenerto thecontainerand any of its nested containers.
-
untrackFieldChanges
public void untrackFieldChanges(java.awt.Container container)
Removes theContainerListenerfrom thecontainerand any of its nested containers.
-
componentAdded
protected void componentAdded(java.awt.Component component)
Adds theContainerListenerto thecomponent.
-
componentRemoved
protected void componentRemoved(java.awt.Component component)
Removes theContainerListenerto thecomponent.
-
-