Target-action is a design pattern that enables an object to respond to a user event by sending a message to another object. The other object interprets the message and handles it as an application-specific instruction. For example, in this application a button (the object) tells the controller to send a message to the track (the target), setting the volume to zero (the action).
ターゲットアクションとはデザインパターンである。あるオブジェクトに対するユーザーイベントを他のオブジェクトに送信することで行う。受け取る方のオブジェクトはそのアプリケーション独自の決まりにそってメッセージを解釈しふるまう。たとえば実例ではボタンオブジェクトは、コントローラに対し、トラック(the target)へボリュームを0にせよ(The Action)とのメッセージを送るよう指示する。
0 件のコメント:
コメントを投稿