Uses of Interface
javax.swing.Action
-
Packages that use Action Package Description 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 classHTMLEditorKitand supporting classes for creating HTML text editors. -
-
Uses of Action in javax.swing
Classes in javax.swing that implement Action Modifier and Type Class Description classAbstractActionThis class provides default implementations for the JFCActioninterface.Methods in javax.swing that return Action Modifier and Type Method Description ActionActionMap. get(Object key)Returns the binding forkey, messaging the parentActionMapif the binding is not locally defined.ActionAbstractButton. getAction()Returns the currently setActionfor thisActionEventsource, ornullif noActionis set.ActionJComboBox. getAction()Returns the currently setActionfor thisActionEventsource, ornullif noActionis set.ActionJTextField. 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 Action Modifier and Type Method Description protected 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.JMenuItemJMenu. add(Action a)Creates a new menu item attached to the specifiedActionobject and appends it to the end of this menu.JMenuItemJPopupMenu. add(Action a)Appends a new menu item to the end of the menu which dispatches the specifiedActionobject.JButtonJToolBar. add(Action a)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.JMenuItemJMenu. insert(Action a, int pos)Inserts a new menu item attached to the specifiedActionobject at a given position.voidJPopupMenu. insert(Action a, int index)Inserts 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.voidActionMap. put(Object key, Action action)Adds a binding forkeytoaction.voidAbstractButton. setAction(Action a)Sets theAction.voidJComboBox. setAction(Action a)Sets theActionfor theActionEventsource.voidJTextField. setAction(Action a)Sets theActionfor theActionEventsource.Constructors in javax.swing with parameters of type Action Constructor Description JButton(Action a)Creates a button where properties are taken from theActionsupplied.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 theActionsupplied.JMenuItem(Action a)Creates a menu item whose properties are taken from the specifiedAction.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 theActionsupplied.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 Modifier and Type Class Description protected classBasicDesktopPaneUI.CloseActionHandles closing an internal frame.protected classBasicDesktopPaneUI.MaximizeActionHandles maximizing an internal frame.protected classBasicDesktopPaneUI.MinimizeActionHandles minimizing an internal frame.protected classBasicDesktopPaneUI.NavigateActionHandles navigating to the next internal frame.protected classBasicDesktopPaneUI.OpenActionHandles restoring a minimized or maximized internal frame.protected classBasicFileChooserUI.ApproveSelectionActionResponds to an Open or Save requestprotected classBasicFileChooserUI.CancelSelectionActionResponds to a cancel request.protected classBasicFileChooserUI.ChangeToParentDirectoryActionChange to parent directory action.protected classBasicFileChooserUI.GoHomeActionActs on the "home" key event or equivalent event.protected classBasicFileChooserUI.NewFolderActionCreates a new folder.protected classBasicFileChooserUI.UpdateActionRescans the files in the current directoryclassBasicInternalFrameTitlePane.CloseActionThis class should be treated as a "protected" inner class.classBasicInternalFrameTitlePane.IconifyActionThis class should be treated as a "protected" inner class.classBasicInternalFrameTitlePane.MaximizeActionThis class should be treated as a "protected" inner class.classBasicInternalFrameTitlePane.MoveActionThis class should be treated as a "protected" inner class.classBasicInternalFrameTitlePane.RestoreActionThis class should be treated as a "protected" inner class.classBasicInternalFrameTitlePane.SizeActionThis class should be treated as a "protected" inner class.classBasicSliderUI.ActionScrollerAs of Java 2 platform v1.3 this undocumented class is no longer used.classBasicTreeUI.TreeCancelEditingActionActionListener that invokes cancelEditing when action performed.classBasicTreeUI.TreeHomeActionTreeHomeAction is used to handle end/home actions.classBasicTreeUI.TreeIncrementActionTreeIncrementAction is used to handle up/down actions.classBasicTreeUI.TreePageActionTreePageAction handles page up and page down events.classBasicTreeUI.TreeToggleActionFor the first selected row expandedness will be toggled.classBasicTreeUI.TreeTraverseActionTreeTraverseActionis the action used for left/right keys.Fields in javax.swing.plaf.basic declared as Action Modifier and Type Field Description protected 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 Action Modifier and Type Method Description protected ActionBasicLookAndFeel. createAudioAction(Object key)Creates and returns anActionused to play a sound.ActionBasicFileChooserUI. getApproveSelectionAction()Returns an approve selection action.ActionBasicFileChooserUI. getCancelSelectionAction()Returns a cancel selection action.ActionBasicFileChooserUI. getChangeToParentDirectoryAction()Returns a change to parent directory action.ActionBasicFileChooserUI. getGoHomeAction()Returns a go home action.ActionBasicFileChooserUI. getNewFolderAction()Returns a new folder action.ActionBasicFileChooserUI. getUpdateAction()Returns an update action.Methods in javax.swing.plaf.basic with parameters of type Action Modifier and Type Method Description protected voidBasicLookAndFeel. playSound(Action audioAction)If necessary, invokesactionPerformedonaudioActionto play a sound. -
Uses of Action in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal that implement Action Modifier and Type Class Description protected classMetalFileChooserUI.DirectoryComboBoxActionActs when DirectoryComboBox has changed the selected item. -
Uses of Action in javax.swing.text
Classes in javax.swing.text that implement Action Modifier and Type Class Description static classDefaultEditorKit.BeepActionCreates a beep.static classDefaultEditorKit.CopyActionCopies the selected region and place its contents into the system clipboard.static classDefaultEditorKit.CutActionCuts the selected region and place its contents into the system clipboard.static classDefaultEditorKit.DefaultKeyTypedActionThe action that is executed by default if a key typed event is received and there is no keymap entry.static classDefaultEditorKit.InsertBreakActionPlaces a line/paragraph break into the document.static classDefaultEditorKit.InsertContentActionPlaces content into the associated document.static classDefaultEditorKit.InsertTabActionPlaces a tab character into the document.static classDefaultEditorKit.PasteActionPastes the contents of the system clipboard into the selected region, or before the caret if nothing is selected.static classStyledEditorKit.AlignmentActionAn action to set paragraph alignment.static classStyledEditorKit.BoldActionAn action to toggle the bold attribute.static classStyledEditorKit.FontFamilyActionAn action to set the font family in the associated JEditorPane.static classStyledEditorKit.FontSizeActionAn action to set the font size in the associated JEditorPane.static classStyledEditorKit.ForegroundActionAn action to set foreground color.static classStyledEditorKit.ItalicActionAn action to toggle the italic attribute.static classStyledEditorKit.StyledTextActionAn action that assumes it's being fired on a JEditorPane with a StyledEditorKit (or subclass) installed.static classStyledEditorKit.UnderlineActionAn action to toggle the underline attribute.classTextActionAn Action implementation useful for key bindings that are shared across a number of different text components.Methods in javax.swing.text that return Action Modifier and Type Method Description static Action[]TextAction. augmentList(Action[] list1, Action[] list2)Takes one list of commands and augments it with another list of commands.ActionKeymap. getAction(KeyStroke key)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.ActionKeymap. 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 Action Modifier and Type Method Description voidKeymap. 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.KeyStroke[]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 Action Modifier and Type Class Description static classHTMLEditorKit.HTMLTextActionAn abstract Action providing some convenience methods that may be useful in inserting HTML into an existing document.static classHTMLEditorKit.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 Modifier and Type Method Description Action[]HTMLEditorKit. getActions()Fetches the command list for the editor.
-