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

Method Summary
 void addMediatorListener(EventMediatorListener listener)
          Adds the given EventMediatorListener to this composite event mediator, so that he will be informed on all occuring composite events.
 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.
 
Methods inherited from interface com.tensegrity.composite.event.CompositeLineListener
compositeChanged, compositeManipulating, compositeMoving, compositePostManipulating, compositePostMoving, compositePreManipulating, compositePreMoving
 
Methods inherited from interface com.tensegrity.composite.event.BaseCompositeListener
mouseClick, mouseDown, mouseEnter, mouseExit, mouseUp, postSelect, preSelect
 
Methods inherited from interface com.tensegrity.composite.event.CompositeListener
compositeChanged, compositeMoving, compositePostMoving, compositePostResizing, compositePreMoving, compositePreResizing, compositeResizing
 
Methods inherited from interface com.tensegrity.composite.event.CompositeGroupListener
groupAddedComposite, groupAddedComposites, groupCompositeOrderChanged, groupFoldStateChanged, groupFoldStatePreChange, groupRemovedComposite, groupRemovedComposites, groupSelectionChanged, groupSizeAdjusted
 
Methods inherited from interface com.tensegrity.composite.event.CompositeViewListener
viewAddedComposite, viewAddedComposites, viewCompositeOrderChanged, viewModeChanged, viewParameterChanged, viewRemovedComposite, viewRemovedComposites, viewScrolled, viewSelectionChanged
 
Methods inherited from interface com.tensegrity.generic.attribute.event.AttributableOnSetListener
attributesChanged
 

Method Detail

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.