|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.sampled.nondestructive.AbstractElement
Abstract subclass for implementation of CutListElements
| Field Summary | |
|---|---|
private java.util.ArrayList |
listeners
List of ModificationListeners registered with this CutListElement |
private java.lang.String |
name
Name of this CutListElement |
| Constructor Summary | |
|---|---|
AbstractElement(java.lang.String name)
Construct a new CutListElement with the given name |
|
| Method Summary | |
|---|---|
void |
addModificationListener(ModificationListener listener)
Add a ModificationListener to this CutListElement that will be notified of any changes made to this CutListElement |
java.lang.String |
getName()
Get this CutListElementīs name |
protected void |
notifyListeners()
Notify all registered ModificationListeners about a change that occured to this element |
void |
removeModificationListener(ModificationListener listener)
Remove a ModificationListener from this CutListElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.groovemanager.sampled.nondestructive.CutListElement |
|---|
duplicate, getResult, replaceFile, usesFile |
| Field Detail |
|---|
private java.util.ArrayList listeners
private final java.lang.String name
| Constructor Detail |
|---|
public AbstractElement(java.lang.String name)
name - The name of the element| Method Detail |
|---|
public void addModificationListener(ModificationListener listener)
CutListElement
addModificationListener in interface CutListElementlistener - The ModificationListener to addCutListElement.addModificationListener(com.groovemanager.sampled.nondestructive.ModificationListener)public java.lang.String getName()
CutListElement
getName in interface CutListElementCutListElement.getName()protected void notifyListeners()
public void removeModificationListener(ModificationListener listener)
CutListElement
removeModificationListener in interface CutListElementlistener - The ModificationListener to removeCutListElement.removeModificationListener(com.groovemanager.sampled.nondestructive.ModificationListener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||