public abstract class TextAction extends javax.swing.AbstractAction
| Constructor and Description |
|---|
TextAction(java.lang.String name)
Constructor TextAction
|
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.Action[] |
augmentList(javax.swing.Action[] list1,
javax.swing.Action[] list2)
Creates a new array of
Action containing both given arrays. |
protected JTextComponent |
getFocusedComponent()
Returns the current focused
JTextComponent object. |
protected JTextComponent |
getTextComponent(java.awt.event.ActionEvent event)
Returns the
JTextComponent object associated with the given
ActionEvent. |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic TextAction(java.lang.String name)
name - TODOprotected final JTextComponent getTextComponent(java.awt.event.ActionEvent event)
JTextComponent object associated with the given
ActionEvent. If the source of the event is not a
JTextComponent the currently focused text component is returned.event - the action eventJTextComponentpublic static final javax.swing.Action[] augmentList(javax.swing.Action[] list1, javax.swing.Action[] list2)
Action containing both given arrays.list1 - the first action arraylist2 - the second action arrayprotected final JTextComponent getFocusedComponent()
JTextComponent object.JTextComponent