该插件的前两行类似于清单1所示代码。
The first two lines of the plu-in should be similar to the code shown in listing 1.
图1显示了运行中的这个TitlePane小部件,即清单1所示代码段的结果。
Figure 1 shows the TitlePane widget in action, the outcome of the code fragment shown in Listing 1.
例如,清单1所示代码使用rect函数绘制了一个正方形,然后使用translate修改坐标系统。
For example, the code in Listing 1 draws a square using the rect function, then specifies a change to the coordinate system using translate.
清单3所示代码是处理基于模型的Nested Policy基类和相关的VerificationHandler接口实现的结构化断言。
Handling for structured assertions builds on the model's NestedPolicy base class and the associated VerificationHandler interface, shown in Listing 3.
对于VMarguments,通过C: \RCPEJBClient \Snippet1 . txt所提供的代码(清单9)输入如图61所示代码。
For VM arguments, enter the code shown in Figure 61 by pasting the code provided in c: \ RCPEJBClient \ Snippet1.txt (Listing 9).
在此情况下,您可能希望拥有一个按钮(如前一部分中那样),但是要和清单4所示的代码结合使用。
In such a case, you may want to have a button as in the previous section, but with the code shown in listing 4.
将分析方法的内容替换为如代码清单6所示的代码片段。
Replace the contents of the analyze method with the code snippet in Listing 6.
因此,要想从一个对象转换成另一个对象,可以使用清单1所示的代码。
Therefore, to make the translation from one Object to another, you can use the code shown in listing 1.
在清单5所示的代码片段中,进程创建了一个可包含20个整数的消息队列。
Listing 5 shows a code snippet in which a process has created a message queue of 20 integers.
将清单7所示的代码放入到XML文件中并将文件发送给您的用户。
Place the code in listing 7 into an XML file and mail it to your users.
图8所示的代码片段说明了如何实现“一次准备,多次运行”编程技术。
The code snippet in Figure 8 illustrates how to implement the "prepare once, execute many" programming technique.
如清单7所示,代码十分冗长,因为许多对象构造函数都不带参数。
As shown in Listing 7, the code is verbose because many object constructors do not take parameters.
编写如下面清单4所示的RC代码。
窗体中包含图3所示的XML打包代码。
您还将需要对清单7所示的代码进行一些小调整。
You will also need to make a small adjustment to the code shown in Listing 7.
清单8所示的代码中,可以像访问数组元素一样访问元素的属性。
In the code shown in Listing 8, you access attributes of an element just as you would elements of an array.
如果使用普通文本把这些数据发送到服务器,可以使用清单1所示的代码。
If you were just using plain text to send this data to a server, you might use code that looks something like Listing 1.
例如,清单9所示的代码就可以为此页面构建动态数据。
For example, Listing 9 shows the code that builds the dynamic data for the page having a list of causes.
使用清单11所示的代码获取这个类的新实例。
You obtain a new instance of this class by using the code shown in Listing 11.
在如清单2所示的代码内,我们检查并清理了XML,确保编码全部为utf - 8。
In the sample code shown in listing 2, we check and clean the XML in case the encoding is not UTF-8.
而对于ContactPhone,查看清单12所示的代码。
在控制器的view操作中,应当有清单3所示的代码。
The view action for the Products controller should have something like the code in Listing 3.
例如,清单1所示的代码使用一个匿名类创建了一个ThreadFactory。
As an example, the code in Listing 1 USES an anonymous class to create a Thread Factory.
接下来,您需要修改Now . php类,将该文件内容更改为清单10所示的代码。
Next, you need to modify the Now.php class. Change the contents of this file to the code in Listing 10.
选择plugin . xml选项卡,然后将清单1所示的代码片段复制到顶部标记的后面。
Select the plugin.xml TAB, and then copy the code snippet shown in listing 1 at the top after the tag.
还有重要的一点需要指出,即我对清单5所示的代码底部的if - then语句做了稍许修改。
It's also important to note that I made a slight change to the if-then statement at the bottom of the code in Listing 5.
使用清单5所示的代码可以通过jQuery的JSONP支持调用该服务。
You could call this service with jQuery's JSONP support using the code shown in Listing 5.
错误检查的基本方法是编写如清单1所示的代码。
The basic method for error checking is to write your code as shown in listing 1.
如清单6所示,RPC代码在更新后可便利IIOP与LotusDomino的连接。
RPC code may be updated as shown in listing 6 to facilitate IIOP connectivity to Lotus Domino.
在Header字段中输入清单1所示的HTML代码。
应用推荐