本文描述的问题是针对如 图1所示的向导页中的一组按钮的,当用户在每个按钮上悬停时,图形会发生改变以向用户表示该按钮是活动的。
The problem described in this article is for a set of buttons in a wizard page shown in Figure 1, where as the user hovers over each button, the graphic changes to show them it is active.
按钮位置:考虑当两只手持有平板设备时你UI中按钮的位置是否易于操作。
Button position: Consider whether the position of the most common buttons in your UI are easily accessible while holding a tablet with two hands.
最里面的flow快循环创建应用程序中的所有按钮,并有效地将每个按钮绑定到其方法。
The innermost flow block loops, creating all the buttons in the application and effectively binding each button to its method.
现在,我们将创建包含按钮图像的文件夹(已在操作栏中添加该按钮)。
Now, you create the folder that includes your image for the button that you add to the action bar.
清单22中的 LZX应用程序显示一个按钮,该按钮沿着一条水平线移动。
The LZX application in Listing 22 shows a button that moves along a horizontal line.
“按钮的颜色无形中暗示了点击产生的结果,尤其是红色的按钮暗示着”危险“,如果用户点击了它却又不打算关闭窗口的话。”
The color of the button implicitly suggested the consequence of clicking it, especially the red button, which suggested "danger" if the user clicked it but didn't mean to close the window.
清单9显示了可访问性工具箱用于在按钮组中定义单选按钮的实用程序方法。
Listing 9 shows the Accessibility Toolkit's utility methods for defining radio buttons in button groups.
选择命令按钮之外的JS f组件(如有需要从配置板中拖拉不同的组件),然后再次选择按钮以刷新工具。
Select a JSF component other than the commandButton (drop a different one from the palette if necessary), and then select the button tag again to refresh the tools.
包含用于在该List中创建新项的按钮以及从List中删除项的按钮。
There are buttons for creating new items in the List as well as deleting items from the List.
例如,在这个示例应用程序中,用户单击了register按钮,这个按钮被绑定到应用程序控制器的register方法。
For instance, in the example application, the user clicks the register button, which is bound to the register method of the application controller.
要找到更多通用的按钮标签,例如,Cancel,您可能需要开发更多能够找到存在于您的应用程序中的任意按钮的通用方法。
To find more common button labels, such as Cancel, you may need to develop more general methods that find any button that exists in your application.
清单9提供了一个按钮,该按钮可以从名为id的输入字段传入一个设备id,并在名为result的元素中显示响应SOAP信封。
Listing 9 provides a button that passes in a device id from an input field called id and displays the response SOAP Envelope in a div element called result.
从左边的Button小部件列表中拖两个按钮到空白画布上,然后双击每个按钮,修改它们的名称。
Drag two push buttons onto the blank canvas from the button widget list on the left and double click on each to change their name.
例如,Clear按钮应该清空当前处于活动状态的标签面板中的字段,而Add按钮应该只修改与该面板有关的数据。
For instance, the Clear button should clear all the fields of the panel of the currently active tabbed pane, while the Add button should modify only the data associated with that panel.
重新编译代码产生一个新的SWF,现在可以响应按钮点击了,在浏览器中重新载入“hello . html ”页面,点击按钮会产生图2 -5的结果。
Recompile the code to produce a new.swf that now responds to button-clicks, reload the "hello.html" page in the browser, and lo and behold, clicking on the button produces Figure 2-5.
当用户使用清单4中的代码单击一个按钮时,这个简单示例中的iPhone样式按钮彼此相互连接。
The iPhone style buttons in this simple example are wired together when a user clicks a button with the code in Listing 4.
贴有note.gif图标的按钮就是一个下拉菜单风格的按钮,如图1中所示。
The button attached to note. gif is a pulldown type, and is shown in Figure 1.
例如,如果您想要这个进展在用户点击一个按钮时开始,您可以在一个按钮上添加一个onclick事件,使用您在列表1中所看到的代码。
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.
许多对话框中包含一个Cancel按钮,所以您首先需要找到包含正确的Cancel按钮的对话框testobject。
Many dialogs include a Cancel button, so you first need to find the dialog TestObject that contains the correct Cancel button.
继续处理相同的搜索结果,工具栏中应当会针对每个搜索关键词显示一个按钮;在本例中,显示标签分别为support和authority的按钮(图8)。
Continuing with the same search results, there will be a button in the toolbar for each individual search term; in this case, a button labeled support and another labeled authority (Figure 8).
通过使用Update按钮可变更已选物品的详细信息,或通过Delete按钮将已选物品从应用程序中删除。
The details of the selected item can be changed using the Update button, or the selected item can be deleted from the application with the delete button.
submit按钮提交处理的数据表单:当用户单击按钮时,表单数据被提交,且工作流中的下一个活动发生。
The submit-type button submits form data for processing: when a user clicks the button, form data is submitted and the next activity in the workflow takes place.
在Leopard系统中,相对应的按钮是左上角的绿色圆圈;点击这个按钮可以将小窗口放大到根据内容优化的最佳尺寸,但不一定是全屏。
In Leopard, the equivalent button — a green circle at the upper left — increases a small window's size to a footprint deemed optimal for its contents, which isn't always the whole screen.
要修改按钮控件中的名字和鼠标置于其上方时显示的帮助提示,右键单击按钮控件,然后选择Control。
To change the name on the button control and the help tip displayed when the mouse is over it, right-click the button control and select control.
单击Details按钮,在模块编辑器中,单击模块列表正下方的Add…按钮。
Click on the Details button and, in the modules editor, click the Add... button just under the module list.
清单6给出一个典型的ExtJSAjax实现:当单击按钮时,HTML文本框和按钮元素把文本框中的数据发送给Web服务器。
Listing 6 shows a typical ext JS Ajax implementation: an HTML text field and button element that posts data in the text field to a Web server when the button is clicked.
清单9中的按钮加载places . xhtml,但是前提是该文件和按钮所在的文件处于同一个目录中。
The button in Listing 9 loads places.xhtml, but only if the file is in the same directory as the file in which the button resides.
现在需要定义和清单2中Paste按钮联系在一起的函数,当用户单击该按钮时填充表单。
Now you need to define the function attached to the Paste button defined in Listing 2, so when the user clicks the button, the form is filled in.
按钮呈现在弹出按钮的doStartTag方法中。
The button is rendered in the doStartTag method of the pop-up button.
向策略数据表中添加命令按钮,并且将按钮的标签改为“AddNewPolicy ”(图16)。
Add a command button to the policy data table and change the label of the button to "Add New policy" (Figure 16).
应用推荐