使窗体成为组件中的嵌套类。
为什么嵌套类的行为不同的类声明方式之间的不同吗?
Why is the behavior of nested class different between different ways of class declaration?
请注意,当一个类是嵌套类的时候,它可以访问其外层类的成员。
Note that when a class is nested, it has access to the outer class's members.
如果这个嵌套类是一个静态类,那么就会立即出现一个框,显示这个重构的预览。
If the nested class is a static class, a box showing a preview of the refactoring displays right away.
为了保留这种功能,重构过程将一个装入类BagExample的实例放在前面那个嵌套类中。
To preserve this functionality, the refactoring will add an instance of the enclosing class BagExample to the formerly nested class.
当你有足够多的功能需要归并到一个类里,并且这个类在仅会被外层类所使用时,一个嵌套类就非常有用。
A nested class make sense when you have enough related functionality to lump together in a class, but the functionality is only ever going to be used by its "outer" class.
如果类具有一个或多个私有构造函数而没有公共构造函数,则其他类(除嵌套类外)无法创建该类的实例。
If a class has one or more private constructors and no public constructors, other classes (except nested classes) cannot create instances of this class.
本文分析了SQL类查询语句的基本结构,指出任何一个嵌套结构的SQL类语句都可以由四种基本嵌套类型组成。
The structure of SQL-like nested queries is examined. It is shown that any SQL- like nested query can be decomposed into four basic nested types.
如果它不是一个静态类,那么需要首先声明保存有对此嵌套类的父类的引用的那个字段的名称,之后才能看到这个预览框。
If it is not a static class, you first need to declare the name of the field that will hold the reference to the parent class of the nested class before you get to the preview box.
嵌套类StudentImpl是Student特征的实现,因而提供了必需的get()/set()方法对。
The nested class StudentImpl is the implementation of the Student trait, which thus provides the get()/set() method pairs demanded by it.
ConvertAnonymousClasstoNested重构能够接受一个匿名类并将其转换为最初包含这个匿名类的方法的一个嵌套类。
The convert anonymous class to nested refactoring takes an anonymous class and converts it to a nested class of the method that originally contained the anonymous class.
与其使用多份文档、任务清单或更冗长的笔记来记录待办事宜,您不妨考虑下用Word来管理。利用Word的大纲视图,您可以打造一个嵌套类、可扩展的个人维基风格管理器。
Rather than keep multiple files, to-do lists, and longer notes on something coming up, consider using a Word file in the "Outline View" to create a nested, expandable personal wiki-style organizer.
面板通常被实现为一堆嵌套式表格,所以没有默认的类名。
Panels are generally implemented as a mess of nested tables and don't have default classnames.
还可以使用此语法随心所欲地遍历这些类的嵌套结构。
You can traverse a nested hierarchy of classes as deeply as you'd like using this syntax.
Scala和许多面向对象语言一样,允许你嵌套声明类。
Scala lets you nest class declarations, like many object-oriented languages.
举例来说,考虑一个具有两个类(Class1和Class2)之间依赖的uml模型,每一个都嵌套在一个不同的包中(Package1and Package2)。
For example, consider a UML model that has a dependency between 2 classes (Class1 and Class2), each nested under a different package (say Package1 and Package2).
helponfocuscomponent类(参见清单15)扩展了SetupComponent,并实现了setup方法,每个rendered属性为true的嵌套组件都将调用此方法。
The HelpOnFocusComponent class (see Listing 15) extends SetupComponent and implements the setup method, which is called for every nested component whose rendered property is true.
SetupComponent类(在 第 1 部分 中介绍过)遍历JSF组件树,允许在呈现嵌套组件之前更改其属性。
The SetupComponent class, which was presented in Part 1, traverses the JSF component tree, allowing you to change the attributes of the nested components right before their rendering.
为了允许递归,协作结构被嵌套到类的规范中。这就是说这个类的所有实例都将有一个由类定义的内部结构。
To allow recursion, a collaboration structure is nested within a class specification, which means that all instances of that class will have an internal structure specified by the class definition.
不过,对于例如技术引用这一类事物,节的内容可以嵌套在不同的地方,具有不同的深度。
However, for something like a technical reference, your section material might be nested in different places and at different depths.
另外要注意,类定义必须出现在模块的最顶层,这意味着它们不能是嵌套的类(在其它类或函数中定义的类)。
Also note that class definitions must appear at the top level of a module, meaning they cannot be nested classes (classes defined inside other classes or functions).
每个方法还有一个给出当前缩进字符串的参数,它使每一级类嵌套都缩进一些空间。
Each method also takes an argument giving the current leading indentation string, which gets an added space for each level of class nesting.
而且,traits能包含嵌套的trait和类定义,类也能包含嵌套的trait定义。
Also like classes, traits can contain nested trait and class definitions and classes can contain nested trait definitions.
您设计的派生类必须有一个名为definition(可以不修改此名)的嵌套的模板类/结构。
The derived class that you design must have a nested template class/structure named definition (you may not change this name). The definition class has the following properties
在数据本身的最外层,可有嵌套的HTML标签,每个都具有ID,类,和其他属性。
On top of the data itself, you could have nested HTML tags, each with IDs, classes, and other attributes.
因此,在这个示例中,希望把Book类的书名属性绑定到title元素的值,而这个元素嵌套在 book-info 元素中。
So in this case, you want the title property of the Book class to bind to the value of the title element, within the book-info element. Here's how you'd do that
在活动调度器中,这个类能更好地控制嵌套的等待循环。
This class provides better control of nested wait loops in the active scheduler.
如何设置我的模型类嵌套json响应?
名字被嵌套的声明区域或派生类(10.2)中相同名字的显式声明所隐藏。
A name can be hidden by an explicit declaration of that same name in a nested declarative region or derived class (10.2).
结构、联合或类超过了15级的嵌套限制。
The structure, union, or class exceeded the nesting limit, which is 15 levels.
应用推荐