站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Uses of Interface java.awt.event.ActionListener - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

Uses of Interface
java.awt.event.ActionListener

Packages that use ActionListener
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
java.awt.dnd Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI. 
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.plaf.basic Provides user interface objects built according to the Basic look-and-feel. 
javax.swing.plaf.metal Provides user interface objects built according to the ``metal'' look-and-feel. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
javax.swing.text.html Provides the class HTMLEditorKit and supporting classes for creating HTML text editors. 
javax.swing.tree Provides classes and interfaces for dealing with java.awt.swing.JTree. 
 

Uses of ActionListener in java.awt
 

Classes in java.awt that implement ActionListener
 class AWTEventMulticaster
          A class which implements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the java.awt.event package.
 

Methods in java.awt that return ActionListener
static ActionListener AWTEventMulticaster.add(ActionListener a, ActionListener b)
          Adds action-listener-a with action-listener-b and returns the resulting multicast listener.
static ActionListener AWTEventMulticaster.remove(ActionListener l, ActionListener oldl)
          Removes the old action-listener from action-listener-l and returns the resulting multicast listener.
 

Methods in java.awt with parameters of type ActionListener
 void MenuItem.addActionListener(ActionListener l)
          Adds the specified action listener to receive action events from this menu item.
 void MenuItem.removeActionListener(ActionListener l)
          Removes the specified action listener so it no longer receives action events from this menu item.
 void Button.addActionListener(ActionListener l)
          Adds the specified action listener to receive action events from this button.
 void Button.removeActionListener(ActionListener l)
          Removes the specified action listener so that it no longer receives action events from this button.
 void TextField.addActionListener(ActionListener l)
          Adds the specified action listener to receive action events from this text field.
 void TextField.removeActionListener(ActionListener l)
          Removes the specified action listener so that it no longer receives action events from this text field.
 void List.addActionListener(ActionListener l)
          Adds the specified action listener to receive action events from this list.
 void List.removeActionListener(ActionListener l)
          Removes the specified action listener so that it no longer receives action events from this list.
static ActionListener AWTEventMulticaster.add(ActionListener a, ActionListener b)
          Adds action-listener-a with action-listener-b and returns the resulting multicast listener.
static ActionListener AWTEventMulticaster.remove(ActionListener l, ActionListener oldl)
          Removes the old action-listener from action-listener-l and returns the resulting multicast listener.
 

Uses of ActionListener in java.awt.dnd
 

Classes in java.awt.dnd that implement ActionListener
protected static class DropTarget.DropTargetAutoScroller
          this protected nested class implements autoscrolling
 

Uses of ActionListener in javax.swing
 

Subinterfaces of ActionListener in javax.swing
 interface Action
          The JFC Action interface provides a useful extension to the ActionListner interface in cases where the same functionality may be accessed by several controls.
 

Classes in javax.swing that implement ActionListener
 class AbstractAction
          This class provides default implementations for the JFC Action interface.
protected  class DefaultCellEditor.EditorDelegate
           
 class JComboBox
          Swing's implementation of a ComboBox -- a combination of a text field and drop-down list that lets the user either type in a value or select it from a list that is displayed when the user asks for it.
protected  class ToolTipManager.insideTimerAction
           
protected  class ToolTipManager.outsideTimerAction
           
protected  class ToolTipManager.stillInsideTimerAction
           
 

Fields in javax.swing declared as ActionListener
protected  ActionListener AbstractButton.actionListener
           
 

Methods in javax.swing that return ActionListener
 ActionListener JComponent.getActionForKeyStroke(KeyStroke aKeyStroke)
          Return the object that will perform the action registered for a given keystroke.
protected  ActionListener AbstractButton.createActionListener()
           
 

Methods in javax.swing with parameters of type ActionListener
 void JComponent.registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)
          Register a new keyboard action.
 void JComponent.registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)
          Calls registerKeyboardAction(ActionListener,String,KeyStroke,condition) with a null command.
 void Timer.addActionListener(ActionListener listener)
          Adds an actionListener to the Timer
 void Timer.removeActionListener(ActionListener listener)
          Removes an ActionListener from the Timer.
