JavaTM Platform
Standard Ed. 6

クラス
java.awt.event.FocusEvent の使用

FocusEvent を使用しているパッケージ
java.awt ユーザーインタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。 
java.awt.event AWT コンポーネントによってトリガーされるさまざまな種類のイベントを処理するインタフェースとクラスを提供します。 
javax.swing すべてのプラットフォームで可能なかぎり同じように機能する「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.plaf.basic 基本 Look & Feel に従って構築されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.text 編集可能なテキストコンポーネントと編集不能なテキストコンポーネントを処理するクラスとインタフェースを提供します。 
 

java.awt での FocusEvent の使用
 

FocusEvent 型のパラメータを持つ java.awt のメソッド
 void Component.AccessibleAWTComponent.AccessibleAWTFocusHandler.focusGained(FocusEvent event)
           
 void AWTEventMulticaster.focusGained(FocusEvent e)
          リスナー a とリスナー b の focusGained メソッドを呼び出すことによって、focusGained イベントを処理します。
 void Component.AccessibleAWTComponent.AccessibleAWTFocusHandler.focusLost(FocusEvent event)
           
 void AWTEventMulticaster.focusLost(FocusEvent e)
          リスナー a とリスナー b の focusLost メソッドを呼び出すことによって、focusLost イベントを処理します。
protected  void Component.processFocusEvent(FocusEvent e)
          このコンポーネントで発生するフォーカスイベントを、登録されているすべての FocusListener オブジェクトにディスパッチすることにより処理します。
 

java.awt.event での FocusEvent の使用
 

FocusEvent 型のパラメータを持つ java.awt.event のメソッド
 void FocusListener.focusGained(FocusEvent e)
          コンポーネントがキーボードフォーカスを取得すると呼び出されます。
 void FocusAdapter.focusGained(FocusEvent e)
          コンポーネントがキーボードフォーカスを取得すると呼び出されます。
 void FocusListener.focusLost(FocusEvent e)
          コンポーネントがキーボードフォーカスを失うと呼び出されます。
 void FocusAdapter.focusLost(FocusEvent e)
          コンポーネントがキーボードフォーカスを失うと呼び出されます。
 

javax.swing での FocusEvent の使用
 

FocusEvent 型のパラメータを持つ javax.swing のメソッド
 void JComponent.AccessibleJComponent.AccessibleFocusHandler.focusGained(FocusEvent event)
           
 void JComponent.AccessibleJComponent.AccessibleFocusHandler.focusLost(FocusEvent event)
           
protected  void JPopupMenu.processFocusEvent(FocusEvent evt)
           
protected  void JFormattedTextField.processFocusEvent(FocusEvent e)
          FocusEvent.FOCUS_GAINEDFocusEvent.FOCUS_LOST などの任意のフォーカスイベントを処理します。
 

javax.swing.plaf.basic での FocusEvent の使用
 

FocusEvent 型のパラメータを持つ javax.swing.plaf.basic のメソッド
 void BasicButtonListener.focusGained(FocusEvent e)
           
 void BasicComboBoxUI.FocusHandler.focusGained(FocusEvent e)
           
 void BasicListUI.FocusHandler.focusGained(FocusEvent e)
           
 void BasicComboBoxEditor.focusGained(FocusEvent e)
           
 void BasicToolBarUI.ToolBarFocusListener.focusGained(FocusEvent e)
           
 void BasicTabbedPaneUI.FocusHandler.focusGained(FocusEvent e)
           
 void BasicTableUI.FocusHandler.focusGained(FocusEvent e)
           
 void BasicTreeUI.FocusHandler.focusGained(FocusEvent e)
          ツリー内でフォーカスがアクティブになったときに呼び出され、リード行を描画し直します。
 void BasicSplitPaneUI.FocusHandler.focusGained(FocusEvent ev)
           
 void BasicSliderUI.FocusHandler.focusGained(FocusEvent e)
           
 void BasicButtonListener.focusLost(FocusEvent e)
           
 void BasicComboBoxUI.FocusHandler.focusLost(FocusEvent e)
           
 void BasicListUI.FocusHandler.focusLost(FocusEvent e)
           
 void BasicComboBoxEditor.focusLost(FocusEvent e)
           
 void BasicToolBarUI.ToolBarFocusListener.focusLost(FocusEvent e)
           
 void BasicTabbedPaneUI.FocusHandler.focusLost(FocusEvent e)
           
 void BasicTableUI.FocusHandler.focusLost(FocusEvent e)
           
 void BasicTreeUI.FocusHandler.focusLost(FocusEvent e)
          ツリー内でフォーカスがアクティブになったときに呼び出され、リード行を描画し直します。
 void BasicSplitPaneUI.FocusHandler.focusLost(FocusEvent ev)
           
 void BasicSliderUI.FocusHandler.focusLost(FocusEvent e)
           
 

javax.swing.text での FocusEvent の使用
 

FocusEvent 型のパラメータを持つ javax.swing.text のメソッド
 void DefaultCaret.focusGained(FocusEvent e)
          キャレットを含むコンポーネントがフォーカスを得たときに呼び出されます。
 void DefaultCaret.focusLost(FocusEvent e)
          キャレットを含むコンポーネントがフォーカスを失ったときに呼び出されます。
 


JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。