jp.go.aist.dmrc.platform.util.event
クラス PFKeyEventSourceImpl

java.lang.Object
  上位を拡張 jp.go.aist.dmrc.platform.util.event.PFKeyEventSourceImpl
すべての実装されたインタフェース:
java.io.Serializable, PFEventSource, PFKeyEventSource

public class PFKeyEventSourceImpl
extends java.lang.Object
implements PFKeyEventSource

キーイベントを発生させるイベントソース実装。

関連項目:
PFKeyEvent, PFKeyListener, 直列化された形式

コンストラクタの概要
PFKeyEventSourceImpl()
           
 
メソッドの概要
 void addPFKeyListener(PFKeyListener lis)
          引数で与えられたイベントリスナを登録し、 キーイベント発生時に処理を行う対象とする。
 void fireKeyActionPerformed(PFKeyEvent e)
          キーイベントをすべてのイベントリスナに伝える。
 java.util.Iterator getPFKeyListenerList()
          イベントリスナ配列を取得する。
 void removePFKeyListener(PFKeyListener lis)
          引数で与えられたイベントリスナを削除し、 キーイベント発生時に処理を行う対象から外す。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PFKeyEventSourceImpl

public PFKeyEventSourceImpl()
メソッドの詳細

getPFKeyListenerList

public java.util.Iterator getPFKeyListenerList()
イベントリスナ配列を取得する。

定義:
インタフェース PFKeyEventSource 内の getPFKeyListenerList
戻り値:
イベントリスナイテレータ

addPFKeyListener

public void addPFKeyListener(PFKeyListener lis)
引数で与えられたイベントリスナを登録し、 キーイベント発生時に処理を行う対象とする。

定義:
インタフェース PFKeyEventSource 内の addPFKeyListener
パラメータ:
lis - 追加対象イベントリスナ

removePFKeyListener

public void removePFKeyListener(PFKeyListener lis)
引数で与えられたイベントリスナを削除し、 キーイベント発生時に処理を行う対象から外す。

定義:
インタフェース PFKeyEventSource 内の removePFKeyListener
パラメータ:
lis - 削除対象イベントリスナ

fireKeyActionPerformed

public void fireKeyActionPerformed(PFKeyEvent e)
                            throws PFMethodException,
                                   PFRuntimeException
キーイベントをすべてのイベントリスナに伝える。

パラメータ:
e - 発生したイベント
例外:
PFMethodException - メソッド実行の失敗
PFRuntimeException - 予期しない実行時エラー