然后这个属性在构造函数中被初始化,如列表10所示。
The attributes then gets initialized in the constructor, as shown in the Listing 10.
因为本实例没有任何特殊的构造函数、操作、属性或引用,所以不需要这些调用。
This instance doesn't have any special constructors, operations, attributes, or references, so these calls aren't required.
只有父控件和样式是在构造函数中设置的,其他所有属性都是在已创建的对象上设置的。
Only the parent and style are set in the constructor; all other properties are set on the created object.
当然,有趣的事情不仅仅是这些。您可以在组件中包括方法、动画、构造函数属性,等等。
Of course, the fun doesn't stop there: you can include methods, animations, constructor properties, and much more in components.
我还创建了一个接受所有三个属性的构造函数,这将便于创建新实例。
I've also created a constructor that takes all three properties, which will facilitate creating new instances.
类可以有不同的构造函数方法,这些方法是通过类名称后的圆括号内附带的不同属性进行区分。
A class can have different constructor methods, differentiated by the different attributes enclosed within the parentheses following the class name.
如果想让对象的属性和字段都为只读并可在构造函数中进行设置,那么我们仍然需要像在。NET 1.0那样编写代码。
If you want objects where the properties and fields are all read-only and set in constructors, you still have to write the same code you would write in.net 1.0.
构造函数没有参数,并且返回的类型实例中的所有属性都为空。
The constructor function has no parameters and returns an instance of the type with all of its attributes set to null values.
当您创建结构化类型时,DB 2为类型自动创建一个构造函数,并为类型的属性创建mutator方法和observer方法。
When you create a structured type, DB2 automatically creates a constructor function for the type and creates both mutator and observer methods for the attributes of the type.
其构造函数含有两个参数:初始化属性和预配置的记录器(logger)实例。
Its constructor takes two arguments: initialization properties and a pre-configured logger instance. Properties object contains the following.
BasicAttribute构造函数采用属性名称作为参数。
The BasicAttribute constructor takes the name of the attribute as a parameter.
所有RequiredValidator对象的原型都是一个Validator实例,该实例没有任何属性,因为没有参数传递给Validator构造函数。
The prototype for all RequiredValidator objects is a Validator instance, which has no properties because no parameters are passed to the Validator constructor.
在图7所示的程序运行中,运行库通过允许Static2在Static1的类型构造函数完成执行之前访问Static1的静态Message属性,从而避免了死锁。
In the program run shown in Figure 7, the runtime avoided deadlock by allowing Static2 to access the static Message property of Static1 before the type constructor for Static1 finished execution.
构造函数使用默认的DEBUG级别创建一个hierarchy对象,然后使用提供的属性对其进行配置。
The constructor creates a hierarchy object with the default level DEBUG and then configures it using the provided properties.
这个构造函数(在清单17中定义)允许初始化在超类小部件ajaxcommon . widgets . picker . PickerInputBox内所声明的小部件的属性。
The constructor allows the initialization the widget's properties declared in the superclass widget ajaxcommon.widgets.picker.PickerInputBox that is defined in Listing 17.
您将创建DeviceAdapterAgent实例并将这些配置属性一起传递到构造函数(清单2)。
You create the DeviceAdapterAgent instance and pass those configuration properties along to the constructor (Listing 2).
除配置BindAuthenticator构造函数外,还必须配置authenticatorbean的两个属性(清单5中的两个标记)。
In addition to configuring the BindAuthenticator constructor, you must also configure two properties of the authenticator bean (the two tags in Listing 5).
您应该像清单7所示的那样定义bean。在Tuscany中,不支持为构造函数使用隐式sca引用和属性。
You should define your bean definition as shown in Listing 7. Using implicit sca references and properties are not supported for constructor injection in Tuscany.
Unity是一个轻量级,可扩展的依赖注入容器,支持构造函数,属性和方法调用注入。
Unity is a lightweight, extensible dependency injection container with support for constructor, property, and method call injection.
这里的creator属性被设置为值new,这意味着DWR应当调用类的默认构造函数来获得实例。
The creator attribute here is set to the value new, meaning that DWR should call the class's default constructor to obtain an instance.
“构造函数”必须使用this来恰当地初始化对象属性。
The so-called "constructor" must use this to properly initialize the object's properties.
JAX - RPC要求,具体服务的异常拥有一个构造函数,该构造函数的参数与所有的可获得的属性是一对一的关系。
JAX-RPC requires that a service-specific exception have a constructor equipped with parameters in a one-to-one relationship with all gettable properties.
与共享内存对象相似,对于以只读方式打开消息队列,应该把open_only属性传递给构造函数。
Similar to the case for a Shared memory object, a message queue that is opened only for reading will have the open_only attribute passed in the constructor.
这是Springbean构造函数中的SCA引用和属性的注入。
This is the injection of SCA references and properties within Spring bean constructors.
然后它将生成默认构造函数,并把元素传递到getter-and-setter模板中以生成属性的 getter和setter方法。
Then it generates a default constructor, and passes the elements into the getter-and-setter template to generate the getter and setter methods of the property.
构造函数使用这些参数来设置自有属性。
The constructor USES these parameters to set its own properties. Here is how you might now instantiate a Dictionary object.
XHR()构造函数(见清单7)带有3 个参数(method、url和async),它将这些参数存储为属性。
The XHR() constructor (see Listing 7) takes three parameters (method, url, and async) and stores them as properties.
为了避免这个问题,应当在构造函数中初始化复杂属性;然而,对于字符串、布尔值等简单属性则不需要这样做。
To avoid this problem, complex attributes should be initialized in the constructor; however, this is not necessary for simple attributes such as strings, booleans, and so on.
构造函数读取配置参数文件作为属性并将这些属性转换成URI/值对,这些值对是由部署描述符模式定义的(图1) 。
The constructor method reads the configuration parameters file as properties and converts these properties into URI/value pairs as defined by the deployment descriptor schema (Figure 1).
构造函数读取配置参数文件作为属性并将这些属性转换成URI/值对,这些值对是由部署描述符模式定义的(图1) 。
The constructor method reads the configuration parameters file as properties and converts these properties into URI/value pairs as defined by the deployment descriptor schema (Figure 1).
应用推荐