com.tensegrity.composite.event.view
Class AbstractCompositeViewEvent

java.lang.Object
  extended bycom.tensegrity.composite.event.view.AbstractCompositeViewEvent
All Implemented Interfaces:
CompositeRootEvent, CompositeViewEvent
Direct Known Subclasses:
ViewAddCompositeEvent, ViewAddCompositesEvent, ViewCompositeOrderChangeEvent, ViewModeChangeEvent, ViewMoveCompositesEvent, ViewParameterChangeEvent, ViewRemoveCompositeEvent, ViewRemoveCompositesEvent, ViewScrolledEvent, ViewSelectionChangeEvent

public abstract class AbstractCompositeViewEvent
extends java.lang.Object
implements CompositeViewEvent

Abstract base class for CompositeViewEvents.

Version:
$Id: AbstractCompositeViewEvent.java,v 1.3 2005/05/06 06:26:04 MichaelKegel Exp $
Author:
MichaelKegel

Field Summary
protected  BaseComposite composite
          Needed for events belonging to a Composite like AddComposite or RemoveComposite.
protected  java.util.List composites
          Needed for an event that belongs to a list of Composites like ViewRemoveCompositesEvent.
protected  CompositeView compositeView
          The CompositeView the event has occured on
 
Constructor Summary
AbstractCompositeViewEvent(CompositeView compositeView)
          Constructor for AbstractCompositeViewEvent.
AbstractCompositeViewEvent(CompositeView compositeView, BaseComposite composite)
          Constructor for AbstractCompositeViewEvent.
AbstractCompositeViewEvent(CompositeView compositeView, java.util.List composites)
          Constructor for AbstractCompositeViewEvent.
 
Method Summary
 CompositeView getCompositeView()
          returns the CompositeView which generates the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compositeView

protected CompositeView compositeView
The CompositeView the event has occured on


composite

protected BaseComposite composite
Needed for events belonging to a Composite like AddComposite or RemoveComposite.


composites

protected java.util.List composites
Needed for an event that belongs to a list of Composites like ViewRemoveCompositesEvent.

Constructor Detail

AbstractCompositeViewEvent

public AbstractCompositeViewEvent(CompositeView compositeView)
Constructor for AbstractCompositeViewEvent.

Parameters:
compositeView - the CompositeView the event belongs to

AbstractCompositeViewEvent

public AbstractCompositeViewEvent(CompositeView compositeView,
                                  BaseComposite composite)
Constructor for AbstractCompositeViewEvent.

Parameters:
compositeView - the CompositeView the event belongs to
composite - the Composite the event belongs to

AbstractCompositeViewEvent

public AbstractCompositeViewEvent(CompositeView compositeView,
                                  java.util.List composites)
Constructor for AbstractCompositeViewEvent.

Parameters:
compositeView - the CompositeView the event belongs to
composites - the list of Composites the event belongs to
Method Detail

getCompositeView

public CompositeView getCompositeView()
Description copied from interface: CompositeViewEvent
returns the CompositeView which generates the event.

Specified by:
getCompositeView in interface CompositeViewEvent
Returns:
CompositeView the CompositeView the event occurs at


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.