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 TypeClassDescriptionclass
This class provides default implementations for the JFCAction
interface.Methods in javax.swing that return ActionModifier and TypeMethodDescriptionReturns the binding forkey
, messaging the parentActionMap
if the binding is not locally defined.AbstractButton.getAction()
Returns the currently setAction
for thisActionEvent
source, ornull
if noAction
is set.JComboBox.getAction()
Returns the currently setAction
for thisActionEvent
source, ornull
if noAction
is set.JTextField.getAction()
Returns the currently setAction
for thisActionEvent
source, ornull
if noAction
is set.protected Action[]
JFormattedTextField.AbstractFormatter.getActions()
Subclass and override if you wish to provide a custom set ofAction
s.Action[]
JFormattedTextField.getActions()
Fetches the command list for the editor.Action[]
JTextField.getActions()
Fetches the command list for the editor.static Action
TransferHandler.getCopyAction()
Returns anAction
that performs copy operations to the clipboard.static Action
TransferHandler.getCutAction()
Returns anAction
that performs cut operations to the clipboard.static Action
TransferHandler.getPasteAction()
Returns anAction
that performs paste operations from the clipboard.Methods in javax.swing with parameters of type ActionModifier and TypeMethodDescriptionprotected void
AbstractButton.actionPropertyChanged
(Action action, String propertyName) Updates the button's state in response to property changes in the 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
JTextField.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 specifiedAction
object and appends it to the end of this menu.Appends a new menu item to the end of the menu which dispatches the specifiedAction
object.Adds a newJButton
which dispatches the action.protected void
AbstractButton.configurePropertiesFromAction
(Action a) Sets the properties on this button to match those in the specifiedAction
.protected void
JComboBox.configurePropertiesFromAction
(Action a) Sets the properties on this combobox to match those in the specifiedAction
.protected void
JMenuItem.configurePropertiesFromAction
(Action a) Sets the properties on this button to match those in the specifiedAction
.protected void
JTextField.configurePropertiesFromAction
(Action a) Sets the properties on this textfield to match those in the specifiedAction
.protected JMenuItem
JMenu.createActionComponent
(Action a) Factory method which creates theJMenuItem
forAction
s added to theJMenu
.protected JMenuItem
JPopupMenu.createActionComponent
(Action a) Factory method which creates theJMenuItem
forActions
added to theJPopupMenu
.protected JButton
JToolBar.createActionComponent
(Action a) Factory method which creates theJButton
forAction
s added to theJToolBar
.protected PropertyChangeListener
AbstractButton.createActionPropertyChangeListener
(Action a) Creates and returns aPropertyChangeListener
that is responsible for listening for changes from the specifiedAction
and updating the appropriate properties.protected PropertyChangeListener
JComboBox.createActionPropertyChangeListener
(Action a) Creates and returns aPropertyChangeListener
that is responsible for listening for changes from the specifiedAction
and updating the appropriate properties.protected PropertyChangeListener
JTextField.createActionPropertyChangeListener
(Action a) Creates and returns aPropertyChangeListener
that is responsible for listening for changes from the specifiedAction
and updating the appropriate properties.