Interface SgsChangeListener

All Known Implementing Classes:
MidiMix, PianoRollEditorTopComponent, Song, StructuralChangeListener

public interface SgsChangeListener
Listen to a SongStructure changes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Some change events might need to be authorized by all listeners before being processed by songStructureChanged().
    void
    Process the change.
  • Method Details

    • authorizeChange

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

      void songStructureChanged(SgsChangeEvent 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.