public class VisiblyMutableUtils
extends java.lang.Object
Constructor and Description |
---|
VisiblyMutableUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
changed(VisiblyMutable vm,
java.util.List<VisiblyMutable.Listener> listeners)
Notifies listeners of a change to the given VisiblyMutable object.
|
static boolean |
isValidName(java.lang.String name) |
static void |
nameChanged(VisiblyMutable vm,
java.lang.String oldName,
java.lang.String newName,
java.util.List<VisiblyMutable.Listener> listeners) |
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.
|
public static void changed(VisiblyMutable vm, java.util.List<VisiblyMutable.Listener> listeners)
vm
- The changed VisiblyMutable objectlisteners
- List of things listening for changespublic static boolean isValidName(java.lang.String name)
public static void nameChanged(VisiblyMutable vm, java.lang.String oldName, java.lang.String newName, java.util.List<VisiblyMutable.Listener> listeners) throws StructuralException
vm
- The changed VisiblyMutable objectoldName
- The old (existing) name of the VisiblyMutablenewName
- The new (replacement) name of the VisiblyMutablelisteners
- List of things listening for changesStructuralException
- if the new name is invalidpublic static void nodeRemoved(VisiblyMutable vm, Node n, java.util.List<VisiblyMutable.Listener> listeners)
vm
- The changed VisiblyMutable objectn
- The node that was removedlisteners
- List of things listening for changes