static JDialog JColorChooser.createDialog(Component c, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener)
          Creates and returns a new dialog containing the specified ColorChooser pane along with "OK", "Cancel", and "Reset" buttons.
 void JTextField.addActionListener(ActionListener l)
          Adds the specified action listener to receive action events from this textfield.
 void JTextField.removeActionListener(ActionListener l)
          Removes the specified action listener so that it no longer receives action events from this textfield.
 void AbstractButton.addActionListener(ActionListener l)
          adds an ActionListener to the button
 void AbstractButton.removeActionListener(ActionListener l)
          removes an ActionListener from the button
 void ButtonModel.addActionListener(ActionListener l)
          Adds an ActionListener to the button.
 void ButtonModel.removeActionListener(ActionListener l)
          Removes an ActionListener from the button.
 void JFileChooser.addActionListener(ActionListener l)
          adds an ActionListener to the button
 void JFileChooser.removeActionListener(ActionListener l)
          removes an ActionListener from the button
 void ComboBoxEditor.addActionListener(ActionListener l)
          Add an ActionListener.
 void ComboBoxEditor.removeActionListener(ActionListener l)
          Remove an ActionListener
 void JComboBox.addActionListener(ActionListener l)
          Adds an ActionListener.
 void JComboBox.removeActionListener(ActionListener l)
          Removes an ActionListener
 void DefaultButtonModel.addActionListener(ActionListener l)
          Adds an ActionListener to the button.
 void DefaultButtonModel.removeActionListener(ActionListener l)
          Removes an ActionListener from the button.
 

Constructors in javax.swing with parameters of type ActionListener
Timer.Timer(int delay, ActionListener listener)
          Creates a Timer that will notify its listeners every delay milliseconds.
 

Uses of ActionListener in javax.swing.plaf.basic
 

Classes in javax.swing.plaf.basic that implement ActionListener
protected  class BasicDesktopPaneUI.CloseAction
           
protected  class BasicDesktopPaneUI.MaximizeAction
           
protected  class BasicDesktopPaneUI.MinimizeAction
           
protected  class BasicDesktopPaneUI.NavigateAction
           
protected  class BasicFileChooserUI.ApproveSelectionAction
          Responds to an Open or Save request
protected  class BasicFileChooserUI.CancelSelectionAction
          Responds to a cancel request.
protected  class BasicFileChooserUI.ChangeToParentDirectoryAction
           
protected  class BasicFileChooserUI.GoHomeAction
          Acts on the "home" key event or equivalent event.
protected  class BasicFileChooserUI.NewFolderAction
          Creates a new folder.
protected  class BasicFileChooserUI.UpdateAction
          Rescans the files in the current directory
 class BasicInternalFrameTitlePane.CloseAction
          This inner class is marked "public" due to a compiler bug.
 class BasicInternalFrameTitlePane.IconifyAction
          This inner class is marked "public" due to a compiler bug.
 class BasicInternalFrameTitlePane.MaximizeAction
          This inner class is marked "public" due to a compiler bug.
 class BasicInternalFrameTitlePane.MoveAction
          This inner class is marked "public" due to a compiler bug.
 class BasicInternalFrameTitlePane.RestoreAction
          This inner class is marked "public" due to a compiler bug.
 class BasicInternalFrameTitlePane.SizeAction
          This inner class is marked "public" due to a compiler bug.
 class BasicOptionPaneUI.ButtonActionListener
          This inner class is marked "public" due to a compiler bug.
protected  class BasicScrollBarUI.ScrollListener
          Listener for scrolling events intiated in the ScrollPane.
 class BasicSliderUI.ActionScroller
          Defines the action to take when scrolled.
 class BasicSliderUI.ScrollListener
          Scroll-event listener.
 class BasicSplitPaneUI.KeyboardDownRightHandler
          Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
 class BasicSplitPaneUI.KeyboardEndHandler
          Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
 class BasicSplitPaneUI.KeyboardHomeHandler
          Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
 class BasicSplitPaneUI.KeyboardResizeToggleHandler
          Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
 class BasicSplitPaneUI.KeyboardUpLeftHandler
          Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
 class BasicTreeUI.ComponentHandler
          Updates the preferred size when scrolling (if necessary).
 class BasicTreeUI.TreeCancelEditingAction
          ActionListener that invokes cancelEditing when action performed.
 class BasicTreeUI.TreeHomeAction
          TreeHomeAction is used to handle end/home actions.
 class BasicTreeUI.TreeIncrementAction
          TreeIncrementAction is used to handle up/down actions.
 class BasicTreeUI.TreePageAction
          TreePageAction handles page up and page down events.
 class BasicTreeUI.TreeToggleAction
          For the first selected row expandedness will be toggled.
 class BasicTreeUI.TreeTraverseAction
          TreeTraverseAction is the action used for left/right keys.
 

