In my college days, I never realized what patterns were there in the Java API. Now at work I came across Delegation pattern in Objective C n Cocoa on iOS where one screen sets itself as a delegate on coming screen so that that screen can pass some message to that delegate and it can take some action when it comes back to the previous screen.
我认识到,我用的是把“这”作为“行动手段”传递给“JButton”时的类似做法,它将自动称为我在这个类别中实施的行动小组,因此我可以改变我的JFrame类别的任何案例数据。
因此,如果我正确的话,“行动”是否是一个代表的例子?
www.un.org/Depts/DGACM/index_spanish.htm EDIT: 如下文正确提到的那样,这是一种观察员模式。 我们添加一句话。 因此,可以有许多名单人参与这一行动。