Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-209 (Final Approval Ballot)

Uses of Interface
javax.swing.Action

Packages that use Action
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.text Provides classes and interfaces that deal with editable and noneditable text components. 
 

Uses of Action in javax.swing
 

Classes in javax.swing that implement Action
 class AbstractAction
          This class provides default implementations for the JFC Action interface.
 

Methods in javax.swing that return Action
 Action JTextField.getAction()
          Returns the currently set Action for this ActionEvent source, or null if no Action is set.
 Action[] JTextField.getActions()
          Fetches the command list for the editor.
 Action[] JFormattedTextField.getActions()
          Fetches the command list for the editor.
protected  Action[] JFormattedTextField.AbstractFormatter.getActions()
          Subclass and override if you wish to provide a custom set of Actions.
 Action JComboBox.getAction()
          Returns the currently set Action for this ActionEvent source, or null if no Action is set.
 Action ActionMap.get(java.lang.Object key)
          Returns the binding for key, messaging the parent ActionMap if the binding is not locally defined.
 Action AbstractButton.getAction()
          Returns the currently set Action for this ActionEvent source, or null if no Action is set.
 

Methods in javax.swing with parameters of type Action
static boolean SwingUtilities.notifyAction(Action action, KeyStroke ks, java.awt.event.KeyEvent event, java.lang.Object sender, int modifiers)
          Invokes actionPerformed on action if action is enabled (and non null).
 void JTextField.setAction(Action a)
          Sets the Action for the ActionEvent source.
protected  void JTextField.configurePropertiesFromAction(Action a)
          Factory method which sets the ActionEvent source's properties according to values from the Action instance.
protected  java.beans.PropertyChangeListener JTextField.createActionPropertyChangeListener(Action a)
          Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance.
protected  void JRadioButton.configurePropertiesFromAction(Action a)
          Factory method which sets the ActionEvent source's properties according to values from the Action instance.
protected  java.beans.PropertyChangeListener JRadioButton.createActionPropertyChangeListener(Action a)
          Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance.
 JMenuItem JPopupMenu.add(Action a)
          Appends a new menu item to the end of the menu which dispatches the specified Action object.
protected  JMenuItem JPopupMenu.createActionComponent(Action a)
          Factory method which creates the JMenuItem for Actions added to the JPopupMenu.
 void JPopupMenu.insert(Action a, int index)
          Inserts a menu item for the specified Action object at a given position.
protected  void JMenuItem.configurePropertiesFromAction(Action a)
          Factory method which sets the ActionEvent source's properties according to values from the Action instance.
protected  java.beans.PropertyChangeListener JMenuItem.createActionPropertyChangeListener(Action a)
          Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance.
 JMenuItem JMenu.add(Action a)
          Creates a new menu item attached to the specified Action object and appends it to the end of this menu.
protected  JMenuItem JMenu.createActionComponent(Action a)
          Factory method which creates the JMenuItem for Actions added to the JMenu.
 JMenuItem JMenu.insert(Action a, int pos)
          Inserts a new menu item attached to the specified Action object at a given position.
protected  void JMenu.configurePropertiesFromAction(Action a)
          Factory method which sets the ActionEvent source's properties according to values from the Action instance.
 void JComboBox.setAction(Action a)
          Sets the Action for the ActionEvent source.
protected  void JComboBox.configurePropertiesFromAction(Action a)
          Factory method which sets the ActionEvent source's properties according to values from the Action instance.
protected  java.beans.PropertyChangeListener JComboBox.createActionPropertyChangeListener(Action a)
          Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance.
protected  void JCheckBox.configurePropertiesFromAction(Action a)
          Factory method which sets the ActionEvent source's properties according to values from the Action instance.
protected  java.beans.PropertyChangeListener JCheckBox.createActionPropertyChangeListener(Action a)
          Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance.
protected  void JButton.configurePropertiesFromAction(Action a)
          Factory method which sets the AbstractButton's properties according to values from the Action instance.
 void ActionMap.put(java.lang.Object key, Action action)
          Adds a binding for key to action.
 void AbstractButton.setAction(Action a)
          Sets the Action for the ActionEvent source.
protected  void AbstractButton.configurePropertiesFromAction(Action a)
          Factory method which sets the ActionEvent source's properties according to values from the Action instance.
protected  java.beans.PropertyChangeListener AbstractButton.createActionPropertyChangeListener(Action a)
          Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance.
 

Constructors in javax.swing with parameters of type Action
JToggleButton(Action a)
          Creates a toggle button where properties are taken from the Action supplied.
JRadioButton(Action a)
          Creates a radiobutton where properties are taken from the Action supplied.
JRadioButtonMenuItem(Action a)
          Creates a radio button menu item whose properties are taken from the Action supplied.
JMenuItem(Action a)
          Creates a menu item whose properties are taken from the specified Action.
JMenu(Action a)
          Constructs a menu whose properties are taken from the Action supplied.
JCheckBox(Action a)
          Creates a check box where properties are taken from the Action supplied.
JButton(Action a)
          Creates a button where properties are taken from the Action supplied.
JCheckBoxMenuItem(Action a)
          Creates a menu item whose properties are taken from the Action supplied.
 

Uses of Action in javax.swing.text
 

Methods in javax.swing.text that return Action
 Action[] JTextComponent.getActions()
          Fetches the command list for the editor.
 Action Keymap.getDefaultAction()
          Fetches the default action to fire if a key is typed (i.e.
 Action Keymap.getAction(KeyStroke key)
          Fetches the action appropriate for the given symbolic event sequence.
 Action[] Keymap.getBoundActions()
          Fetches all of the actions defined in this keymap.
abstract  Action[] EditorKit.getActions()
          Fetches the set of commands that can be used on a text component that is using a model and view produced by this kit.
 

Methods in javax.swing.text with parameters of type Action
static void JTextComponent.loadKeymap(Keymap map, JTextComponent.KeyBinding[] bindings, Action[] actions)
           Loads a keymap with a bunch of bindings.
 void Keymap.setDefaultAction(Action a)
          Set the default action to fire if a key is typed.
 KeyStroke[] Keymap.getKeyStrokesForAction(Action a)
          Fetches the keystrokes that will result in the given action.
 void Keymap.addActionForKeyStroke(KeyStroke key, Action a)
          Adds a binding to the keymap.
 


JSR-209 (Final Approval Ballot)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 209 specification.