现在需要一个类处理编组。
为此另外还需要一个类。
开始之前,需要一个类来表示表格中的单元格,如清单3 的示
To start, you need a class representing cells in the table, as shown in Listing 3
在一个类中表示对象后,接着还需要一个类来管理该对象。
Once you have the object represented in a class, you next need a class to manage it.
例如,一个限制可能不允许多重继承,或者是它可能需要一个类必须具备一个特殊的属性类型。
For example, a constraint may disallow multiple inheritance, or it may require that a class must have a particular type of attribute. This means that.
ifthisisso,HTML客户端表单可能用移动数据更加有效,尽管HTML表单需要一个类asp的编程模型。
If this is so, HTML client forms might be more effective in terms of moving data. HTML forms, though, require an ASP-like programming model.
要做到这点,需要一个远程对象的存根类。
为了保护这个表单,我们需要使用一个工具类来创建策略文档并签名。
With the form taken care of, we need a utility class to create and sign policy documents.
有一个问题是,类的格式需要在一个目录结构中。
One issue is the format of the class needs to be in a directory structure.
所以,为了访问任何一个类,都需要以名称空间加以限定。
So, to access any of the classes, you would need to qualify it with the namespace.
不像扩展,您不需要直接创建一个插件类对象,但是您要使用组件(它所附加的)来注册您的插件。
Unlike extensions, you will not create an object of a plug-in class directly, but rather you will register your plug-in with the component it attaches to.
current _ card方法的值就是要呈现的值,为了呈现这个值,需要一个视图类。
The value of the current_card method is what you want to render, and to do that, you need a view class.
您需要的最后一个类是UpdateTimer,它使用游戏服务将面板位置更新为最新值。
The last class you need is the UpdateTimer, which uses the game service to update the board positions with their latest values.
对于应用程序的界面,需要一个swing类,以显示flash - card数据。
For the application's interface, you need a Swing class that displays the flash-card data.
要使用 Objective-C创建一个类 “Sample”,您需要创建一个名为 Sample.h 的头文件(清单5)。
To create a class called "Sample" in Objective-C, you need to create an header file named Sample.h (Listing 5).
Entity类需要一个主键。
为了在一个类中创建一个 C++友函数,您需要在一个UML 类的内部创建一个 UML操作,并且将 cpp_operation套用在该 UML 操作上面。
To generate a C++ friend function that is a friend of a class, you need to create a UML operation within a UML Class and apply the cpp_operation stereotype on the UML operation.
这里只需要创建一个rssprocessor类的实例。
Here you're simply creating an instance of the RSSProcessor class.
为了弄清除如何使用它,我们需要写一个测试类。
首先,在我们可以在本地使用一个WSDL文件之前,需要先将它转换成一个代理类。
First, a WSDL file needs to be converted into a proxy class before we can work with it locally.
在当前这一步中,我们只需要表明顾客类具有一个叫做地址的属性就足够了。
It is enough at this point to only specify that a Customer class has an address attribute.
对于您所创建的每一个构造型,您必须对包和其他所有需要的元类扩展添加一个元类。
For every stereotype that you create, you must add a metaclass extension to the package in addition to any other desired metaclass extensions.
您还需要使用一个实用类在提要中创建相应的URL。
You also need a utility class for creating appropriate URLs in your feed.
匿名类是一种语法速写标记,使您能够在需要实现某个抽象类或者接口的地方创建一个类的实例,而不需要显式提供类的名称。
An anonymous class is a kind of syntactic shorthand that lets you instantiate a class implementing an abstract class or interface where you need it, without having to explicitly give it a class name.
一个参与者可能需要添加许多类,而其中没有一个类使用了原始参与者的名称。
A single actor may result in the addition of many classes, none of which carries the name of the original actor.
可能会需要有一个类用来隐藏持续机制的原始细节,但眼下还是使用SQL字符串。
Maybe have a class that hides the raw details of your persistence mechanism, but for now uses SQL strings underneath it.
重复的类结构总有些碍手碍脚,所以如果频繁使用BCEL,那么可能需要编写一个包装器类,它可以隐藏其中一些不同之处。
The duplicate class structures tend to get in the way, so if you're doing much with BCEL, it may be worthwhile to write wrapper classes that can hide some of these differences.
为了确定一个类是否属于一个域包,您需要分析它确定分布类型所涉及到的协作。
To determine whether or not a class belongs in a domain package, you need to analyze the collaborations with which it is involved to determine its distribution type.
然后您需要生成一个SWT外壳类和对话框窗口本身的类(下载本文底部的代码)。
Then you need to make an SWT shell class and a class for the dialog window itself Download the code at the bottom of the article.
然后您需要生成一个SWT外壳类和对话框窗口本身的类(下载本文底部的代码)。
Then you need to make an SWT shell class and a class for the dialog window itself Download the code at the bottom of the article.
应用推荐