org.dishevelled.observable.graph.event
Interface VetoableGraphChangeListener<N,E>

Type Parameters:
N - node value type
E - edge value type
All Superinterfaces:
EventListener

public interface VetoableGraphChangeListener<N,E>
extends EventListener

A listener that receives notification of vetoable changes about to be made to an observable graph.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Method Summary
 void willClear(VetoableGraphChangeEvent<N,E> e)
          Notify this listener that a vetoable clear change is about to be made to the observable graph.
 void willCreateEdge(VetoableGraphChangeEvent<N,E> e)
          Notify this listener that a vetoable create edge change is about to be made to the observable graph.
 void willCreateNode(VetoableGraphChangeEvent<N,E> e)
          Notify this listener that a vetoable create node change is about to be made to the observable graph.
 void willRemoveEdge(VetoableGraphChangeEvent<N,E> e)
          Notify this listener that a vetoable remove edge change is about to be made to the observable graph.
 void willRemoveNode(VetoableGraphChangeEvent<N,E> e)
          Notify this listener that a vetoable remove node change is about to be made to the observable graph.
 

Method Detail

willClear

void willClear(VetoableGraphChangeEvent<N,E> e)
               throws GraphChangeVetoException
Notify this listener that a vetoable clear change is about to be made to the observable graph.

Parameters:
e - graph change event
Throws:
GraphChangeVetoException - if this listener wishes the change about to be made to be rolled back

willCreateNode

void willCreateNode(VetoableGraphChangeEvent<N,E> e)
                    throws GraphChangeVetoException
Notify this listener that a vetoable create node change is about to be made to the observable graph.

Parameters:
e - graph change event
Throws:
GraphChangeVetoException - if this listener wishes the change about to be made to be rolled back

willCreateEdge

void willCreateEdge(VetoableGraphChangeEvent<N,E> e)
                    throws GraphChangeVetoException
Notify this listener that a vetoable create edge change is about to be made to the observable graph.

Parameters:
e - graph change event
Throws:
GraphChangeVetoException - if this listener wishes the change about to be made to be rolled back

willRemoveNode

void willRemoveNode(VetoableGraphChangeEvent<N,E> e)
                    throws GraphChangeVetoException
Notify this listener that a vetoable remove node change is about to be made to the observable graph.

Parameters:
e - graph change event
Throws:
GraphChangeVetoException - if this listener wishes the change about to be made to be rolled back

willRemoveEdge

void willRemoveEdge(VetoableGraphChangeEvent<N,E> e)
                    throws GraphChangeVetoException
Notify this listener that a vetoable remove edge change is about to be made to the observable graph.

Parameters:
e - graph change event
Throws:
GraphChangeVetoException - if this listener wishes the change about to be made to be rolled back


Copyright (c) 2008-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).