Package ca.spatial.table
Class WeakTableModelListener
java.lang.Object
ca.spatial.table.WeakTableModelListener
- All Implemented Interfaces:
EventListener
,TableModelListener
This class implements a weakly reference table listener.
Once the table in no longer needed then the listener will
automatically be removed.
This implementation imposes a minor overhead on processing, as it adds a fetch, a conditional test, and one more indirect reference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
-
Constructor Details
-
WeakTableModelListener
- Parameters:
listener
- The object that wants to listen for changes.src
- The table that is being listened to.
-
-
Method Details
-
tableChanged
- Specified by:
tableChanged
in interfaceTableModelListener
-
getListener
-