Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorCore/Events/IMutationEvent.cs @ 13777

Last change on this file since 13777 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 7.5 KB
Line 
1using System;
2
3namespace SharpVectors.Dom.Events
4{
5  /// <summary>
6  /// The <see cref="IMutationEvent">IMutationEvent</see> interface
7  /// provides specific contextual information associated with
8  /// Mutation events.
9  /// </summary>
10  /// <remarks>
11  /// Note: To create an instance of the
12  /// <see cref="IMutationEvent">IMutationEvent</see> interface, use the
13  /// feature string <c>"MutationEvent"</c> as the value of the input
14  /// parameter used with the
15  /// <see cref="IDocumentEvent.CreateEvent">IDocumentEvent.CreateEvent</see>
16  /// method.
17  /// </remarks>
18  public interface IMutationEvent
19    : IEvent
20  {
21    /// <summary>
22    /// <see cref="RelatedNode">RelatedNode</see> is used to identify a
23    /// secondary node related to a mutation event.
24    /// </summary>
25    /// <remarks>
26    /// For example, if a
27    /// mutation event is dispatched to a node indicating that its parent
28    /// has changed, the <see cref="RelatedNode">RelatedNode</see> is the
29    /// changed parent. If an event is instead dispatched to a subtree
30    /// indicating a node was changed within it, the
31    /// <see cref="RelatedNode">RelatedNode</see> is the changed node. In
32    /// the case of the
33    /// <see cref="AttrChangeType.Modification">AttrChangeType.Modification</see>
34    /// event it indicates the <see cref="IAttr">IAttr</see> node which
35    /// was modified, added, or removed.
36    /// </remarks>
37    INode RelatedNode
38    {
39      get;
40    }
41   
42    /// <summary>
43    /// <see cref="PrevValue">PrevValue</see> indicates the previous value
44    /// of the <see cref="IAttr">IAttr</see> node in
45    /// <see cref="AttrChangeType.Modification">AttrChangeType.Modification</see>
46    /// events, and of the <see cref="ICharacterData">ICharacterData</see>
47    /// node in DOMCharacterDataModified events.
48    /// </summary>
49    string PrevValue
50    {
51      get;
52    }
53   
54    /// <summary>
55    /// <see cref="NewValue">NewValue</see> indicates the new value of the
56    /// <see cref="IAttr">IAttr</see> node in DOMAttrModified events, and
57    /// of the <see cref="ICharacterData">ICharacterData</see> node in
58    /// DOMCharacterDataModified events.
59    /// </summary>
60    string NewValue
61    {
62      get;
63    }
64   
65    /// <summary>
66    /// <see cref="AttrName">AttrName</see> indicates the name of the
67    /// changed <see cref="IAttr">Attr</see> node in a
68    /// <see cref="AttrChangeType.Modification">AttrChangeType.Modification</see>
69    /// event.
70    /// </summary>
71    string AttrName
72    {
73      get;
74    }
75   
76    /// <summary>
77    /// <c>attrChange</c> indicates the type of change which triggered
78    /// the DOMAttrModified event. The values can be
79    /// <see cref="AttrChangeType.Modification">AttrChangeType.Modification</see>,
80    /// <see cref="AttrChangeType.Addition">AttrChangeType.Addition</see>,
81    /// or
82    /// <see cref="AttrChangeType.Removal">AttrChangeType.Removal</see>.
83    /// </summary>
84    AttrChangeType AttrChange
85    {
86      get;
87    }
88   
89    /// <summary>
90    /// The <see cref="InitMutationEvent">InitMutationEvent</see> method
91    /// is used to initialize the value of a
92    /// <see cref="IMutationEvent">IMutationEvent</see> created using the
93    /// <see cref="IDocumentEvent.CreateEvent">IDocumentEvent.CreateEvent</see>
94    /// method. This method may only be called before the
95    /// <see cref="IMutationEvent">IMutationEvent</see> has been
96    /// dispatched via the
97    /// <see cref="IEventTarget.DispatchEvent">IEventTarget.DispatchEvent</see>
98    /// method, though it may be called multiple times before being
99    /// dispatched if necessary. If called multiple times, the final
100    /// invocation takes precedence.
101    /// </summary>
102    /// <param name="typeArg">
103    /// Specifies the event type.
104    /// </param>
105    /// <param name="canBubbleArg">
106    /// Specifies whether or not the event can bubble. This parameter
107    /// overrides the intrinsic bubbling behavior of the event.
108    /// </param>
109    /// <param name="cancelableArg">
110    /// Specifies whether or not the event's default action can be
111    /// prevented. This parameter overrides the intrinsic cancelable
112    /// behavior of the event.
113    /// </param>
114    /// <param name="relatedNodeArg">
115    /// Specifies the <see cref="IEvent">IEvent</see>'s related Node.
116    /// </param>
117    /// <param name="prevValueArg">
118    /// Specifies the <see cref="IEvent">IEvent</see>'s
119    /// <see cref="PrevValue">PrevValue</see> attribute. This value may
120    /// be <c>null</c>.
121    /// </param>
122    /// <param name="newValueArg">
123    /// Specifies the <see cref="IEvent">IEvent</see>'s
124    /// <see cref="NewValue">NewValue</see> attribute. This value may be
125    /// <c>null</c>.
126    /// </param>
127    /// <param name="attrNameArg">
128    /// Specifies the <see cref="IEvent">IEvent</see>'s
129    /// <see cref="AttrName">AttrName</see> attribute. This value may be
130    /// <c>null</c>.
131    /// </param>
132    /// <param name="attrChangeArg">
133    /// Specifies the <see cref="IEvent">IEvent</see>'s
134    /// <see cref="AttrChange">AttrChange</see> attribute.
135    /// </param>
136    void InitMutationEvent(
137      string typeArg,
138      bool canBubbleArg,
139      bool cancelableArg,
140      INode relatedNodeArg,
141      string prevValueArg,
142      string newValueArg,
143      string attrNameArg,
144      AttrChangeType attrChangeArg);
145   
146    /// <summary>
147    /// The <see cref="InitMutationEventNs">InitMutationEventNs</see>
148    /// method is used to initialize the value of a
149    /// <see cref="IMutationEvent">IMutationEvent</see> created using the
150    /// <see cref="IDocumentEvent.CreateEvent">IDocumentEvent.CreateEvent</see>
151    /// method.
152    /// </summary>
153    /// <remarks>
154    /// This method may only be called before the
155    /// <see cref="IMutationEvent">IMutationEvent</see> has been
156    /// dispatched via the
157    /// <see cref="IEventTarget.DispatchEvent">IEventTarget.DispatchEvent</see>
158    /// method, though it may be called multiple times during that phase
159    /// if necessary. If called multiple times, the final invocation
160    /// takes precedence.
161    /// </remarks>
162    /// <param name="namespaceUri">
163    /// Specifies the
164    /// <see href="http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/glossary.html#dt-namespaceURI">namespace URI</see>
165    /// associated with this event, or null if the application wish to
166    /// have no namespace.
167    /// </param>
168    /// <param name="typeArg">
169    /// Specifies the event type.
170    /// </param>
171    /// <param name="canBubbleArg">
172    /// Specifies whether or not the event can bubble.
173    /// </param>
174    /// <param name="cancelableArg">
175    /// Specifies whether or not the event's default action can be
176    /// prevented.
177    /// </param>
178    /// <param name="relatedNodeArg">
179    /// Specifies the <see cref="IEvent">IEvent</see>'s related Node.
180    /// </param>
181    /// <param name="prevValueArg">
182    /// Specifies the <see cref="IEvent">IEvent</see>'s
183    /// <see cref="PrevValue">PrevValue</see> attribute. This value may
184    /// be <c>null</c>.
185    /// </param>
186    /// <param name="newValueArg">
187    /// Specifies the <see cref="IEvent">IEvent</see>'s
188    /// <see cref="NewValue">NewValue</see> attribute. This value may be
189    /// <c>null</c>.
190    /// </param>
191    /// <param name="attrNameArg">
192    /// Specifies the <see cref="IEvent">IEvent</see>'s
193    /// <see cref="AttrName">AttrName</see> attribute. This value may be
194    /// <c>null</c>.
195    /// </param>
196    /// <param name="attrChangeArg">
197    /// Specifies the <see cref="IEvent">IEvent</see>'s
198    /// <see cref="AttrChange">AttrChange</see> attribute.
199    /// </param>
200    void InitMutationEventNs(
201      string namespaceUri,
202      string typeArg,
203      bool canBubbleArg,
204      bool cancelableArg,
205      INode relatedNodeArg,
206      string prevValueArg,
207      string newValueArg,
208      string attrNameArg,
209      AttrChangeType attrChangeArg);
210  }
211}
Note: See TracBrowser for help on using the repository browser.