Uses of Interface
javax.swing.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
Modifier and TypeClassDescriptionclass
This class provides default implementations for the JFCAction
interface.Modifier 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.Modifier 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.Inserts a new menu item attached to the specifiedAction
object at a given position.void
Inserts a menu item for the specifiedAction
object at a given position.static boolean
SwingUtilities.notifyAction(Action action, KeyStroke ks, KeyEvent event, Object sender, int modifiers)
InvokesactionPerformed
onaction
ifaction
is non-null
and accepts the sender object.void
Adds a binding forkey
toaction
.void
Sets theAction
.void
Sets theAction
for theActionEvent
source.void
Sets theAction
for theActionEvent
source.ModifierConstructorDescriptionCreates a button where properties are taken from theAction
supplied.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 theAction
supplied.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.Creates a radio button menu item whose properties are taken from theAction
supplied.JToggleButton(Action a)
Creates a toggle button where properties are taken from the Action supplied. -
Uses of Action in javax.swing.plaf.basic
Modifier and TypeClassDescriptionprotected class
Handles closing an internal frame.protected class
Handles maximizing an internal frame.protected class
Handles minimizing an internal frame.protected class
Handles navigating to the next internal frame.protected class
Handles restoring a minimized or maximized internal frame.protected class
Responds to an Open or Save requestprotected class
Responds to a cancel request.protected class
Change to parent directory action.protected class
Acts on the "home" key event or equivalent event.protected class
Creates a new folder.protected class
Rescans the files in the current directoryclass
This class should be treated as a "protected" inner class.class
This class should be treated as a "protected" inner class.class
This class should be treated as a "protected" inner class.class
This class should be treated as a "protected" inner class.class
This class should be treated as a "protected" inner class.class
This class should be treated as a "protected" inner class.class
As of Java 2 platform v1.3 this undocumented class is no longer used.class
ActionListener that invokes cancelEditing when action performed.class
TreeHomeAction is used to handle end/home actions.class
TreeIncrementAction is used to handle up/down actions.class
TreePageAction handles page up and page down events.class
For the first selected row expandedness will be toggled.class
TreeTraverseAction
is the action used for left/right keys.Modifier and TypeFieldDescriptionprotected Action
BasicInternalFrameTitlePane.closeAction
The instance of aCloseAction
.protected Action
BasicInternalFrameTitlePane.iconifyAction
The instance of anIconifyAction
.protected Action
BasicInternalFrameTitlePane.maximizeAction
The instance of aMaximizeAction
.protected Action
BasicInternalFrameTitlePane.moveAction
The instance of aMoveAction
.protected Action
BasicTreeUI.KeyHandler.repeatKeyAction
Key code that is being generated for.protected Action
BasicInternalFrameTitlePane.restoreAction
The instance of aRestoreAction
.protected Action
BasicInternalFrameTitlePane.sizeAction
The instance of aSizeAction
.Modifier and TypeMethodDescriptionprotected Action
BasicLookAndFeel.createAudioAction(Object key)
Creates and returns anAction
used 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. -
Uses of Action in javax.swing.plaf.metal
Modifier and TypeClassDescriptionprotected class
Acts when DirectoryComboBox has changed the selected item. -
Uses of Action in javax.swing.text
Modifier and TypeClassDescriptionstatic class
Creates a beep.static class
Copies the selected region and place its contents into the system clipboard.static class
Cuts the selected region and place its contents into the system clipboard.static class
The action that is executed by default if a key typed event is received and there is no keymap entry.static class
Places a line/paragraph break into the document.static class
Places content into the associated document.static class
Places a tab character into the document.static class
Pastes the contents of the system clipboard into the selected region, or before the caret if nothing is selected.static class
An action to set paragraph alignment.static class
An action to toggle the bold attribute.static class
An action to set the font family in the associated JEditorPane.static class
An action to set the font size in the associated JEditorPane.static class
An action to set foreground color.static class
An action to toggle the italic attribute.static class
An action that assumes it's being fired on a JEditorPane with a StyledEditorKit (or subclass) installed.static class
An action to toggle the underline attribute.class
An Action implementation useful for key bindings that are shared across a number of different text components.Modifier and TypeMethodDescriptionstatic 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()
IfgetSupportsIncrement
returns 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.Modifier and TypeMethodDescriptionvoid
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.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
Modifier and TypeClassDescriptionstatic class
An abstract Action providing some convenience methods that may be useful in inserting HTML into an existing document.static class
InsertHTMLTextAction can be used to insert an arbitrary string of HTML into an existing HTML document.Modifier and TypeMethodDescriptionAction[]
HTMLEditorKit.getActions()
Fetches the command list for the editor.