|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Objectjavax.swing.AbstractAction
javax.swing.text.TextAction
public abstract class TextAction
���ڿ�����ͬ�ı���������ļ��� Action ʵ�֡���Ϊ�����ö�����������һ����һ������䶯��Ŀ���;���������ṩ��ͼ����Ҫ�������ı������֧�֡����Ҫ�������������ѡ;����ͨ�����յ��� ActionEvent������� getSource ���ص� Object ������Ϊһ���ı��������ʹ��������������¼�Ϊ null ���߲��ܱ����������������һ����ý�����ı��������ͨ�����ʹ��һ�������� TextAction ������Ϣ�� JTextController ��ȷ����
���棺����������л��������Ժ�� Swing �汾�����ݡ���ǰ���л�֧�������ڶ��ڴ洢��������ͬ Swing �汾��Ӧ�ó���֮��� RMI���� 1.4 �汾��ʼ������ java.beans
����������֧������ JavaBeansTM ���ڴ洢�Ĺ��ܡ���μ� XMLEncoder
��
�ֶ�ժҪ |
---|
���� javax.swing.AbstractAction �̳е��ֶ� |
---|
changeSupport, enabled |
�ӽӿ� javax.swing.Action �̳е��ֶ� |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
���췽��ժҪ | |
---|---|
TextAction(String name)
����һ���µ� JTextAction ���� |
����ժҪ | |
---|---|
static Action[] |
augmentList(Action[] list1,
Action[] list2)
ȡһ�������б�������һ�������б�ȥ���䡣 |
protected JTextComponent |
getFocusedComponent()
��ȡ��ǰ���н�����ı������ |
protected JTextComponent |
getTextComponent(ActionEvent e)
ȷ��������ʹ�õ������ |
���� javax.swing.AbstractAction �̳еķ��� |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
���� java.lang.Object �̳еķ��� |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
�ӽӿ� java.awt.event.ActionListener �̳еķ��� |
---|
actionPerformed |
���췽����ϸ��Ϣ |
---|
public TextAction(String name)
name
- ����������������ϸ��Ϣ |
---|
protected final JTextComponent getTextComponent(ActionEvent e)
e
- ActionEvent
public static final Action[] augmentList(Action[] list1, Action[] list2)
list1
- ��һ���б�������Ϊ�յ����� null
list2
- �ڶ����б�������Ϊ�յ����� null
protected final JTextComponent getFocusedComponent()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������