
Passed To: TabSet.{getTabIndex(), TabSet()}
Retur ned By: TabSet.{getTab(), getTabAfter()}
TextAction Ja va 1.2
javax.swing .text cloneable serializable
This abstract class is an Action that extends AbstractAction.Itdoes not implement any of
the abstract methods of AbstractAction but merely adds new protected methods that sub-
classes can use to figure out on what JTextComponent they are supposed to operate.
These methods allow subclasses to define generic actions that are not specific to a par-
ticular JTextComponent but that can be used on any text component. Applications may
subclass this interface to define custom actions, but they do not often need to do so.
DefaultEditorKit and StyledEditorKit define a number of inner classes that subclass TextAction.
public abstract class TextAction extends AbstractAction {
// Public Constructors
public TextAction(String name);
// Public Class Methods
public static final Action[ ] augmentList(Action[ ] list1, Action[ ] list2);
// Protected Instance Methods
protected final JTextComponent getFocusedComponent();
protected final JTextComponent getTextComponent(java.awt.e vent.ActionEvent e);
}
Hierar chy: Object→ AbstractAction(Action(java.awt.event.ActionListener(java.util.EventListener)),
Cloneable, Serializable)→ TextAction
Subc lasses: DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction,
DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, ...