Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final Action[] | Returns: the augmented listthe first list, may be empty but not
list1, Action[] nullthe second list, may be empty but not
list2)nullTakes one list of commands and augments it with another list of commands. |
| protected final JTextComponent | |
| protected final JTextComponent | Returns: the componentthe ActionEvent e)Determines the component to use for the action. |
| TextAction | back to summary |
|---|---|
| public TextAction(String name) Creates a new JTextAction object.
| |
| augmentList | back to summary |
|---|---|
| public static final Action[] augmentList(Action[] list1, Action[] list2) Takes one list of commands and augments it with another list of commands. The second list takes precedence over the first list; that is, when both lists contain a command with the same name, the command from the second list is used. | |
| getFocusedComponent | back to summary |
|---|---|
| protected final JTextComponent getFocusedComponent() Fetches the text component that currently has focus. This allows actions to be shared across text components which is useful for key-bindings where a large set of actions are defined, but generally used the same way across many different components.
| |
| getTextComponent | back to summary |
|---|---|
| protected final JTextComponent getTextComponent(ActionEvent e) Determines the component to use for the action. This if fetched from the source of the ActionEvent if it's not null and can be narrowed. Otherwise, the last focused component is used.
| |