Real-Time asset Locator will be responsible for interpreting the button event and map it to a change in state of an asset.
Real - TimeAsset Locator将负责解释这个按钮事件并将其映射到一个资产状态更改。
The following example creates a mouse button event handler that changes the color of the object that raised the event.
下面的示例创建一个鼠标按钮事件处理程序,该处理程序用于更改引发事件的对象的颜色。
When the set button is pressed it will emit the actual button event as well as an additional event that the alias is "On".
当所设置的映射按钮被按下时将发出一个实际按钮事件以及一个额外别名开启的事件。
When the set button is pressed it will emit the actual button event as well as an additional event that the alias is "on".
当控制器被按下时也会有通用动作的别名事件被发出。
When the set button is released it will emit the actual button event as well as an additional event that the alias button is "Off".
当按钮释放的时候就发出一个实际按钮事件以及一个额外的别名关闭的事件。
If you have a long-running database query for example that's triggered by a button press, you can simply increase the time paused after the button event has been issued.
如果你有一个运行时间很长的数据库查询(比如由按钮点击所触发),那么在按钮事件产生后你可以增加延迟时间。
Finally, notice that we get a handle on the button we created in the layout XML and add a click event handler.
最后,注意上述代码获得一个在布局XML中创建的按钮的句柄,并添加一个单击事件处理程序。
The trigger can be a property firing, clicking the minimal UI (for example, a button), or some other event.
通过单击最小UI(例如,按钮)或其他事件,触发可以是一种属性触发。
Events bubble up so you'll be able to catch the event and figure out which button it originated from.
事件冒泡了等,这样您就能够捕获事件,并找出它来自哪个按钮。
Notice that the test automation simulates a button click by directly invoking the button control's associated method rather than by firing an event.
请注意,测试自动化是通过直接调用按钮控件的相关方法模拟按钮单击的,而不是通过触发事件模拟。
To keep consistent with the roles of the components involved in the solution, the RTLS provider is expected to send a "button press" event.
为使解决方案中涉及的组件的角色保持统一,RTLS提供者预计会发送一个“按钮按下”事件。
The logic for the type of button and the event handler to be invoked is contained in this method, shown in Listing 15.
被调用的按钮和事件处理程序的类型的逻辑包含在此方法中,如清单 15 所示。
In a browser, events are typically generated in response to user actions: a button fires an ONCLICK event when the user clicks.
在浏览器中,通常为响应用户操作而生成事件:当用户单击按钮时,按钮产生一个ONCLICK事件。
While it may seem obvious, giving either time, money or intellectual capital is about much more than simply clicking on a button or showing up at an event.
很明显,奉献时间、金钱或是智力资本要比简单地点击一下按钮或者在活动时现身的贡献多得多。
Interpret the button press event and map it to a valid asset STATUS (more on this in the next section).
解释按钮按下事件并将其映射到一个有效的资产STATUS(下一节将详细介绍)。
Enter values for the event you want to test and select the event's radio button.
为希望测试的事件输入值并选择事件的单选按钮。
Figure 18 shows the generated output initially and the output after the event has been fired by clicking the button.
图18显示最初生成的输出,以及单击按钮触发事件后的输出。
So the UI test automation will not catch the logic error if the application has the wrong method wired to a button click event (although every test would fail and you'd find the problem quickly).
所以如果应用程序为按钮单击事件关联了错误的方法,UI测试自动化不会捕捉到逻辑错误(虽然每次测试都会失败,而且您会很快发现问题)。
For that reason, I usually activate the DataHub component only at runtime, for example in response to a Button Click event.
由于这个原因,我通常都只在运行时激活DataHub组件,例如在响应Button的Click事件时实现。
For example, a Button control contains a Click event that is raised when the Button is clicked.
比如,按钮有单击事件。
Optionally, for better usability, add the following line of code to the onclick event for the edit button.
为了获得更好的可用性,可以选择将以下代码行添加到编辑按钮的onclick事件。
Whereas JSF gives you a host of event options -- menu item selected, button clicked, etc. -- most Model 2s rely on the more simple "request received."
尽管JSF给了您很多事件选项(菜单项选择、按钮单击,等等),但是大多数Model2依赖于更加简单的“请求接受”。
You then use Dojo to associate an event handler for when the button is clicked.
然后可以使用Dojo为按钮点击关联一个事件处理函数。
The code for the Button Click event is as follows, note the use of the sensible names for the TextBox controls.
用于ButtonClick事件的代码如下,注意TextBox控件的合理名称的使用。
For example, instead of an onchange event for each edit box, use the onclick event of one button.
例如,与每一个编辑框具有一个onchange事件相反,使用一个按钮的onclick事件。
Listing 1.adding an onclick event to the user interface button.
列表1 .添加一个onclick事件到用户界面的按钮上。
The final step is to create a new web page with the code to create the form and handle the submit event on the Validate button.
最后一步是用代码创建一个新web页面,来创建表单并处理Validate按钮上的提交事件。
For example, if you want the progress bar to start when the user clicks a button, you can add an onclick event to the button, using the code that you see in Listing 1.
例如,如果您想要这个进展在用户点击一个按钮时开始,您可以在一个按钮上添加一个onclick事件,使用您在列表1中所看到的代码。
The example in Listing 18 shows the onclick event emitted by a button being mapped to an event handler.
清单18中的例子显示一个按钮发出的onclick事件,该事件被映射到一个事件处理程序。
So you can change the event that's run on a button: you just assign a new function to the onclick property.
因此可以改变按钮触发的事件:只要赋给onclick属性一个新的函数。
应用推荐