uk.ac.man.bioinf.sequence.event
Interface VetoableSequenceListener

All Superinterfaces:
EventListener, SequenceListener
All Known Subinterfaces:
SequenceAlignment
All Known Implementing Classes:
AbstractSequenceAlignment, EmptySequenceAlignment, GroupSequenceAlignment, SequenceAlignmentTest

public interface VetoableSequenceListener
extends SequenceListener

VetoableSequenceListener.java When a sequence wishes to change it should signal listeners of this type first before it makes the change. If none of these listeners veto the change, then it make occur after which listeners to type SequenceChangeListener (including all of the VetoableSequenceListeners ) should be signalled, at which stage the change is unvetoable. Because there are two types of listener it is not necessary to resignal the VetoableSequenceListener's if a change is latter veto'd Created: Tue Feb 15 19:28:56 2000

Version:
$Id: VetoableSequenceListener.java,v 1.4 2001/04/11 17:04:43 lord Exp $
Author:
Phillip Lord

Method Summary
 void vetoableChangeOccurred(VetoableSequenceEvent event)
          Method signalled before a prospective change occurs
 
Methods inherited from interface uk.ac.man.bioinf.sequence.event.SequenceListener
changeOccurred
 

Method Detail

vetoableChangeOccurred

public void vetoableChangeOccurred(VetoableSequenceEvent event)
                            throws SequenceVetoException
Method signalled before a prospective change occurs

Parameters:
event - the event
Throws:
SequenceVetoException - if the listener does not wish the event to occur.