| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| 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.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 Java look and feel (once codenamed Metal), which is the default 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 HTMLEditorKitand supporting classes
for creating HTML text editors. | 
| Uses of Action in javax.swing | 
|---|
| Classes in javax.swing that implement Action | |
|---|---|
|  class | AbstractActionThis class provides default implementations for the JFC Actioninterface. | 
| Methods in javax.swing that return Action | |
|---|---|
|  Action | ActionMap.get(Object key)Returns the binding for key, messaging the 
 parentActionMapif the binding is not locally defined. | 
|  Action | JTextField.getAction()Returns the currently set Actionfor thisActionEventsource, ornullif noActionis set. | 
|  Action | JComboBox.getAction()Returns the currently set Actionfor thisActionEventsource, ornullif noActionis set. | 
|  Action | AbstractButton.getAction()Returns the currently set Actionfor thisActionEventsource, ornullif noActionis set. | 
|  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[] | JTextField.getActions()Fetches the command list for the editor. | 
| static Action | TransferHandler.getCopyAction()Returns an Actionthat performs copy operations to the
 clipboard. | 
| static Action | TransferHandler.getCutAction()Returns an Actionthat performs cut operations to the
 clipboard. | 
| static Action | TransferHandler.getPasteAction()Returns an Actionthat performs paste operations from the
 clipboard. | 
| Methods in javax.swing with parameters of type Action | |
|---|---|
| protected  void | JTextField.actionPropertyChanged(Action action,
                      String propertyName)Updates the textfield's state in response to property changes in associated action. | 
| protected  void | JComboBox.actionPropertyChanged(Action action,
                      String propertyName)Updates the combobox's state in response to property changes in associated action. | 
| protected  void | JMenuItem.actionPropertyChanged(Action action,
                      String propertyName)Updates the button's state in response to property changes in the associated action. | 
| protected  void | AbstractButton.actionPropertyChanged(Action action,
                      String propertyName)Updates the button's state in response to property changes in the associated action. | 
|  JButton | JToolBar.add(Action a)Adds a new JButtonwhich dispatches the action. | 
|  JMenuItem | JPopupMenu.add(Action a)Appends a new menu item to the end of the menu which dispatches the specified Actionobject. | 
|  JMenuItem | JMenu.add(Action a)Creates a new menu item attached to the specified Actionobject and appends it to the end of this menu. | 
| protected  void | JTextField.configurePropertiesFromAction(Action a)Sets the properties on this textfield to match those in the specified Action. | 
| protected  void | JComboBox.configurePropertiesFromAction(Action a)Sets the properties on this combobox to match those in the specified Action. | 
| protected  void | JMenuItem.configurePropertiesFromAction(Action a)Sets the properties on this button to match those in the specified Action. | 
| protected  void | AbstractButton.configurePropertiesFromAction(Action a)Sets the properties on this button to match those in the specified Action. | 
| protected  JButton | JToolBar.createActionComponent(Action a)Factory method which creates the JButtonforActions added to theJToolBar. | 
| protected  JMenuItem | JPopupMenu.createActionComponent(Action a)Factory method which creates the JMenuItemforActionsadded to theJPopupMenu. | 
| protected  JMenuItem | JMenu.createActionComponent(Action a)Factory method which creates the JMenuItemforActions added to theJMenu. | 
| protected  PropertyChangeListener | JTextField.createActionPropertyChangeListener(Action a)Creates and returns a PropertyChangeListenerthat is
 responsible for listening for changes from the specifiedActionand updating the appropriate properties. | 
| protected  PropertyChangeListener | JComboBox.createActionPropertyChangeListener(Action a)Creates and returns a PropertyChangeListenerthat is
 responsible for listening for changes from the specifiedActionand updating the appropriate properties. | 
| protected  PropertyChangeListener | AbstractButton.createActionPropertyChangeListener(Action a)Creates and returns a PropertyChangeListenerthat is
 responsible for listening for changes from the specifiedActionand updating the appropriate properties. | 
|  void | JPopupMenu.insert(Action a,
       int index)Inserts a menu item for the specified Actionobject at 
 a given position. | 
|  JMenuItem | JMenu.insert(Action a,
       int pos)Inserts a new menu item attached to the specified Actionobject at a given position. | 
| static boolean | SwingUtilities.notifyAction(Action action,
             KeyStroke ks,
             KeyEvent event,
             Object sender,
             int modifiers)Invokes actionPerformedonactionifactionis enabled (and non-null). | 
|  void | ActionMap.put(Object key,
    Action action)Adds a binding for keytoaction. | 