Fields in javax.swing.plaf.basic declared as ActionListener
protected  ActionListener BasicSplitPaneUI.keyboardUpLeftListener
          The handlers that are handling the keystrokes for keyboard navigation.
protected  ActionListener BasicSplitPaneUI.keyboardDownRightListener
           
protected  ActionListener BasicSplitPaneUI.keyboardHomeListener
           
protected  ActionListener BasicSplitPaneUI.keyboardEndListener
           
protected  ActionListener BasicSplitPaneUI.keyboardResizeToggleListener
           
 

Methods in javax.swing.plaf.basic that return ActionListener
protected  ActionListener BasicOptionPaneUI.createButtonActionListener(int buttonIndex)
           
protected  ActionListener BasicSplitPaneUI.createKeyboardUpLeftListener()
          Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
protected  ActionListener BasicSplitPaneUI.createKeyboardDownRightListener()
          Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
protected  ActionListener BasicSplitPaneUI.createKeyboardHomeListener()
          Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
protected  ActionListener BasicSplitPaneUI.createKeyboardEndListener()
          Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
protected  ActionListener BasicSplitPaneUI.createKeyboardResizeToggleListener()
          Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
 

Methods in javax.swing.plaf.basic with parameters of type ActionListener
 void BasicComboBoxEditor.addActionListener(ActionListener l)
           
 void BasicComboBoxEditor.removeActionListener(ActionListener l)
           
 

Uses of ActionListener in javax.swing.plaf.metal
 

Classes in javax.swing.plaf.metal that implement ActionListener
protected  class MetalFileChooserUI.DirectoryComboBoxAction
          Acts when DirectoryComboBox has changed the selected item.
 

Uses of ActionListener in javax.swing.text
 

Classes in javax.swing.text that implement ActionListener
static class DefaultEditorKit.BeepAction
          Creates a beep.
static class DefaultEditorKit.CopyAction
          Coies the selected region and place its contents into the system clipboard.
static class DefaultEditorKit.CutAction
          Cuts the selected region and place its contents into the system clipboard.
static class DefaultEditorKit.DefaultKeyTypedAction
          The action that is executed by default if a key typed event is received and there is no keymap entry.
static class DefaultEditorKit.InsertBreakAction
          Places a line/paragraph break into the document.
static class DefaultEditorKit.InsertContentAction
          Places content into the associated document.
static class DefaultEditorKit.InsertTabAction
          Places a tab character into the document.
static class DefaultEditorKit.PasteAction
          Pastes the contents of the system clipboard into the selected region, or before the caret if nothing is selected.
static class StyledEditorKit.AlignmentAction
          An action to set paragraph alignment.
static class StyledEditorKit.BoldAction
          An action to toggle the bold attribute.
static class StyledEditorKit.FontFamilyAction
          An action to set the font family in the associated JEditorPane.
static class StyledEditorKit.FontSizeAction
          An action to set the font size in the associated JEditorPane.
static class StyledEditorKit.ForegroundAction
          An action to set foreground color.
static class StyledEditorKit.ItalicAction
          An action to toggle the italic attribute.
static class StyledEditorKit.StyledTextAction
          An action that assumes it's being fired on a JEditorPane with a StyledEditorKit (or subclass) installed.
static class StyledEditorKit.UnderlineAction
          An action to toggle the underline attribute.
 class TextAction
          An Action implementation useful for key bindings that are shared across a number of different text components.
 

Uses of ActionListener in javax.swing.text.html
 

Classes in javax.swing.text.html that implement ActionListener
 class FormView
          Component decorator that implements the view interface for form elements, <input>, <textarea>, and <select>.
static class HTMLEditorKit.HTMLTextAction
          An abstract Action providing some convenience methods that may be useful in inserting HTML into an existing document.
static class HTMLEditorKit.InsertHTMLTextAction
          InsertHTMLTextAction can be used to insert an arbitrary string of HTML into an existing HTML document.
 

Uses of ActionListener in javax.swing.tree
 

Classes in javax.swing.tree that implement ActionListener
 class DefaultTreeCellEditor
          A TreeCellEditor.
 


JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.