org.seasar.uruma.binding.method
クラス GenericListener

java.lang.Object
  上位を拡張 org.seasar.uruma.binding.method.GenericListener
すべての実装されたインタフェース:
Listener

public class GenericListener
extends Object
implements Listener

任意のメソッドを実行できる、汎用的な Listener の実装クラスです。

作成者:
bskuroneko

コンストラクタの概要
GenericListener(PartContext context, MethodBinding methodBinding)
          GenericListener を構築します。
 
メソッドの概要
 void handleEvent(Event event)
          イベント処理を行います。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

GenericListener

public GenericListener(PartContext context,
                       MethodBinding methodBinding)
GenericListener を構築します。

パラメータ:
context - PartContext オブジェクト
methodBinding - MethodBinding オブジェクト
メソッドの詳細

handleEvent

public void handleEvent(Event event)
イベント処理を行います。

本メソッドでは、以下の処理を順に実行します。

  1. ターゲットオブジェクトへ、画面上のウィジットをバインドします。
  2. ターゲットオブジェクトへ、画面の選択状態をバインド(ImportSelection)します。
  3. ターゲットオブジェクトへ、画面の値をバインド(ImportValue)します。
  4. コンストラクタで指定された MethodBinding の呼び出しを行います。
  5. 画面へ、ターゲットオブジェクトの値をバインド(ExportValue)します。
  6. 画面の選択状態ををターゲットオブジェクトのフィールドに従ってバインド(ExportSelection)します。

定義:
インタフェース Listener 内の handleEvent
関連項目:
Listener.handleEvent(org.eclipse.swt.widgets.Event)


Copyright © 2006-2007 The Seasar Foundation. All Rights Reserved.