|  void | JTextField.setAction(Action a)Sets the Actionfor theActionEventsource. | 
|  void | JComboBox.setAction(Action a)Sets the Actionfor theActionEventsource. | 
|  void | AbstractButton.setAction(Action a)Sets the Action. | 
| Constructors in javax.swing with parameters of type Action | |
|---|---|
| JButton(Action a)Creates a button where properties are taken from the Actionsupplied. | |
| JCheckBox(Action a)Creates a check box where properties are taken from the Action supplied. | |
| JCheckBoxMenuItem(Action a)Creates a menu item whose properties are taken from the Action supplied. | |
| JMenu(Action a)Constructs a menu whose properties are taken from the Actionsupplied. | |
| JMenuItem(Action a)Creates a menu item whose properties are taken from the specified Action. | |
| 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 Actionsupplied. | |
| JToggleButton(Action a)Creates a toggle button where properties are taken from the Action supplied. | |
| Uses of Action in javax.swing.plaf.basic | 
|---|
| Classes in javax.swing.plaf.basic that implement Action | |
|---|---|
| protected  class | BasicDesktopPaneUI.CloseActionHandles closing an internal frame. | 
| protected  class | BasicDesktopPaneUI.MaximizeActionHandles maximizing an internal frame. | 
| protected  class | BasicDesktopPaneUI.MinimizeActionHandles minimizing an internal frame. | 
| protected  class | BasicDesktopPaneUI.NavigateActionHandles navigating to the next internal frame. | 
| protected  class | BasicDesktopPaneUI.OpenActionHandles restoring a minimized or maximized internal frame. | 
| protected  class | BasicFileChooserUI.ApproveSelectionActionResponds to an Open or Save request | 
| protected  class | BasicFileChooserUI.CancelSelectionActionResponds to a cancel request. | 
| protected  class | BasicFileChooserUI.ChangeToParentDirectoryAction | 
| protected  class | BasicFileChooserUI.GoHomeActionActs on the "home" key event or equivalent event. | 
| protected  class | BasicFileChooserUI.NewFolderActionCreates a new folder. | 
| protected  class | BasicFileChooserUI.UpdateActionRescans the files in the current directory | 
|  class | BasicInternalFrameTitlePane.CloseActionThis class should be treated as a "protected" inner class. | 
|  class | BasicInternalFrameTitlePane.IconifyActionThis class should be treated as a "protected" inner class. | 
|  class | BasicInternalFrameTitlePane.MaximizeActionThis class should be treated as a "protected" inner class. | 
|  class | BasicInternalFrameTitlePane.MoveActionThis class should be treated as a "protected" inner class. | 
|  class | BasicInternalFrameTitlePane.RestoreActionThis class should be treated as a "protected" inner class. | 
|  class | BasicInternalFrameTitlePane.SizeActionThis class should be treated as a "protected" inner class. | 
|  class | BasicSliderUI.ActionScrollerAs of Java 2 platform v1.3 this undocumented class is no longer used. | 
|  class | BasicTreeUI.TreeCancelEditingActionActionListener that invokes cancelEditing when action performed. | 
|  class | BasicTreeUI.TreeHomeActionTreeHomeAction is used to handle end/home actions. | 
|  class | BasicTreeUI.TreeIncrementActionTreeIncrementAction is used to handle up/down actions. | 
|  class | BasicTreeUI.TreePageActionTreePageAction handles page up and page down events. | 
|  class | BasicTreeUI.TreeToggleActionFor the first selected row expandedness will be toggled. | 
|  class | BasicTreeUI.TreeTraverseActionTreeTraverseActionis the action used for left/right keys. | 
| Fields in javax.swing.plaf.basic declared as Action | |
|---|---|
| protected  Action | BasicInternalFrameTitlePane.closeAction | 
| protected  Action | BasicInternalFrameTitlePane.iconifyAction | 
| protected  Action | BasicInternalFrameTitlePane.maximizeAction | 
| protected  Action | BasicInternalFrameTitlePane.moveAction | 
| protected  Action | BasicTreeUI.KeyHandler.repeatKeyActionKey code that is being generated for. | 
| protected  Action | BasicInternalFrameTitlePane.restoreAction | 
| protected  Action | BasicInternalFrameTitlePane.sizeAction | 
| Methods in javax.swing.plaf.basic that return Action | |
|---|---|
| protected  Action | BasicLookAndFeel.createAudioAction(Object key)Creates and returns an Actionused to play a sound. | 
|  Action | BasicFileChooserUI.getApproveSelectionAction() | 
|  Action | BasicFileChooserUI.getCancelSelectionAction() | 
|  Action | BasicFileChooserUI.getChangeToParentDirectoryAction() | 
|  Action | BasicFileChooserUI.getGoHomeAction() | 
|  Action | BasicFileChooserUI.getNewFolderAction() | 
|  Action | BasicFileChooserUI.getUpdateAction() | 
| Methods in javax.swing.plaf.basic with parameters of type Action | |
|---|---|
| protected  void | BasicLookAndFeel.playSound(Action audioAction)If necessary, invokes actionPerformedonaudioActionto play a sound. | 
| Uses of Action in javax.swing.plaf.metal | 
|---|
| Classes in javax.swing.plaf.metal that implement Action | |
|---|---|
| protected  class | MetalFileChooserUI.DirectoryComboBoxActionActs when DirectoryComboBox has changed the selected item. | 
| Uses of Action in javax.swing.text | 
|---|
| Classes in javax.swing.text that implement Action | |
|---|---|
| static class | DefaultEditorKit.BeepActionCreates a beep. | 
| static class | DefaultEditorKit.CopyActionCopies the selected region and place its contents into the system clipboard. | 
| static class | DefaultEditorKit.CutActionCuts the selected region and place its contents into the system clipboard. | 
| static class | DefaultEditorKit.DefaultKeyTypedActionThe action that is executed by default if a key typed event is received and there is no keymap entry. | 
| static class | DefaultEditorKit.InsertBreakActionPlaces a line/paragraph break into the document. | 
| static class | DefaultEditorKit.InsertContentActionPlaces content into the associated document. | 
| static class | DefaultEditorKit.InsertTabActionPlaces a tab character into the document. | 
| static class | DefaultEditorKit.PasteActionPastes the contents of the system clipboard into the selected region, or before the caret if nothing is selected. | 
| static class | StyledEditorKit.AlignmentActionAn action to set paragraph alignment. | 
| static class | StyledEditorKit.BoldActionAn action to toggle the bold attribute. | 
| static class | StyledEditorKit.FontFamilyActionAn action to set the font family in the associated JEditorPane. | 
| static class | StyledEditorKit.FontSizeActionAn action to set the font size in the associated JEditorPane. | 
| static class | StyledEditorKit.ForegroundActionAn action to set foreground color. | 
| static class | StyledEditorKit.ItalicActionAn action to toggle the italic attribute. | 
| static class | StyledEditorKit.StyledTextActionAn action that assumes it's being fired on a JEditorPane with a StyledEditorKit (or subclass) installed. | 
| static class | StyledEditorKit.UnderlineActionAn action to toggle the underline attribute. | 
|  class | TextActionAn Action implementation useful for key bindings that are shared across a number of different text components. | 
| Methods in javax.swing.text that return Action | |
|---|---|
| static Action[] | TextAction.augmentList(Action[] list1,
            Action[] list2)Takes one list of commands and augments it with another list of commands. | 
