ICustomEvent.cs :  » GUI » SharpVectorGraphics » SharpVectors » Dom » Events » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » GUI » SharpVectorGraphics 
SharpVectorGraphics » SharpVectors » Dom » Events » ICustomEvent.cs
using System;

namespace SharpVectors.Dom.Events{
  /// <summary>
  /// The <see cref="ICustomEvent">ICustomEvent</see> interface gives access
  /// to the attributes
  /// <see cref="IEvent.CurrentTarget">IEvent.CurrentTarget</see> and
  /// <see cref="IEvent.EventPhase">IEvent.EventPhase</see>.
  /// </summary>
  /// <remarks>
  /// <para>
  /// It is intended
  /// to be used by the DOM Events implementation to access the underlying
  /// current target and event phase while dispatching a custom
  /// <see cref="IEvent">IEvent</see> in the tree; it is also intended to be
  /// implemented, and not used, by DOM applications.
  /// </para>
  /// <para>
  /// The methods contained in this interface are not intended to be used by
  /// a DOM application, especially during the dispatch on the Event object.
  /// Changing the current target or the current phase may conduct into
  /// unpredictable results of the event flow. The DOM Events implementation
  /// should ensure that both methods return the appropriate current target
  /// and phase before invoking each event listener on the current target to
  /// protect DOM applications from malicious event listeners.
  /// </para>
  /// <para>
  /// Note: If this interface is supported by the event object,
  /// <see cref="IEvent.IsCustom">IEvent.IsCustom</see> must return
  /// <c>true</c>.
  /// </para>
  /// </remarks>
  public interface ICustomEvent
    : IEvent
  {
    #region Properties
    
    #region DOM Level 3 Experimental
    
    /// <summary>
    /// This method will return <c>true</c> if the method
    /// <see cref="IEvent.StopPropagation">IEvent.StopPropagation</see> has been called
    /// for this event, <c>false</c> in any other cases. 
    /// </summary>
    /// <value>
    /// <c>true</c> if the event propagation has been stopped in the
    /// current group.
    /// </value>
    bool IsPropagationStopped
    {
      get;
    }
    
    /// <summary>
    /// The
    /// <see cref="IsImmediatePropagationStopped">IsImmediatePropagationStopped</see>
    /// method is used by the DOM Events implementation to know if the
    /// method
    /// <see cref="IEvent.StopImmediatePropagation">IEvent.StopImmediatePropagation</see>
    /// has been called for this event. It returns <c>true</c> if the
    /// method has been called, <c>false</c> otherwise. 
    /// </summary>
    bool IsImmediatePropagationStopped
    {
      get;
    }
    
    #endregion
    
    #endregion
    
    #region Methods
    
    #region DOM Level 3 Experimental
    
    /// <summary>
    /// The <see cref="SetDispatchState">SetDispatchState</see> method is
    /// used by the DOM Events implementation to set the values of
    /// <see cref="IEvent.CurrentTarget">IEvent.CurrentTarget</see> and
    /// <see cref="IEvent.EventPhase">IEvent.EventPhase</see>.
    /// </summary>
    /// <remarks>
    /// It also reset the states of
    /// <see cref="IsPropagationStopped">IsPropagationStopped</see> and
    /// <see cref="IsImmediatePropagationStopped">IsImmediatePropagationStopped</see>.
    /// </remarks>
    /// <param name="target">
    /// Specifies the new value for the
    /// <see cref="IEvent.CurrentTarget">IEvent.CurrentTarget</see>
    /// attribute.
    /// </param>
    /// <param name="phase">
    /// Specifies the new value for the
    /// <see cref="IEvent.EventPhase">IEvent.EventPhase</see> attribute.
    /// </param>
    void SetDispatchState(
      IEventTarget target,
      ushort phase);
    
    #endregion
    
    #endregion
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.