make the form a nested class within your component.
使窗体成为组件中的嵌套类。
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.
当你有足够多的功能需要归并到一个类里,并且这个类在仅会被外层类所使用时,一个嵌套类就非常有用。
the only difference is that a package can contain nested class elements in addition to package elements.
唯一区别在于package除package元素外可以包含嵌套的class元素。 通过将「.」
the nested class studentimpl is the implementation of the student trait, which thus provides the get()/set() method pairs demanded by it.
嵌套类studentimpl是student特征的实现,因而提供了必需的get()/set()方法对。
if the nested class is a static class, a box showing a preview of the refactoring displays right away.
如果这个嵌套类是一个静态类,那么就会立即出现一个框,显示这个重构的预览。
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.
convertanonymousclasstonested重构能够接受一个匿名类并将其转换为最初包含这个匿名类的方法的一个嵌套类。
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.
如果它不是一个静态类,那么需要首先声明保存有对此嵌套类的父类的引用的那个字段的名称,之后才能看到这个预览框。
in this example, a nested class hides a class that has the same name in the base class.
在这个范例中,巢状类别会隐藏基底类别中具有相同名称的类别。