com.tensegrity.composite.event
Interface EventMediator
- All Superinterfaces:
- AttributableOnSetListener, BaseCompositeListener, CompositeGroupListener, CompositeLineListener, CompositeListener, CompositeViewListener, EventListenerTag
- public interface EventMediator
- extends CompositeLineListener, CompositeListener, CompositeGroupListener, CompositeViewListener, AttributableOnSetListener
The EventMediator facilitates to gain access to all
CompositeLine events, Composite events,
CompositeGroup events and CompositeView events.
The EventMediator is allways an instance variable of a
CompositeView and hasn't to be implemented nor registered to a
BaseComposite instance. This is a mandatory commandment!
An implementation of a CompositeView allways comes with its own
EventMediator implementation and is a major part of the
architecture.
To be informed about all occuring events an object has to implement the
EventMediatorListener interface and then registered at a
specific CompositeView as mediator event listener.
- Version:
- $Id: EventMediator.java,v 1.3 2005/04/01 15:45:16 MichaelKegel Exp $
- Author:
- MichaelKegel
- See Also:
EventMediatorListener,
CompositeView
addMediatorListener
public void addMediatorListener(EventMediatorListener listener)
- Adds the given
EventMediatorListener to this composite event
mediator, so that he will be informed on all occuring composite events.
- Parameters:
listener - the listener to add
removeMediatorListener
public void removeMediatorListener(EventMediatorListener listener)
- Removes the given
EventMediatorListener from this composite
event mediator, so that he will no langer be informed on occuring
composite events.
- Parameters:
listener - the listener to remove
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.