Repository navigation
Expand file tree
/
Copy pathNodeChildListener.java
More file actions
62 lines (54 loc) · 2.01 KB
/
Copy pathNodeChildListener.java
File metadata and controls
62 lines (54 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package nodebox.node;
import java.util.EventListener;
/**
* A NodeChildListener responds to events happening in the children of this node.
*/
public interface NodeChildListener extends EventListener {
/**
* Invoked when a node was added to the network.
*
* @param source the node this event comes from
* @param child the child added to the source node
*/
public void childAdded(Node source, Node child);
/**
* Invoked when a node was removed from the network.
* The node property in the network event indicates the removed node.
*
* @param source the node this event comes from
* @param child the child removed from the source node
*/
public void childRemoved(Node source, Node child);
/**
* Invoked when a connection was added to the node.
*
* @param source the node this event comes from
* @param connection the new connection
*/
public void connectionAdded(Node source, Connection connection);
/**
* Invoked when a connection was removed from the node.
*
* @param source the node this event comes from
* @param connection the removed connection
*/
public void connectionRemoved(Node source, Connection connection);
/**
* Invoked when the rendered child was changed.
*
* @param source the node this event comes from
* @param child the new rendered child
*/
public void renderedChildChanged(Node source, Node child);
/**
* Invoked when an attribute change was made to the child.
* <p/>
* This could happen when the node was renamed or one if its parameters was added or deleted.
* This event does not fire when the value of a node was changed, only its metadata.
*
* @param source the node this event comes from
* @param child the child that was changed
* @param attribute the changed attribute
*/
public void childAttributeChanged(Node source, Node child, NodeAttributeListener.Attribute attribute);
}