Package org.jjazz.songstructure.api
Interface SgsChangeListener
- All Known Implementing Classes:
MidiMix
,PianoRollEditorTopComponent
,Song
,StructuralChangeListener
public interface SgsChangeListener
Listen to a SongStructure changes.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Some change events might need to be authorized by all listeners before being processed by songStructureChanged().void
Process the change.
-
Method Details
-
authorizeChange
Some change events might need to be authorized by all listeners before being processed by songStructureChanged().- Parameters:
e
- The change to authorize.- Throws:
UnsupportedEditException
- Listener shall throw this exception if change is not acceptable. Exception message might be shown to user to explain the problem.
-
songStructureChanged
Process the change.Note that this method might be called outside of the EDT.
- Parameters:
e
-- Throws:
IllegalStateException
- If change is not authorized by this listener.
-