JavaTM 2 Platform
Standard Ed. 6

類別 java.awt.event.FocusEvent
的使用

使用 FocusEvent 的軟體套件
java.awt 包含用於創建使用者介面和繪製圖形圖像的全部類別。 
java.awt.event 提供處理由 AWT 元件所觸發的各類別事件的介面和類別。 
javax.swing 提供一組“輕量級”(全部是 Java 語言)元件,盡量讓這些元件在所有平臺上的工作方式都相同。 
javax.swing.plaf.basic 提供了根據基本外觀建構的使用者介面物件。 
javax.swing.text 提供類別 HTMLEditorKit 和創建 HTML 文本編輯器的支持類別。 
 

java.awt 中 FocusEvent 的使用
 

參數型別為 FocusEvent 的 java.awt 中的方法
 void AWTEventMulticaster.focusGained(FocusEvent e)
          通過在偵聽器 a 和偵聽器 b 上調用 focusGained 方法處理 focusGained 事件。
 void Component.AccessibleAWTComponent.AccessibleAWTFocusHandler.focusGained(FocusEvent event)
           
 void AWTEventMulticaster.focusLost(FocusEvent e)
          通過在偵聽器 a 和偵聽器 b 上調用 focusLost 方法處理 focusLost 事件。
 void Component.AccessibleAWTComponent.AccessibleAWTFocusHandler.focusLost(FocusEvent event)
           
protected  void Component.processFocusEvent(FocusEvent e)
          處理元件上發生的焦點事件,方法是將其指派到任意已註冊的 FocusListener 物件。
 

java.awt.event 中 FocusEvent 的使用
 

參數型別為 FocusEvent 的 java.awt.event 中的方法
 void FocusAdapter.focusGained(FocusEvent e)
          元件獲得鍵盤焦點時調用。
 void FocusListener.focusGained(FocusEvent e)
          元件獲得鍵盤焦點時調用。
 void FocusAdapter.focusLost(FocusEvent e)
          元件失去鍵盤焦點時調用。
 void FocusListener.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 JFormattedTextField.processFocusEvent(FocusEvent e)
          處理所有的焦點事件,如 FocusEvent.FOCUS_GAINED 或 FocusEvent.FOCUS_LOST。
protected  void JPopupMenu.processFocusEvent(FocusEvent evt)
           
 

javax.swing.plaf.basic 中 FocusEvent 的使用
 

參數型別為 FocusEvent 的 javax.swing.plaf.basic 中的方法
 void BasicSliderUI.FocusHandler.focusGained(FocusEvent e)
           
 void BasicSplitPaneUI.FocusHandler.focusGained(FocusEvent ev)
           
 void BasicTreeUI.FocusHandler.focusGained(FocusEvent e)
          在當前階層樹上啟動焦點、重繪前導行時調用。
 void BasicTableUI.FocusHandler.focusGained(FocusEvent e)
           
 void BasicTabbedPaneUI.FocusHandler.focusGained(FocusEvent e)
           
 void BasicComboBoxEditor.focusGained(FocusEvent e)
           
 void BasicListUI.FocusHandler.focusGained(FocusEvent e)
           
 void BasicComboBoxUI.FocusHandler.focusGained(FocusEvent e)
           
 void BasicToolBarUI.ToolBarFocusListener.focusGained(FocusEvent e)
           
 void BasicButtonListener.focusGained(FocusEvent e)
           
 void BasicSliderUI.FocusHandler.focusLost(FocusEvent e)
           
 void BasicSplitPaneUI.FocusHandler.focusLost(FocusEvent ev)
           
 void BasicTreeUI.FocusHandler.focusLost(FocusEvent e)
          在當前階層樹上啟動焦點、重繪前導行時調用。
 void BasicTableUI.FocusHandler.focusLost(FocusEvent e)
           
 void BasicTabbedPaneUI.FocusHandler.focusLost(FocusEvent e)
           
 void BasicComboBoxEditor.focusLost(FocusEvent e)
           
 void BasicListUI.FocusHandler.focusLost(FocusEvent e)
           
 void BasicComboBoxUI.FocusHandler.focusLost(FocusEvent e)
           
 void BasicToolBarUI.ToolBarFocusListener.focusLost(FocusEvent e)
           
 void BasicButtonListener.focusLost(FocusEvent e)
           
 

javax.swing.text 中 FocusEvent 的使用
 

參數型別為 FocusEvent 的 javax.swing.text 中的方法
 void DefaultCaret.focusGained(FocusEvent e)
          在包含插入符的元件獲得焦點時調用。
 void DefaultCaret.focusLost(FocusEvent e)
          在包含插入符的元件失去焦點時調用。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。