public class SynthPasswordFieldUI extends SynthTextFieldUI
JPasswordField提供Synth L&F UI代表。
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighterDEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED| Constructor and Description |
|---|
SynthPasswordFieldUI() |
| Modifier and Type | Method and Description |
|---|---|
View |
create(Element elem)
为元素创建一个视图(PasswordView)。
|
static ComponentUI |
createUI(JComponent c)
为JPasswordField创建一个UI。
|
protected String |
getPropertyPrefix()
获取用作密钥的名称,通过UIManager查找属性。
|
protected void |
installKeyboardActions() |
void |
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框
|
getContext, installDefaults, paint, paintBackground, propertyChange, uninstallDefaults, updategetBaseline, getBaselineResizeBehaviorcreate, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintSafely, setView, uninstallKeyboardActions, uninstallListeners, uninstallUI, viewToModel, viewToModelcontains, getAccessibleChild, getAccessibleChildrenCountpublic static ComponentUI createUI(JComponent c)
c - JPasswordField
protected String getPropertyPrefix()
getPropertyPrefix在
BasicTextFieldUI
public View create(Element elem)
create在接口
ViewFactory
create在
BasicTextFieldUI
elem - 元素
View
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 - 边框高度
protected void installKeyboardActions()
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.