-
- 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.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
, How to Write an Action Listener
-
-
方法摘要
所有方法 接口方法 抽象方法 Modifier and Type 方法 描述 void
actionPerformed(ActionEvent e)
发生动作时调用。
-
-
-
方法详细信息
-
actionPerformed
void actionPerformed(ActionEvent e)
发生动作时调用。- 参数
-
e
- 要处理的事件
-
-