|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.dishevelled.observable.graph.event.VetoableGraphChangeEvent<N,E>
N - node value typeE - edge value typepublic class VetoableGraphChangeEvent<N,E>
An event object representing a vetoable change about to be made to an observable graph.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
VetoableGraphChangeEvent(ObservableGraph<N,E> source)
Create a new vetoable graph change event with the specified observable graph as the event source. |
|
VetoableGraphChangeEvent(ObservableGraph<N,E> source,
Edge<N,E> edge)
Create a new vetoable graph change event with the specified observable graph as the event source and the specified about to be removed edge. |
|
VetoableGraphChangeEvent(ObservableGraph<N,E> source,
N nodeValue)
Create a new vetoable graph change event with the specified observable graph as the event source and the specified node value for an about to be created node. |
|
VetoableGraphChangeEvent(ObservableGraph<N,E> source,
Node<N,E> node)
Create a new vetoable graph change event with the specified observable graph as the event source and the specified about to be removed node. |
|
VetoableGraphChangeEvent(ObservableGraph<N,E> source,
Node<N,E> sourceNode,
Node<N,E> targetNode,
E edgeValue)
Create a new vetoable graph change event with the specified observable graph as the event source and specified source node, target node, and edge value for an about to be created edge. |
|
| Method Summary | |
|---|---|
Edge<N,E> |
getEdge()
Return the about to be removed edge, if any. |
E |
getEdgeValue()
Return the edge value for the about to be created edge, if any. |
Node<N,E> |
getNode()
Return the about to be removed node, if any. |
N |
getNodeValue()
Return the node value for the about to be created node, if any. |
ObservableGraph<N,E> |
getObservableGraph()
Return the source of this vetoable graph change event as an ObservableGraph. |
Node<N,E> |
getSourceNode()
Return the source node for the about to be created edge, if any. |
Node<N,E> |
getTargetNode()
Return the target node for the about to be created edge, if any. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VetoableGraphChangeEvent(ObservableGraph<N,E> source)
source - source of the event, must not be null
public VetoableGraphChangeEvent(ObservableGraph<N,E> source,
Node<N,E> node)
source - source of the event, must not be nullnode - about to be removed node
public VetoableGraphChangeEvent(ObservableGraph<N,E> source,
Edge<N,E> edge)
source - source of the event, must not be nulledge - about to be removed edge
public VetoableGraphChangeEvent(ObservableGraph<N,E> source,
N nodeValue)
source - source of the event, must not be nullnodeValue - node value for an about to be created node
public VetoableGraphChangeEvent(ObservableGraph<N,E> source,
Node<N,E> sourceNode,
Node<N,E> targetNode,
E edgeValue)
source - source of the event, must not be nullsourceNode - source node for an about to be created edgetargetNode - target node for an about to be created edgeedgeValue - edge value for an about to be created edge| Method Detail |
|---|
public final ObservableGraph<N,E> getObservableGraph()
ObservableGraph.
ObservableGraphpublic final Node<N,E> getNode()
public final Edge<N,E> getEdge()
public final N getNodeValue()
public final Node<N,E> getSourceNode()
public final Node<N,E> getTargetNode()
public final E getEdgeValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||