|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.ac.man.bioinf.sequence.event.SequenceListenerSupport
SequenceListenerSupport.java This class provides support and handles the listeners to a specific sequence. This ofcourse means there is one support object for one sequence object.
Created: Wed Feb 16 19:28:44 2000| Constructor Summary | |
SequenceListenerSupport()
|
|
| Method Summary | |
void |
addSequenceListener(SequenceListener listener)
Adds a sequence listener object to a Vector of listeners. |
void |
addVetoableSequenceListener(VetoableSequenceListener listener)
Adds a vetoable sequence listener to the Vector of listeners. |
void |
fireSequenceEvent(SequenceEvent event)
This function fires the sequence event to all the interested listeners. |
void |
fireVetoableSequenceEvent(VetoableSequenceEvent event)
This function fires the vetoable event to the vetoable listeners. |
boolean |
hasListeners()
There is really no point in making an event object if there are no listeners. |
void |
removeSequenceListener(SequenceListener listener)
Removes a sequence listener. |
void |
removeVetoableSequenceListener(VetoableSequenceListener listener)
Removes a vetoable sequence listener. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SequenceListenerSupport()
| Method Detail |
public boolean hasListeners()
boolean valuepublic void fireSequenceEvent(SequenceEvent event)
event - the event to be firedVetoableSequenceListener,
SequenceListener
public void fireVetoableSequenceEvent(VetoableSequenceEvent event)
throws SequenceVetoException
event - the event to be fired
SequenceVetoExceptionpublic void addSequenceListener(SequenceListener listener)
listener - the sequence listenerpublic void removeSequenceListener(SequenceListener listener)
listener - the sequence listenerpublic void addVetoableSequenceListener(VetoableSequenceListener listener)
listener - the vetoable sequence listenerpublic void removeVetoableSequenceListener(VetoableSequenceListener listener)
listener - the vetoable sequence listener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||