com.frinika.sequencer.model
Class MultiEventChangeRecorder

java.lang.Object
  extended by com.frinika.sequencer.model.MultiEventChangeRecorder

public abstract class MultiEventChangeRecorder
extends java.lang.Object

If you want to make sure that the changes in a MultiEvent is recorded in the EditHistory you should wrap this class around your MultiEvent change code. It applies to one single MultiEvent and make sure that all neccesities are done in order to record the change. Recording a MultiEvent change in the editHistory implies removing the MultiEvent before the change - doing the actual change - and then adding the multiEvent again.

Author:
Peter Johan Salomonsen

Constructor Summary
MultiEventChangeRecorder(java.lang.String changeText, MultiEvent multiEvent)
          When invoking this constructor all the history recording and the actual change will be done
 
Method Summary
abstract  void doChange(MultiEvent multiEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiEventChangeRecorder

public MultiEventChangeRecorder(java.lang.String changeText,
                                MultiEvent multiEvent)
When invoking this constructor all the history recording and the actual change will be done

Parameters:
changeText - - The text to be visible in the undo menu for this change
multiEvent - - The multiEvent you want to change
Method Detail

doChange

public abstract void doChange(MultiEvent multiEvent)