也就是说软件应该由可重用的部件构造而成。
The idea is that software should be developed such that it can be constructed from re-usable parts.
不可能改变窗口小部件构造函数的调用次序,因为这将改变窗口小部件包装的次序。
Changing the order in which the widget constructors are called is not possible, since this would change the order in which the widgets are packed.
然后,在创建Tree部件时,使用GWT . create实例化这个新接口的实例并把它传递给Tree部件构造器(清单16的第30行)。
Then use GWT.create to instantiate an instance of the new interface and pass it to the Tree widget constructor when the Tree widget is created (Listing 16, line 30).
应用推荐