javax.swing.text
public abstract class TextAction extends AbstractAction
Constructor Summary | |
---|---|
TextAction(String name)
Constructor TextAction |
Method Summary | |
---|---|
static Action[] | augmentList(Action[] list1, Action[] list2)
Creates a new array of Action containing both given arrays.
|
protected JTextComponent | getFocusedComponent()
Returns the current focused JTextComponent object.
|
protected JTextComponent | getTextComponent(ActionEvent event)
Returns the JTextComponent object associated with the given
ActionEvent . |
Parameters: name TODO
Action
containing both given arrays.
Parameters: list1 the first action array list2 the second action array
Returns: the augmented array of actions
JTextComponent
object.
Returns: the JTextComponent
JTextComponent
object associated with the given
ActionEvent
. If the source of the event is not a
JTextComponent
the currently focused text component is returned.
Parameters: event the action event
Returns: the JTextComponent