-
- All Superinterfaces:
-
EventListener
- All Known Subinterfaces:
-
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.outsideTimerAction
,ToolTipManager.stillInsideTimerAction
public interface ActionListener extends EventListener
用于接收动作事件的侦听器接口。 对处理动作事件感兴趣的类实现此接口,并使用组件的addActionListener
方法向组件注册使用该类创建的对象。 当动作事件发生时,将调用该对象的actionPerformed
方法。- 从以下版本开始:
- 1.1
- 另请参见:
-
ActionEvent
, How to Write an Action Listener
-
-
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 void
actionPerformed(ActionEvent e)
发生操作时调用。
-
-
-
方法详细信息
-
actionPerformed
void actionPerformed(ActionEvent e)
发生操作时调用。- 参数
-
e
- 要处理的事件
-
-