Listing 14: Code for script to use with widget class.
列表14:脚本所使用的小窗口代码。
In fact, our Widget class above could have been declared to be a trait.
实际上,我们的Widget类也可以被声明为一个trait。
A script can now use this widget class by including code similar to the following.
脚本可按照如下代码使用小窗口类。
Widget是一个抽象类。
Widget是一个抽象类。
应用推荐