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 Details

    • authorizeChange

      void authorizeChange(ClsChangeEvent e) throws UnsupportedEditException
      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

      void chordLeadSheetChanged(ClsChangeEvent e)
      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.