Class TreeTableModelAdapter.UpdatingTreeModelListener
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.gui.TreeTableModelAdapter.UpdatingTreeModelListener
-
- All Implemented Interfaces:
EventListener
,TreeModelListener
- Enclosing class:
- TreeTableModelAdapter
private final class TreeTableModelAdapter.UpdatingTreeModelListener extends Object implements TreeModelListener
TreeModelListener that can update the table when tree changes.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
UpdatingTreeModelListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
delayedFireTableDataChanged()
Invokes fireTableDataChanged after all the pending events have been processed.void
treeNodesChanged(TreeModelEvent event)
void
treeNodesInserted(TreeModelEvent event)
void
treeNodesRemoved(TreeModelEvent event)
void
treeStructureChanged(TreeModelEvent event)
-
-
-
Constructor Detail
-
UpdatingTreeModelListener
private UpdatingTreeModelListener()
-
-
Method Detail
-
treeNodesChanged
public void treeNodesChanged(TreeModelEvent event)
- Specified by:
treeNodesChanged
in interfaceTreeModelListener
-
treeNodesInserted
public void treeNodesInserted(TreeModelEvent event)
- Specified by:
treeNodesInserted
in interfaceTreeModelListener
-
treeNodesRemoved
public void treeNodesRemoved(TreeModelEvent event)
- Specified by:
treeNodesRemoved
in interfaceTreeModelListener
-
treeStructureChanged
public void treeStructureChanged(TreeModelEvent event)
- Specified by:
treeStructureChanged
in interfaceTreeModelListener
-
delayedFireTableDataChanged
private void delayedFireTableDataChanged()
Invokes fireTableDataChanged after all the pending events have been processed. SwingUtilities.invokeLater is used to handle this.
-
-