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

java.lang.Object
  上位を拡張 org.seasar.uruma.binding.method.AbstractGenericListener
直系の既知のサブクラス:
GenericDoubleClickListener, GenericListener, GenericSelectionChangedListener, GenericSWTSelectionListener, WindowCloseListener

public abstract class AbstractGenericListener
extends Object

MethodBinding を使用してメソッドを呼び出す汎用リスナのための基底クラスです。

作成者:
y-komori

フィールドの概要
protected  PartContext context
           
protected  MethodBinding methodBinding
           
 
メソッドの概要
protected  Object invokeMethod()
          MethodBinding に対する呼び出しを行います。
protected  Object invokeMethod(Object event)
          MethodBinding に対する呼び出しを行います。
protected  boolean isDisposed(Object event)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

context

protected PartContext context

methodBinding

protected MethodBinding methodBinding
メソッドの詳細

invokeMethod

protected Object invokeMethod()
MethodBinding に対する呼び出しを行います。

戻り値:
メソッドの戻り値。メソッドの呼び出し中に例外が発生した場合は null

invokeMethod

protected Object invokeMethod(Object event)
MethodBinding に対する呼び出しを行います。

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

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

パラメータ:
event - イベントオブジェクト
戻り値:
メソッドの戻り値。メソッドの呼び出し中に例外が発生した場合は null

isDisposed

protected boolean isDisposed(Object event)


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