介绍如何为WPF项目创建简单的事件处理程序。
Describes how to create a simple event handler for a WPF project.
最后,需要定义简单的事件处理程序,如清单5所示。
Finally, you define the simple event handler shown in Listing 5.
最简单的事件处理程序就是输出每个事件中的一些文本的复写器。
The simplest event handler is a writer which outputs some text on each event.
可以将事件作为系统的简单事件处理阶段予以甄选、过滤、聚合、标注或者补充。
Events can be screened, filtered, aggregated, annotated or augmented as part of the system's simple event processing phase.
在系统的简单事件处理阶段,可能需要对事件进行显示、筛选、聚合、标注或充实。
Events might be screened, filtered, aggregated, annotated, or augmented as part of the system's simple event processing phase.
首先它鼓励开发简单转换事件流的SAX处理程序。
First, it encourages the development of SAX handlers that transform the event stream in simple ways.
从使用CPrimeCalculator来编写应用的程序员角度看,处理事件简单而直白。
From the perspective of a programmer writing an application that USES CPrimeCalculator, handling events is simple and straightforward.
只需要个别简单的注解,Seam中的EJB3业务组件就能直接被用来支持JSFWeb表单或者处理WebUI事件。
With a few simple annotations, the EJB3 business components in Seam can now be used directly to back JSF web forms or handle web UI events.
例如,Actions就是一个通过声明进行事件处理的简单方式。
The use of Actions for example is a single way of handling events on widgets declaratively.
但是,当您单击其他链接时,一个简单的锚模板将处理链接事件并将链接的内容复制到别针区域。
When you click any other link, however, a simple anchor template handles the link event and copies the contents of the link to the pin area.
您将构造一个具有简单控件和事件处理程序的简式窗口,这些简单控件和事件处理程序使输入姓名和年龄,然后调用服务成为可能。
You will construct a simple form window with some simple controls and event handlers that make it possible to enter a name and age, and then invoke the service.
简单地说,过滤器是将接收到的事件传送给另一个事件处理程序的SAX事件处理程序。
Simply put, a filter is a SAX event handler that passes the events it receives to another event handler.
分析事件流和预期的工作负载,确保先处理简单的事件再处理复杂的事件。
Analyse your event flows and expected workload and ensure simpler event processing occurs before more complex event processing.
对birt脚本的完整指导超出了本文的讨论范围,对您说简单来说,每一个数据集合都有一些事件处理器,它会在数据集合生命周期的特定点上运行。
A complete guide to BIRT scripting is beyond the scope of this article, but in short, each data set can have several event handlers that run at certain points in the data set's life cycle.
同步处理应该仅用于需要极简单且迅速处理的事件。
Synchronous processing should be used only for events that require minimal and rapid processing.
该语言定义了功能强大的事件模型,从而可以不再需要定制脚本以处理简单的与表单相关的任务。
The language defines a powerful event model that obviates the need for custom scripts to handle simple, form-related tasks.
该场景的事件处理与1个简单规则场景相同,惟一的差别是事件消息有许多字段(~ 150),其大小约为10KB。
The event processing for this scenario is identical to 1 Simple Rule. The only difference is that the event message has many fields (~ 150), and is about 10 KB in size.
最简单、最常用的技术是直接将事件处理程序附加到目标上,过去,浏览器只支持这种技术。
The easiest and most common technique is to attach event handlers right at the target, and once upon a time this technique was all that browsers supported. However, this often isn't practical.
声明事件处理器的最简单方案是继承SAX提供的defaulthandler。
The easiest solution to declare an event handler is to inherit from the SAX-provided defaulthandler.
xml简单api (Simple APIfor XML,SAX)是一种事件驱动XML API,由它定义的事件流可以指定从解析器传到专门的处理程序代码的XML结构。
Simple API for XML (SAX), an event-driven XML API, defines a stream of events specifying XML structure as handed from the parser to the specialized handler code.
我还提供了一个简单的幻灯片演示可供下载,其中通过简单的故事情节演示了Monitor处理事件时事件所经历的路径。
I've also provided a slide show for download that shows, through a simple storyline, the path an event takes as it's processed by Monitor.
它们仅仅创建一个简单的计时器事件对象,其中只包含一种事件类型 ——timeout或者timetick,并将它传递给处理鼠标事件的同一个 handleEvent方法。
They create a trivial timer event object that contains only an event type -- either timeout or timetick -- and pass it to the same handleEvent method that handles cursor events.
但如果您开发的是一个简单的Web应用程序,复杂的事件处理则不仅仅是耗费额外的资源。
But when you're developing a simple Web application, the complexity of event handling may be more expensive than the cost of additional resources.
基于JMX的监视:除了记录在简单的文件中外,大多数由日志记录基础结构处理的WebSphereApplicationServer关键事件也被导出为JMX事件。
JMX-based Monitoring: in addition to being logged to simple files, most key WebSphere Application Server events handled by the logging infrastructure are also exported as JMX events.
当您在处理特定WatchKey及其所注册的事件时,可以很简单地通过调用cancel方法,来取消其在WatchService的注册。
When you're done with a particular WatchKey and the events it's registered for, you can cancel its registration with the WatchService simply by calling its cancel method.
支持这个 applet的XHTML如清单2 所示,里面只是HTML事件处理程序和iframe 的简单应用。
The XHTML that hosts this applet is shown in Listing 2 and is just a trivial use of HTML event handlers and iframe.
不需要大量的事件处理器弄乱你的代码,现在你可以写一个简单的脚本,集成所有事件处理器。
No more need for huge Numbers of event handlers cluttering up your code, now you could write a simple script that sets all event handlers for you.
它提供了一个简单的方法,可以把任意多的事件处理器注册于一个元素的同一个事件。
It offers a simple way to register as many event handlers as you like for the same event on one element.
但是命令不是事件,他们不属于事件存储器。可以简单地将命令记录看作是命令处理器周边被封装的额外的方面。
But commands are not events, and they don't belong in the event store. Simply consider logging of the commands as an additional aspect to be wrapped around your command handlers.
但是命令不是事件,他们不属于事件存储器。可以简单地将命令记录看作是命令处理器周边被封装的额外的方面。
But commands are not events, and they don't belong in the event store. Simply consider logging of the commands as an additional aspect to be wrapped around your command handlers.
应用推荐