|  Action | Keymap.getAction(KeyStroke key)Fetches the action appropriate for the given symbolic event sequence. | 
| protected  Action[] | InternationalFormatter.getActions()If getSupportsIncrementreturns true, this returns
 two Actions suitable for incrementing/decrementing the value. | 
|  Action[] | StyledEditorKit.getActions()Fetches the command list for the editor. | 
|  Action[] | DefaultEditorKit.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. | 
|  Action[] | JTextComponent.getActions()Fetches the command list for the editor. | 
| 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. | 
|  Action[] | Keymap.getBoundActions()Fetches all of the actions defined in this keymap. | 
|  Action | Keymap.getDefaultAction()Fetches the default action to fire if a key is typed (i.e. | 
| Methods in javax.swing.text with parameters of type Action | |
|---|---|
|  void | Keymap.addActionForKeyStroke(KeyStroke key,
                      Action a)Adds a binding to the keymap. | 
| static Action[] | TextAction.augmentList(Action[] list1,
            Action[] list2)Takes one list of commands and augments it with another list of commands. | 
| static Action[] | TextAction.augmentList(Action[] list1,
            Action[] list2)Takes one list of commands and augments it with another list of commands. | 
|  KeyStroke[] | Keymap.getKeyStrokesForAction(Action a)Fetches the keystrokes that will result in the given 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. | 
| Uses of Action in javax.swing.text.html | 
|---|
| Classes in javax.swing.text.html that implement Action | |
|---|---|
| static class | HTMLEditorKit.HTMLTextActionAn abstract Action providing some convenience methods that may be useful in inserting HTML into an existing document. | 
| static class | HTMLEditorKit.InsertHTMLTextActionInsertHTMLTextAction can be used to insert an arbitrary string of HTML into an existing HTML document. | 
| Methods in javax.swing.text.html that return Action | |
|---|---|
|  Action[] | HTMLEditorKit.getActions()Fetches the command list for the editor. | 
| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.