public class BasicTextFieldUI extends BasicTextUI
警告:序列化该类的对象与以后的Swing版本不兼容。当前的序列化支持适用于短期贮藏或RMI运行相同Swing版本的应用程序之间。为1.4,为所有JavaBeans™长期存储的支持已被添加到java.beans包。请看XMLEncoder。
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter| Constructor and Description |
|---|
BasicTextFieldUI()
创建一个新的basictextfieldui。
|
| Modifier and Type | Method and Description |
|---|---|
View |
create(Element elem)
创建一个视图(该)基于一个元素。
|
static ComponentUI |
createUI(JComponent c)
创建一个用户界面的一个文本输入框。
|
int |
getBaseline(JComponent c, int width, int height)
返回基线。
|
Component.BaselineResizeBehavior |
getBaselineResizeBehavior(JComponent c)
返回一个枚举指示组件的尺寸的变化的基线。
|
protected String |
getPropertyPrefix()
获取用于查找性能的一个关键的名字”。
|
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModelcontains, getAccessibleChild, getAccessibleChildrenCountpublic static ComponentUI createUI(JComponent c)
c -文本字段
protected String getPropertyPrefix()
getPropertyPrefix 方法重写,继承类
BasicTextUI
public View create(Element elem)
create 接口
ViewFactory
create 方法重写,继承类
BasicTextUI
elem -元素
View
public int getBaseline(JComponent c, int width, int height)
getBaseline 方法重写,继承类
ComponentUI
c -
JComponent基线被要求
width的宽度得到基线
height -高度得到基线
null
c
NullPointerException
IllegalArgumentException如果宽度或高度小于0
JComponent.getBaseline(int, int)
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)
getBaselineResizeBehavior 方法重写,继承类
ComponentUI
c -
JComponent返回基线调整行为
null
c
NullPointerException
JComponent.getBaseline(int, int)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.