public class SynthFormattedTextFieldUI extends SynthTextFieldUI
JFormattedTextField提供Synth L&F UI代表。
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighterDEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED| Constructor and Description |
|---|
SynthFormattedTextFieldUI() |
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent c)
为JFormattedTextField创建一个UI。
|
protected String |
getPropertyPrefix()
获取通过UIManager查找属性的键。
|
void |
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框
|
getContext, installDefaults, paint, paintBackground, propertyChange, uninstallDefaults, updatecreate, getBaseline, getBaselineResizeBehaviorcreate, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintSafely, setView, uninstallKeyboardActions, uninstallListeners, uninstallUI, viewToModel, viewToModelcontains, getAccessibleChild, getAccessibleChildrenCountpublic static ComponentUI createUI(JComponent c)
c - 格式化的文本字段
protected String getPropertyPrefix()
getPropertyPrefix在
BasicTextFieldUI
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
paintBorder在界面
SynthUI
paintBorder在
SynthTextFieldUI类
context - 组件上下文
g -
Graphics上画
x - X坐标
y - Y坐标
w - 边框的宽度
h - 边框的高度
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.