在通知defaultsetof listeners之后,新注册的drag - listener - x也会接收到拖放事件的通知,这样就可以实现我们的目的了。
After informing the default set of listeners, the newly registered drag-listener-x is also informed of the drag event, thus achieving our purpose.
您将在页面上拖放几个JSF组件,并使用JSF事件句柄调用一个现有的EJB。
You will drag-and-drop several JSF components on the page and invoke an existing EJB using JSF event handlers.
实现DropTargetListener接口的类可用来响应拖放操作中可能出现的各种事件。
A class implementing the DropTargetListener interface is used to respond to the various events that can occur during a drag-and-drop operation.
虽然事件处理程序只处理某种单一事件,拖动处理程序却可以处理整个拖放过程。
Although an event handler handles a single event of some kind, a drag handler handles the entire drag-and-drop process.
除此之外,为了让用户能够更方面地操作和整理文件,开发者能够利用拖地事件框架来提供新的拖放交互方式。
To make it easier for users to manage and organize files, developers can now add drag-and-drop interaction through a DragEvent framework.
正如上面介绍的一样,编辑器标签有一种默认的拖放行为,它将进行重新排列和平铺操作,这可以使用拖放检测、鼠标移动和鼠标释放类型的事件的监听器实现。
As mentioned, Editor tabs have a default drag-and-drop behavior meant for rearranging and tiling, which is implemented by having listeners for drag-detect, mouse-move, and mouse-up event types.
不论何时发生拖放操作时,都会调用这个监听器的handleEvent()方法,其中 event.widget指向产生这个事件的控件。
Whenever a drag operation occurs, our listener's handleEvent() method is called with event.widget pointing to the widget that issued the event.
当拖放作业完成时发生这个事件。
This event occurs when a drag-and-drop operation is completed.
此事件在拖放操作期间引发,拖动源通过它可以确定是否应取消拖放操作。
This event is raised during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.
此事件在拖放操作期间引发,拖动源通过它可以确定是否应取消拖放操作。
This event is raised during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.
应用推荐