Uses of Interface
javax.swing.Action
Packages that use Action
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit and supporting classes for creating
HTML text editors.-
Uses of Action in javax.swing
Classes in javax.swing that implement ActionModifier and TypeClassDescriptionclassThis class provides default implementations for the JFCActioninterface.Methods in javax.swing that return ActionModifier and TypeMethodDescriptionReturns the binding forkey, messaging the parentActionMapif the binding is not locally defined.AbstractButton.getAction()Returns the currently setActionfor thisActionEventsource, ornullif noActionis set.JComboBox.getAction()Returns the currently setActionfor thisActionEventsource, ornullif noActionis set.JTextField.getAction()Returns the currently setActionfor thisActionEventsource, ornullif noActionis set.protected Action[]JFormattedTextField.AbstractFormatter.getActions()Subclass and override if you wish to provide a custom set ofActions.Action[]JFormattedTextField.getActions()Fetches the command list for the editor.Action[]JTextField.getActions()Fetches the command list for the editor.static ActionTransferHandler.getCopyAction()Returns anActionthat performs copy operations to the clipboard.static ActionTransferHandler.getCutAction()Returns anActionthat performs cut operations to the clipboard.static ActionTransferHandler.getPasteAction()Returns anActionthat performs paste operations from the clipboard.Methods in javax.swing with parameters of type ActionModifier and TypeMethodDescriptionprotected voidAbstractButton.actionPropertyChanged(Action action, String propertyName) Updates the button's state in response to property changes in the associated action.protected voidJComboBox.actionPropertyChanged(Action action, String propertyName) Updates the combobox's state in response to property changes in associated action.protected voidJMenuItem.actionPropertyChanged(Action action, String propertyName) Updates the button's state in response to property changes in the associated action.protected voidJTextField.actionPropertyChanged(Action action, String propertyName) Updates the textfield's state in response to property changes in associated action.Creates a new menu item attached to the specifiedActionobject and appends it to the end of this menu.Appends a new menu item to the end of the menu which dispatches the specifiedActionobject.Adds a newJButtonwhich dispatches the action.protected voidAbstractButton.configurePropertiesFromAction(Action a) Sets the properties on this button to match those in the specifiedAction.protected voidJComboBox.configurePropertiesFromAction(Action a) Sets the properties on this combobox to match those in the specifiedAction.protected voidJMenuItem.configurePropertiesFromAction(Action a) Sets the properties on this button to match those in the specifiedAction.protected voidJTextField.configurePropertiesFromAction(Action a) Sets the properties on this textfield to match those in the specifiedAction.protected JMenuItemJMenu.createActionComponent(Action a) Factory method which creates theJMenuItemforActions added to theJMenu.protected JMenuItemJPopupMenu.createActionComponent(Action a) Factory method which creates theJMenuItemforActionsadded to theJPopupMenu.protected JButtonJToolBar.createActionComponent(Action a) Factory method which creates theJButtonforActions added to theJToolBar.protected PropertyChangeListenerAbstractButton.createActionPropertyChangeListener(Action a) Creates and returns aPropertyChangeListenerthat is responsible for listening for changes from the specifiedActionand updating the appropriate properties.protected PropertyChangeListenerJComboBox.createActionPropertyChangeListener(Action a) Creates and returns aPropertyChangeListenerthat is responsible for listening for changes from the specifiedActionand updating the appropriate properties.protected PropertyChangeListenerJTextField.createActionPropertyChangeListener(Action a) Creates and returns aPropertyChangeListenerthat is responsible for listening for changes from the specifiedActionand updating the appropriate properties.Inserts a new menu item attached to the specifiedActionobject at a given position.voidInserts a menu item for the specifiedActionobject at a given position.static booleanSwingUtilities.notifyAction(Action action, KeyStroke ks, KeyEvent event, Object sender, int modifiers) InvokesactionPerformedonactionifactionis non-nulland accepts the sender object.voidAdds a binding forkeytoaction.voidSets theAction.voidSets theActionfor theActionEventsource.voidSets theActionfor theActionEventsource.Constructors in javax.swing with parameters of type ActionModifierConstructorDescriptionCreates a button where properties are taken from theActionsupplied.Creates a check box where properties are taken from the Action supplied.Creates a menu item whose properties are taken from the Action supplied.Constructs a menu whose properties are taken from theActionsupplied.Creates a menu item whose properties are taken from the specifiedAction.Creates a radiobutton where properties are taken from the Action supplied.Creates a radio button menu item whose properties are taken from theActionsupplied.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 ActionModifier and TypeClassDescriptionprotected classHandles closing an internal frame.protected classHandles maximizing an internal frame.protected classHandles minimizing an internal frame.protected classHandles navigating to the next internal frame.protected classHandles restoring a minimized or maximized internal frame.protected classResponds to an Open or Save requestprotected classResponds to a cancel request.protected classChange to parent directory action.protected classActs on the "home" key event or equivalent event.protected classCreates a new folder.protected classRescans the files in the current directoryclassThis class should be treated as a "protected" inner class.classThis class should be treated as a "protected" inner class.classThis class should be treated as a "protected" inner class.classThis class should be treated as a "protected" inner class.classThis class should be treated as a "protected" inner class.classThis class should be treated as a "protected" inner class.classAs of Java 2 platform v1.3 this undocumented class is no longer used.classActionListener that invokes cancelEditing when action performed.classTreeHomeAction is used to handle end/home actions.classTreeIncrementAction is used to handle up/down actions.classTreePageAction handles page up and page down events.classFor the first selected row expandedness will be toggled.classTreeTraverseActionis the action used for left/right keys.Fields in javax.swing.plaf.basic declared as ActionModifier and TypeFieldDescriptionprotected ActionBasicInternalFrameTitlePane.closeActionThe instance of aCloseAction.protected ActionBasicInternalFrameTitlePane.iconifyActionThe instance of anIconifyAction.protected ActionBasicInternalFrameTitlePane.maximizeActionThe instance of aMaximizeAction.protected ActionBasicInternalFrameTitlePane.moveActionThe instance of aMoveAction.protected ActionBasicTreeUI.KeyHandler.repeatKeyActionKey code that is being generated for.protected ActionBasicInternalFrameTitlePane.restoreActionThe instance of aRestoreAction.protected ActionBasicInternalFrameTitlePane.sizeActionThe instance of aSizeAction.Methods in javax.swing.plaf.basic that return ActionModifier and TypeMethodDescriptionprotected ActionBasicLookAndFeel.createAudioAction(Object key) Creates and returns anActionused to play a sound.BasicFileChooserUI.getApproveSelectionAction()Returns an approve selection action.BasicFileChooserUI.getCancelSelectionAction()Returns a cancel selection action.BasicFileChooserUI.getChangeToParentDirectoryAction()Returns a change to parent directory action.BasicFileChooserUI.getGoHomeAction()Returns a go home action.BasicFileChooserUI.getNewFolderAction()Returns a new folder action.BasicFileChooserUI.getUpdateAction()Returns an update action.Methods in javax.swing.plaf.basic with parameters of type Action -
Uses of Action in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal that implement ActionModifier and TypeClassDescriptionprotected classActs when DirectoryComboBox has changed the selected item. -
Uses of Action in javax.swing.text
Classes in javax.swing.text that implement ActionModifier and TypeClassDescriptionstatic classCreates a beep.static classCopies the selected region and place its contents into the system clipboard.static classCuts the selected region and place its contents into the system clipboard.static classThe action that is executed by default if a key typed event is received and there is no keymap entry.static classPlaces a line/paragraph break into the document.static classPlaces content into the associated document.static classPlaces a tab character into the document.static classPastes the contents of the system clipboard into the selected region, or before the caret if nothing is selected.static classAn action to set paragraph alignment.static classAn action to toggle the bold attribute.static classAn action to set the font family in the associated JEditorPane.static classAn action to set the font size in the associated JEditorPane.static classAn action to set foreground color.static classAn action to toggle the italic attribute.static classAn action that assumes it's being fired on a JEditorPane with a StyledEditorKit (or subclass) installed.static classAn action to toggle the underline attribute.classAn Action implementation useful for key bindings that are shared across a number of different text components.Methods in javax.swing.text that return ActionModifier and TypeMethodDescriptionstatic final Action[]TextAction.augmentList(Action[] list1, Action[] list2) Takes one list of commands and augments it with another list of commands.Fetches the action appropriate for the given symbolic event sequence.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.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.protected Action[]InternationalFormatter.getActions()IfgetSupportsIncrementreturns true, this returns two Actions suitable for incrementing/decrementing the value.Action[]JTextComponent.getActions()Fetches the command list for the editor.Action[]StyledEditorKit.getActions()Fetches the command list for the editor.Action[]Keymap.getBoundActions()Fetches all of the actions defined in this keymap.Keymap.getDefaultAction()Fetches the default action to fire if a key is typed (i.e. a KEY_TYPED KeyEvent is received) and there is no binding for it.Methods in javax.swing.text with parameters of type ActionModifier and TypeMethodDescriptionvoidKeymap.addActionForKeyStroke(KeyStroke key, Action a) Adds a binding to the keymap.static final Action[]TextAction.augmentList(Action[] list1, Action[] list2) Takes one list of commands and augments it with another list of commands.Keymap.getKeyStrokesForAction(Action a) Fetches the keystrokes that will result in the given action.static voidJTextComponent.loadKeymap(Keymap map, JTextComponent.KeyBinding[] bindings, Action[] actions) Loads a keymap with a bunch of bindings.voidKeymap.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 ActionModifier and TypeClassDescriptionstatic classAn abstract Action providing some convenience methods that may be useful in inserting HTML into an existing document.static classInsertHTMLTextAction can be used to insert an arbitrary string of HTML into an existing HTML document.Methods in javax.swing.text.html that return ActionModifier and TypeMethodDescriptionAction[]HTMLEditorKit.getActions()Fetches the command list for the editor.