Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorDom/Events/TextEvent.cs @ 13398

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

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

File size: 1.5 KB
Line 
1using System;
2
3using SharpVectors.Dom.Views;
4
5namespace SharpVectors.Dom.Events
6{
7  /// <summary>
8  /// Summary description for TextEvent.
9  /// </summary>
10  public class TextEvent: UiEvent, ITextEvent
11  {
12    #region Private Fields
13   
14    private IAbstractView view;
15    private string data;
16   
17    #endregion
18   
19    #region Constructors
20   
21    public TextEvent()
22    {
23    }
24   
25    public TextEvent(
26      string eventType,
27      bool bubbles,
28      bool cancelable,
29      IAbstractView view,
30      string data)
31    {
32      InitTextEvent(eventType, bubbles, cancelable, view, data);
33    }
34   
35    public TextEvent(
36      string namespaceUri,
37      string eventType,
38      bool bubbles,
39      bool cancelable,
40      IAbstractView view,
41      string data)
42    {
43      InitTextEventNs(namespaceUri, eventType, bubbles, cancelable, view, data);
44    }
45   
46    #endregion
47   
48    #region ITextEvent interface
49   
50    public string Data
51    {
52      get
53      {
54        return data;
55      }
56    }
57   
58    public void InitTextEvent(
59      string eventType,
60      bool bubbles,
61      bool cancelable,
62      IAbstractView view,
63      string data)
64    {
65      InitEvent(eventType, bubbles, cancelable);
66     
67      this.view = view;
68      this.data = data;
69    }
70   
71    public void InitTextEventNs(
72      string namespaceUri,
73      string type,
74      bool bubbles,
75      bool cancelable,
76      IAbstractView view,
77      string data)
78    {
79      InitEventNs(namespaceUri, eventType, bubbles, cancelable);
80     
81      this.view = view;
82      this.data = data;
83    }
84   
85    #endregion
86  }
87}
Note: See TracBrowser for help on using the repository browser.