Last change
on this file since 13348 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
1.9 KB
|
Line | |
---|
1 | using System;
|
---|
2 |
|
---|
3 | namespace SharpVectors.Dom.Events
|
---|
4 | {
|
---|
5 | /// <summary>
|
---|
6 | /// Summary description for MutationEvent.
|
---|
7 | /// </summary>
|
---|
8 | public class MutationEvent : Event, IMutationEvent
|
---|
9 | {
|
---|
10 | #region Private Fields
|
---|
11 |
|
---|
12 | private INode relatedNode;
|
---|
13 | private string prevValue;
|
---|
14 | private string newValue;
|
---|
15 | private string attrName;
|
---|
16 | private AttrChangeType attrChange;
|
---|
17 |
|
---|
18 | #endregion
|
---|
19 |
|
---|
20 | #region Constructors
|
---|
21 |
|
---|
22 | public MutationEvent()
|
---|
23 | {
|
---|
24 | }
|
---|
25 |
|
---|
26 | #endregion
|
---|
27 |
|
---|
28 | #region IMutationEvent interface
|
---|
29 |
|
---|
30 | public INode RelatedNode
|
---|
31 | {
|
---|
32 | get
|
---|
33 | {
|
---|
34 | return relatedNode;
|
---|
35 | }
|
---|
36 | }
|
---|
37 |
|
---|
38 | public string PrevValue
|
---|
39 | {
|
---|
40 | get
|
---|
41 | {
|
---|
42 | return prevValue;
|
---|
43 | }
|
---|
44 | }
|
---|
45 |
|
---|
46 | public string NewValue
|
---|
47 | {
|
---|
48 | get
|
---|
49 | {
|
---|
50 | return newValue;
|
---|
51 | }
|
---|
52 | }
|
---|
53 |
|
---|
54 | public string AttrName
|
---|
55 | {
|
---|
56 | get
|
---|
57 | {
|
---|
58 | return attrName;
|
---|
59 | }
|
---|
60 | }
|
---|
61 |
|
---|
62 | public AttrChangeType AttrChange
|
---|
63 | {
|
---|
64 | get
|
---|
65 | {
|
---|
66 | return attrChange;
|
---|
67 | }
|
---|
68 | }
|
---|
69 |
|
---|
70 | public void InitMutationEvent(
|
---|
71 | string eventType,
|
---|
72 | bool bubbles,
|
---|
73 | bool cancelable,
|
---|
74 | INode relatedNode,
|
---|
75 | string prevValue,
|
---|
76 | string newValue,
|
---|
77 | string attrName,
|
---|
78 | AttrChangeType attrChange)
|
---|
79 | {
|
---|
80 | InitEvent(eventType, bubbles, cancelable);
|
---|
81 |
|
---|
82 | this.relatedNode = relatedNode;
|
---|
83 | this.prevValue = prevValue;
|
---|
84 | this.newValue = newValue;
|
---|
85 | this.attrName = attrName;
|
---|
86 | this.attrChange = attrChange;
|
---|
87 | }
|
---|
88 |
|
---|
89 | public void InitMutationEventNs(
|
---|
90 | string namespaceUri,
|
---|
91 | string eventType,
|
---|
92 | bool bubbles,
|
---|
93 | bool cancelable,
|
---|
94 | INode relatedNode,
|
---|
95 | string prevValue,
|
---|
96 | string newValue,
|
---|
97 | string attrName,
|
---|
98 | AttrChangeType attrChange)
|
---|
99 | {
|
---|
100 | InitEventNs(namespaceUri, eventType, bubbles, cancelable);
|
---|
101 |
|
---|
102 | this.relatedNode = relatedNode;
|
---|
103 | this.prevValue = prevValue;
|
---|
104 | this.newValue = newValue;
|
---|
105 | this.attrName = attrName;
|
---|
106 | this.attrChange = attrChange;
|
---|
107 | }
|
---|
108 |
|
---|
109 | #endregion
|
---|
110 | }
|
---|
111 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.