public class SynthPasswordFieldUI extends SynthTextFieldUI
JPasswordField
提供Synth L&F UI代表。
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
DEFAULT, 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, update
getBaseline, getBaselineResizeBehavior
create, 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, viewToModel
contains, getAccessibleChild, getAccessibleChildrenCount
public 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.