This pattern lets us hide a complicated interface by substituting a class or component with a simplified interface.
将类或组件以一个简化界面替代,该模式可以使我们将复杂的界面隐藏起来。
A UML interface is defined as a collection of operations that are used to specify a service of a class or component.
所谓的UML接口定义为用于指定类或者构件服务的一系列操作。
Instead of creating a class that implements an interface and registering that implementation with the component whose event you are interested in, you create an EventHandler instance and register it.
它不是创建一个实现了接口的类、并将这个实现注册到需要监听的事件所在的组件上,而是创建一个EventHandler实例并注册它。
应用推荐