-
所有超级接口:
-
EventListener
-
所有已知子接口:
-
Action
-
所有已知实现类:
-
AbstractAction,
AWTEventMulticaster,
BasicDesktopPaneUI.CloseAction,
BasicDesktopPaneUI.MaximizeAction,
BasicDesktopPaneUI.MinimizeAction,
BasicDesktopPaneUI.NavigateAction,
BasicDesktopPaneUI.OpenAction,
BasicFileChooserUI.ApproveSelectionAction,
BasicFileChooserUI.CancelSelectionAction,
BasicFileChooserUI.ChangeToParentDirectoryAction,
BasicFileChooserUI.GoHomeAction,
BasicFileChooserUI.NewFolderAction,
BasicFileChooserUI.UpdateAction,
BasicInternalFrameTitlePane.CloseAction,
BasicInternalFrameTitlePane.IconifyAction,
BasicInternalFrameTitlePane.MaximizeAction,
BasicInternalFrameTitlePane.MoveAction,
BasicInternalFrameTitlePane.RestoreAction,
BasicInternalFrameTitlePane.SizeAction,
BasicOptionPaneUI.ButtonActionListener,
BasicScrollBarUI.ScrollListener,
BasicSliderUI.ActionScroller,
BasicSliderUI.ScrollListener,
BasicSplitPaneUI.KeyboardDownRightHandler,
BasicSplitPaneUI.KeyboardEndHandler,
BasicSplitPaneUI.KeyboardHomeHandler,
BasicSplitPaneUI.KeyboardResizeToggleHandler,
BasicSplitPaneUI.KeyboardUpLeftHandler,
BasicTreeUI.ComponentHandler,
BasicTreeUI.TreeCancelEditingAction,
BasicTreeUI.TreeHomeAction,
BasicTreeUI.TreeIncrementAction,
BasicTreeUI.TreePageAction,
BasicTreeUI.TreeToggleAction,
BasicTreeUI.TreeTraverseAction,
DefaultCellEditor.EditorDelegate,
DefaultEditorKit.BeepAction,
DefaultEditorKit.CopyAction,
DefaultEditorKit.CutAction,
DefaultEditorKit.DefaultKeyTypedAction,
DefaultEditorKit.InsertBreakAction,
DefaultEditorKit.InsertContentAction,
DefaultEditorKit.InsertTabAction,
DefaultEditorKit.PasteAction,
DefaultTreeCellEditor,
DropTarget.DropTargetAutoScroller,
FormView,
HTMLEditorKit.HTMLTextAction,
HTMLEditorKit.InsertHTMLTextAction,
JComboBox,
List.AccessibleAWTList,
MetalFileChooserUI.DirectoryComboBoxAction,
StyledEditorKit.AlignmentAction,
StyledEditorKit.BoldAction,
StyledEditorKit.FontFamilyAction,
StyledEditorKit.FontSizeAction,
StyledEditorKit.ForegroundAction,
StyledEditorKit.ItalicAction,
StyledEditorKit.StyledTextAction,
StyledEditorKit.UnderlineAction,
TextAction,
ToolTipManager.insideTimerAction,
ToolTipManager.outsideTimerAction,
ToolTipManager.stillInsideTimerAction
-
public interface ActionListener
-
extends
EventListener
用于接收操作事件的侦听器接口。对处理操作事件感兴趣的类可以实现此接口,而使用该类创建的对象可使用组件的 addActionListener
方法向该组件注册。在发生操作事件时,调用该对象的 actionPerformed
方法。
-
从以下版本开始:
-
1.1
-
另请参见:
-
ActionEvent
,
Tutorial: Java 1.1 Event Model
actionPerformed
void actionPerformed(ActionEvent e)
-
发生操作时调用。
-
-