Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorDom/Attribute.cs @ 13451

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

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

File size: 2.2 KB
Line 
1using System;
2using System.Xml;
3
4using SharpVectors.Dom.Events;
5
6namespace SharpVectors.Dom
7{
8  /// <summary>
9  /// Summary description for Attribute.
10  /// </summary>
11  public class Attribute : XmlAttribute, IAttribute, INode, IEventTargetSupport
12  {
13    #region Private Fields
14   
15    private EventTarget eventTarget;
16   
17    #endregion
18   
19    #region Constructors
20   
21    public Attribute(
22      string prefix,
23      string localName,
24      string namespaceUri,
25      Document document)
26      : base(prefix, localName, namespaceUri, document)
27    {
28      eventTarget = new EventTarget(this);
29    }
30   
31    #endregion
32   
33    #region IEventTarget interface
34   
35    #region Methods
36   
37    #region DOM Level 2
38   
39    void IEventTarget.AddEventListener(
40      string type,
41      EventListener listener,
42      bool useCapture)
43    {
44      eventTarget.AddEventListener(type, listener, useCapture);
45    }
46   
47    void IEventTarget.RemoveEventListener(
48      string type,
49      EventListener listener,
50      bool useCapture)
51    {
52      eventTarget.RemoveEventListener(type, listener, useCapture);
53    }
54   
55    bool IEventTarget.DispatchEvent(
56      IEvent @event)
57    {
58      return eventTarget.DispatchEvent(@event);
59    }
60    #endregion
61   
62    #region DOM Level 3 Experimental
63   
64    void IEventTarget.AddEventListenerNs(
65      string namespaceUri,
66      string type,
67      EventListener listener,
68      bool useCapture,
69      object eventGroup)
70    {
71      eventTarget.AddEventListenerNs(namespaceUri, type, listener, useCapture, eventGroup);
72    }
73   
74    void IEventTarget.RemoveEventListenerNs(
75      string namespaceUri,
76      string type,
77      EventListener listener,
78      bool useCapture)
79    {
80      eventTarget.RemoveEventListenerNs(namespaceUri, type, listener, useCapture);
81    }
82   
83    bool IEventTarget.WillTriggerNs(
84      string namespaceUri,
85      string type)
86    {
87      return eventTarget.WillTriggerNs(namespaceUri, type);
88    }
89   
90    bool IEventTarget.HasEventListenerNs(
91      string namespaceUri,
92      string type)
93    {
94      return eventTarget.HasEventListenerNs(namespaceUri, type);
95    }
96   
97    #endregion
98   
99    #endregion
100   
101    #endregion
102   
103    #region NON-DOM
104   
105    void IEventTargetSupport.FireEvent(
106      IEvent @event)
107    {
108      eventTarget.FireEvent(@event);
109    }
110   
111    #endregion
112  }
113}
Note: See TracBrowser for help on using the repository browser.