ca.nengo.util
Class VisiblyMutableUtils
java.lang.Object
ca.nengo.util.VisiblyMutableUtils
public class VisiblyMutableUtils
- extends java.lang.Object
Utility methods for VisiblyMutable objects.
- Author:
- Bryan Tripp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VisiblyMutableUtils
public VisiblyMutableUtils()
changed
public static void changed(VisiblyMutable vm,
java.util.List<VisiblyMutable.Listener> listeners)
- Notifies listeners of a change to the given VisiblyMutable object.
- Parameters:
vm
- The changed VisiblyMutable objectlisteners
- List of things listening for changes
nameChanged
public static void nameChanged(VisiblyMutable vm,
java.lang.String oldName,
java.lang.String newName,
java.util.List<VisiblyMutable.Listener> listeners)
throws StructuralException
- Parameters:
vm
- The changed VisiblyMutable objectoldName
- The old (existing) name of the VisiblyMutablenewName
- The new (replacement) name of the VisiblyMutablelisteners
- List of things listening for changes
- Throws:
StructuralException
- if the new name is invalid
nodeRemoved
public static void nodeRemoved(VisiblyMutable vm,
Node n,
java.util.List<VisiblyMutable.Listener> listeners)
- Notifies listeners that a node has been removed within the given object.
- Parameters:
vm
- The changed VisiblyMutable objectn
- The node that was removedlisteners
- List of things listening for changes