It's more complicated code that requires extending a class to register an event listener.
它是更为复杂的代码,要求扩展类才能注册事件侦听程序。
As you can see, though, it takes a lot more to implement the Iterable interface manually than simply extending a class that does this work for you.
但是,您可以看到,与扩展一个现成的类来完成同样的工作相比,手动实现Iterable接口需要做的工作多得多。
When you become familiar with customizing this solution, consider creating a custom class for extending DataGrid that contains your preferred methods and properties.
当您熟悉自定义此解决方案时,请考虑创建一个自定义类,用于扩展包含首选方法和属性的DataGrid。
应用推荐