- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TextUI
-
- javax.swing.plaf.basic.BasicTextUI
-
- javax.swing.plaf.basic.BasicTextFieldUI
-
- javax.swing.plaf.basic.BasicFormattedTextFieldUI
-
- All Implemented Interfaces:
-
ViewFactory
public class BasicFormattedTextFieldUI extends BasicTextFieldUI
为JFormattedTextField
提供外观实现。- 从以下版本开始:
- 1.4
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
-
构造方法摘要
构造方法 Constructor 描述 BasicFormattedTextFieldUI()
-
方法摘要
所有方法 静态方法 接口方法 具体的方法 Modifier and Type 方法 描述 static ComponentUI
createUI(JComponent c)
为JFormattedTextField创建一个UI。protected String
getPropertyPrefix()
获取通过UIManager查找属性的键。-
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
create, getBaseline, getBaselineResizeBehavior
-
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, modelToView2D, paint, paintBackground, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel, viewToModel2D
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class javax.swing.plaf.TextUI
getToolTipText2D
-
-
-
-
方法详细信息
-
createUI
public static ComponentUI createUI(JComponent c)
为JFormattedTextField创建一个UI。- 参数
-
c
- 格式化的文本字段 - 结果
- UI
-
getPropertyPrefix
protected String getPropertyPrefix()
获取通过UIManager查找属性的键。 这被用作所有标准文本属性的前缀。- 重写:
-
getPropertyPrefix
在BasicTextFieldUI
- 结果
- 名称“FormattedTextField”
-
-