JavaTM Platform
Standard Ed. 6

javax.swing.text
�� StyledEditorKit.AlignmentAction

java.lang.Object
  �̳��� javax.swing.AbstractAction
      �̳��� javax.swing.text.TextAction
          �̳��� javax.swing.text.StyledEditorKit.StyledTextAction
              �̳��� javax.swing.text.StyledEditorKit.AlignmentAction
������ʵ�ֵĽӿڣ�
ActionListener, Serializable, Cloneable, EventListener, Action
���ڷ���ࣺ
StyledEditorKit

public static class StyledEditorKit.AlignmentAction
extends StyledEditorKit.StyledTextAction

���ö������IJ������˲���Ϊ��ǰѡ�е�Ŀ�� JEditorPane �ķ�Χ���� StyleConstants.Alignment ���ԡ��ò�����ͨ�������Ŀ�� JEditorPane ��ص���ʽ�ĵ��ϵ��� StyledDocument.setParagraphAttributes ����ɵġ�

���Ŀ���ı������ָ��Ϊ ActionEvent ��Դ�������һ�������ַ������������ַ�����������Ϊһ��������������ӦΪ StyleConstants.Alignment �����еĺϷ�ֵ֮һ��

���棺����������л��������Ժ�� 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
 
���췽��ժҪ
StyledEditorKit.AlignmentAction(String nm, int a)
          �����µ� AlignmentAction��
 
����ժҪ
 void actionPerformed(ActionEvent e)
          ���ö��뷽ʽ��
 
���� javax.swing.text.StyledEditorKit.StyledTextAction �̳еķ���
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributes
 
���� javax.swing.text.TextAction �̳еķ���
augmentList, getFocusedComponent, getTextComponent
 
���� 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
 

���췽����ϸ��Ϣ

StyledEditorKit.AlignmentAction

public StyledEditorKit.AlignmentAction(String nm,
                                       int a)
�����µ� AlignmentAction��

������
nm - ������
a - ���뷽ʽ����ֵ >= 0
������ϸ��Ϣ

actionPerformed

public void actionPerformed(ActionEvent e)
���ö��뷽ʽ��

������
e - �����¼�

JavaTM Platform
Standard Ed. 6

�ύ��������
�йظ���� API �ο����ϺͿ�����Ա�ĵ�������� Java SE ������Ա�ĵ������ĵ���������ϸ�ġ����򿪷���Ա���������Լ�������������ﶨ�塢ʹ�ü��ɺ͹�������ʾ����

��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������