com.tensegrity.composite.event
Class VetoableEventMediatorAdapter

java.lang.Object
  extended bycom.tensegrity.composite.event.VetoableEventMediatorAdapter
All Implemented Interfaces:
EventListenerTag, VetoableBaseCompositeListener, VetoableCompositeGroupListener, VetoableCompositeLineListener, VetoableCompositeListener, VetoableCompositeViewListener, VetoableEventMediatorListener

public class VetoableEventMediatorAdapter
extends java.lang.Object
implements VetoableEventMediatorListener

The VetoableEventMediatorAdapter class implements the VetoableEventMediatorListener interface and overrides all methods declared there with methods which have no functionality inside. So that, when creating a VetoableEventMediatorListener not all of the methods have to be overridden, only the methods which are from interest.

Version:
$Id: VetoableEventMediatorAdapter.java,v 1.3 2005/08/11 09:27:55 MichaelKegel Exp $
Author:
MichaelKegel

Constructor Summary
VetoableEventMediatorAdapter()
          Constructor for VetoableEventMediatorAdapter.
 
Method Summary
 void vetoableCompositeManipulating(LineManipulationEvent event)
           This method is called while a CompositeLine is being manipulated.
 void vetoableCompositeMoving(LineMoveEvent event)
           This method is called while a CompositeLine is being moved around.
 void vetoableCompositeMoving(MoveEvent event)
           This method is called while a Composite is being moved around.
 void vetoableCompositePreManipulating(LineManipulationEvent event)
           This method is called before the manipulation of a CompositeLine starts.
 void vetoableCompositePreMoving(LineMoveEvent event)
          This method is called before a CompositeLine is being moved around.
 void vetoableCompositePreMoving(MoveEvent event)
          This method is called before a Composite is being moved around.
 void vetoableCompositePreResizing(ResizeEvent event)
          This method is called before a Composite is about to be resized.
 void vetoableCompositeResizing(ResizeEvent event)
           This method is called while a Composite is being resized.
 void vetoablePreSelect(BCSelectEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VetoableEventMediatorAdapter

public VetoableEventMediatorAdapter()
Constructor for VetoableEventMediatorAdapter.

Method Detail

vetoablePreSelect

public void vetoablePreSelect(BCSelectEvent event)
                       throws BaseCompositeEventVetoException
Specified by:
vetoablePreSelect in interface VetoableBaseCompositeListener
Throws:
BaseCompositeEventVetoException

vetoableCompositePreManipulating

public void vetoableCompositePreManipulating(LineManipulationEvent event)
                                      throws CompositeLineEventVetoException
Description copied from interface: VetoableCompositeLineListener

This method is called before the manipulation of a CompositeLine starts.

Throwing a CompositeLineEventVetoException prevents the CompositeLine against manipulation completely.

Specified by:
vetoableCompositePreManipulating in interface VetoableCompositeLineListener
Parameters:
event - the LineManipulationEvent event instance
Throws:
CompositeLineEventVetoException - is thrown to completely prevent the CompositeLine against manipulation.
See Also:
LineManipulationEvent

vetoableCompositeManipulating

public void vetoableCompositeManipulating(LineManipulationEvent event)
                                   throws CompositeLineEventVetoException
Description copied from interface: VetoableCompositeLineListener

This method is called while a CompositeLine is being manipulated.

Throwing a CompositeLineEventVetoException prevents the CompositeLine against manipulation. For instance this can be used to avoid that a single point of the CompositeLine is being moved to a location that is not acceptable.

Notice that this method is only called while interaction with the CompositeLine is taking place and not when manipulate it by the interface methods.

Specified by:
vetoableCompositeManipulating in interface VetoableCompositeLineListener
Parameters:
event - the LineManipulationEvent event instance
Throws:
CompositeLineEventVetoException
See Also:
LineManipulationEvent

vetoableCompositePreMoving

public void vetoableCompositePreMoving(LineMoveEvent event)
                                throws CompositeLineEventVetoException
Description copied from interface: VetoableCompositeLineListener
This method is called before a CompositeLine is being moved around. Throwing a CompositeLineEventVetoException prevents movement of the CompositeLine completely.

Specified by:
vetoableCompositePreMoving in interface VetoableCompositeLineListener
Parameters:
event - the LineMoveEvent
Throws:
CompositeLineEventVetoException - is thrown to completely prevent the CompositeLine of movement.
See Also:
LineMoveEvent

vetoableCompositeMoving

public void vetoableCompositeMoving(LineMoveEvent event)
                             throws CompositeLineEventVetoException
Description copied from interface: VetoableCompositeLineListener

This method is called while a CompositeLine is being moved around. Throwing a CompositeLineEventVetoException prevents movement of the CompositeLine to the actual position. For instance this can be used to avoid that the CompositeLine is being moved to a location that is not acceptable.

Notice that this method is only called while interaction with the CompositeLine is taking place and not when moving it by the interface methods.

Specified by:
vetoableCompositeMoving in interface VetoableCompositeLineListener
Parameters:
event - the LineMoveEvent
Throws:
CompositeLineEventVetoException - is thrown to prevent the CompositeLine of movement to the current location
See Also:
LineMoveEvent

vetoableCompositePreMoving

public void vetoableCompositePreMoving(MoveEvent event)
                                throws CompositeEventVetoException
Description copied from interface: VetoableCompositeListener
This method is called before a Composite is being moved around. Throwing a CompositeEventVetoException prevents movement of the Composite completely.

Specified by:
vetoableCompositePreMoving in interface VetoableCompositeListener
Parameters:
event - the MoveEvent
Throws:
CompositeEventVetoException - is thrown to completely prevent the Composite of movement.
See Also:
MoveEvent

vetoableCompositeMoving

public void vetoableCompositeMoving(MoveEvent event)
                             throws CompositeEventVetoException
Description copied from interface: VetoableCompositeListener

This method is called while a Composite is being moved around. Throwing a CompositeEventVetoException prevents movement of the Composite to the actual position. For instance this can be used to avoid that the Composite is being moved to a location that is not acceptable.

Notice that this method is only called while interaction with the Composite is taking place and not when moving it by the interface methods.

Specified by:
vetoableCompositeMoving in interface VetoableCompositeListener
Parameters:
event - the MoveEvent
Throws:
CompositeEventVetoException - is thrown to prevent the Composite of movement to the current location
See Also:
MoveEvent

vetoableCompositePreResizing

public void vetoableCompositePreResizing(ResizeEvent event)
                                  throws CompositeEventVetoException
Description copied from interface: VetoableCompositeListener
This method is called before a Composite is about to be resized. Throwing a CompositeEventVetoException prevents the Composite against resizement completely.

Specified by:
vetoableCompositePreResizing in interface VetoableCompositeListener
Parameters:
event - the ResizeEvent
Throws:
CompositeEventVetoException - is thrown to completely prevent the Composite of resizement.
See Also:
ResizeEvent

vetoableCompositeResizing

public void vetoableCompositeResizing(ResizeEvent event)
                               throws CompositeEventVetoException
Description copied from interface: VetoableCompositeListener

This method is called while a Composite is being resized. Throwing a CompositeEventVetoException prevents the Composite against resizement to the actual size. For instance this can be used to avoid that the Composite is being resized to a size that is not acceptable.

Notice that this method is only called while interaction with the Composite is taking place and not when resize it by the interface methods.

Specified by:
vetoableCompositeResizing in interface VetoableCompositeListener
Parameters:
event - the ResizeEvent
Throws:
CompositeEventVetoException - is thrown to prevent the Composite of resize to the current size
See Also:
ResizeEvent


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