Package org.jjazz.chordleadsheet.api
Interface ClsChangeListener
- All Known Implementing Classes:
CL_ContextActionSupport
,Song
,StructuralChangeListener
public interface ClsChangeListener
Objects that want to listen to ChordLeadSheet changes must implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Some change events might need to be authorized by all listeners before being processed by chordLeadSheetChanged().void
Process the change.
-
Method Details
-
authorizeChange
Some change events might need to be authorized by all listeners before being processed by chordLeadSheetChanged().- 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.
-
chordLeadSheetChanged
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.
-