节点文献

Java中事件处理方式的探讨

The Probe into the Way of Event Handling in Java

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 孔昊

【Author】 KONG Hao(The Software Engineering Department of Lanzhou Polytechnic College,Lanzhou 730050,China)

【机构】 兰州工业高等专科学校软件工程系

【摘要】 事件处理是GUI设计中的关键环节.委托事件处理模型清晰地勾勒了事件发生、响应和处理的过程.监听器在向事件源进行注册后,会监听事件的发生并负责响应处理逻辑.根据模型要求,要创建监听器类及其对象,完成向事件源的注册并实现接口中的特定方法.实现过程中涉及到的编程技术有:利用主类或委托类构造监听器类,实现多方法接口时可以通过适配器类简化问题的复杂性,利用匿名方式简化程序,使得程序结构紧凑、合理.

【Abstract】 Event handling is the key link of GUI design.Delegated event handling model clearly draws the outline of the course of event occurring,responding and handling.After registering to the event source,listener will listen to it and respond to the handling logic.According to the requirements of the model,listener class and it’s object will be created to register to the event source and realize the specific method in interface.There are some programming technologies in this course:using main class or delegated class to creat listener class,using adapter class to simplify problem when realizing multi-method interface,using anonymous method to simplify and rationalise program.

  • 【文献出处】 兰州工业高等专科学校学报 ,Journal of Lanzhou Polytechnic College , 编辑部邮箱 ,2009年02期
  • 【分类号】TP312.1
  • 【下载频次】85
节点文献中: 

本文链接的文献网络图示:

本文的引文网络