Last change
on this file since 13231 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
1.5 KB
|
Rev | Line | |
---|
[12762] | 1 | using System;
|
---|
| 2 |
|
---|
| 3 | using SharpVectors.Dom.Views;
|
---|
| 4 |
|
---|
| 5 | namespace SharpVectors.Dom.Events
|
---|
| 6 | {
|
---|
| 7 | /// <summary>
|
---|
| 8 | /// Summary description for UiEvent.
|
---|
| 9 | /// </summary>
|
---|
| 10 | public class UiEvent: Event, IUiEvent
|
---|
| 11 | {
|
---|
| 12 | #region Private Fields
|
---|
| 13 |
|
---|
| 14 | private IAbstractView view;
|
---|
| 15 | private long detail;
|
---|
| 16 |
|
---|
| 17 | #endregion
|
---|
| 18 |
|
---|
| 19 | #region Constructors
|
---|
| 20 |
|
---|
| 21 | public UiEvent()
|
---|
| 22 | {
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | public UiEvent(
|
---|
| 26 | string eventType,
|
---|
| 27 | bool bubbles,
|
---|
| 28 | bool cancelable,
|
---|
| 29 | IAbstractView view,
|
---|
| 30 | long detail)
|
---|
| 31 | {
|
---|
| 32 | InitUiEvent(eventType, bubbles, cancelable, view, detail);
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | public UiEvent(
|
---|
| 36 | string namespaceUri,
|
---|
| 37 | string eventType,
|
---|
| 38 | bool bubbles,
|
---|
| 39 | bool cancelable,
|
---|
| 40 | IAbstractView view,
|
---|
| 41 | long detail)
|
---|
| 42 | {
|
---|
| 43 | InitUiEventNs(namespaceUri, eventType, bubbles, cancelable, view, detail);
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | #endregion
|
---|
| 47 |
|
---|
| 48 | #region IUiEvent interface
|
---|
| 49 |
|
---|
| 50 | public IAbstractView View
|
---|
| 51 | {
|
---|
| 52 | get
|
---|
| 53 | {
|
---|
| 54 | return view;
|
---|
| 55 | }
|
---|
| 56 | }
|
---|
| 57 |
|
---|
| 58 | public long Detail
|
---|
| 59 | {
|
---|
| 60 | get
|
---|
| 61 | {
|
---|
| 62 | return detail;
|
---|
| 63 | }
|
---|
| 64 | }
|
---|
| 65 |
|
---|
| 66 | public void InitUiEvent(
|
---|
| 67 | string eventType,
|
---|
| 68 | bool bubbles,
|
---|
| 69 | bool cancelable,
|
---|
| 70 | IAbstractView view,
|
---|
| 71 | long detail)
|
---|
| 72 | {
|
---|
| 73 | InitEvent(eventType, bubbles, cancelable);
|
---|
| 74 |
|
---|
| 75 | this.view = view;
|
---|
| 76 | this.detail = detail;
|
---|
| 77 | }
|
---|
| 78 |
|
---|
| 79 | public void InitUiEventNs(
|
---|
| 80 | string namespaceUri,
|
---|
| 81 | string eventType,
|
---|
| 82 | bool bubbles,
|
---|
| 83 | bool cancelable,
|
---|
| 84 | IAbstractView view,
|
---|
| 85 | long detail)
|
---|
| 86 | {
|
---|
| 87 | InitEventNs(namespaceUri, eventType, bubbles, cancelable);
|
---|
| 88 |
|
---|
| 89 | this.view = view;
|
---|
| 90 | this.detail = detail;
|
---|
| 91 | }
|
---|
| 92 |
|
---|
| 93 | #endregion
|
---|
| 94 | }
|
---|
| 95 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.