|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextFieldUI
public class BasicTextFieldUI
JTextField ����۵Ļ�����
���棺��������л��������Ժ�� Swing �汾�����ݡ���ǰ���л�֧�������ڶ��ڴ洢������������������ͬ Swing �汾��Ӧ�ó���֮����� RMI��Remote Method Invocation��Զ�̷������ã����� 1.4 �汾��ʼ������ java.beans
����������֧������ JavaBeansTM ���ڴ洢�Ĺ��ܡ���μ� XMLEncoder
��
Ƕ����ժҪ |
---|
���� javax.swing.plaf.basic.BasicTextUI �̳е�Ƕ����/�ӿ� |
---|
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter |
���췽��ժҪ | |
---|---|
BasicTextFieldUI()
�����µ� BasicTextFieldUI�� |
����ժҪ | |
---|---|
View |
create(Element elem)
����Ԫ�ش�����ͼ (FieldView)�� |
static ComponentUI |
createUI(JComponent c)
���� JTextField �� UI�� |
int |
getBaseline(JComponent c,
int width,
int height)
���ػ��ߡ� |
Component.BaselineResizeBehavior |
getBaselineResizeBehavior(JComponent c)
����һ��ö�٣���ָʾ������Ļ���������С�ĸı���������ġ� |
protected String |
getPropertyPrefix()
��ȡ��������ͨ�� UIManager �������Ե����ơ� |
���� javax.swing.plaf.ComponentUI �̳еķ��� |
---|
contains, getAccessibleChild, getAccessibleChildrenCount |
���� java.lang.Object �̳еķ��� |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
���췽����ϸ��Ϣ |
---|
public BasicTextFieldUI()
������ϸ��Ϣ |
---|
public static ComponentUI createUI(JComponent c)
c
- �ı��ֶ�
protected String getPropertyPrefix()
BasicTextUI
�е� getPropertyPrefix
public View create(Element elem)
ViewFactory
�е� create
BasicTextUI
�е� create
elem
- Ԫ��
View
public int getBaseline(JComponent c, int width, int height)
ComponentUI
�е� getBaseline
c
- Ϊ��������ߵ� JComponent
width
- Ϊ���ȡ���ߵĿ���height
- Ϊ���ȡ���ߵĸ߶�
NullPointerException
- ��� c
Ϊ null
IllegalArgumentException
- ������Ȼ�߶� < 0JComponent.getBaseline(int, int)
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)
ComponentUI
�е� getBaselineResizeBehavior
c
- Ϊ�䷵�ص�����С��Ϊ�� JComponent
NullPointerException
- ��� c
Ϊ null
JComponent.getBaseline(int, int)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������