APIdia Launch Partner
Top Description Constructors Methods
javax.swing.plaf.synth

public Class SynthPasswordFieldUI

extends SynthTextFieldUI
Class Inheritance
Imports
java.awt.Graphics, javax.swing.*, javax.swing.text.*, javax.swing.plaf.ComponentUI

Provides the Synth L&F UI delegate for javax.swing.JPasswordField.
Author
Shannon Hickey
Since
1.7

Constructor Summary

AccessConstructor and Description
public
SynthPasswordFieldUI()

Constructs a SynthPasswordFieldUI.

Method Summary

Modifier and TypeMethod and Description
public View

Returns:

the view
create
(Element
the element
elem
)

Overrides javax.swing.plaf.basic.BasicTextFieldUI.create.

Implements javax.swing.text.ViewFactory.create.

Creates a view (PasswordView) for an element.

public static ComponentUI

Returns:

the UI
createUI
(JComponent
the JPasswordField
c
)

Hides javax.swing.plaf.synth.SynthTextFieldUI.createUI.

Creates a UI for a JPasswordField.

protected String

Returns:

the name ("PasswordField")
getPropertyPrefix
()

Overrides javax.swing.plaf.basic.BasicTextFieldUI.getPropertyPrefix.

Fetches the name used as a key to look up properties through the UIManager.

protected void
installDefaults()

Overrides javax.swing.plaf.synth.SynthTextFieldUI.installDefaults.

Installs the necessary properties on the JPasswordField.

pack-priv void
public void
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)

Overrides javax.swing.plaf.synth.SynthTextFieldUI.paintBorder.

Implements javax.swing.plaf.synth.SynthUI.paintBorder.

Paints the border.

Inherited from javax.swing.plaf.synth.SynthTextFieldUI:
getContextpaintpaintBackgroundpropertyChangeuninstallDefaultsupdateupdateStyle

Constructor Detail

SynthPasswordFieldUIback to summary
public SynthPasswordFieldUI()

Constructs a SynthPasswordFieldUI.

Method Detail

createback to summary
public View create(Element elem)

Overrides javax.swing.plaf.basic.BasicTextFieldUI.create.

Implements javax.swing.text.ViewFactory.create.

Creates a view (PasswordView) for an element.

Parameters
elem:Element

the element

Returns:View

the view

Annotations
@Override
createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides javax.swing.plaf.synth.SynthTextFieldUI.createUI.

Creates a UI for a JPasswordField.

Parameters
c:JComponent

the JPasswordField

Returns:ComponentUI

the UI

getPropertyPrefixback to summary
protected String getPropertyPrefix()

Overrides javax.swing.plaf.basic.BasicTextFieldUI.getPropertyPrefix.

Fetches the name used as a key to look up properties through the UIManager. This is used as a prefix to all the standard text properties.

Returns:String

the name ("PasswordField")

Annotations
@Override
installDefaultsback to summary
protected void installDefaults()

Overrides javax.swing.plaf.synth.SynthTextFieldUI.installDefaults.

Installs the necessary properties on the JPasswordField.

Annotations
@Override
paintBackgroundback to summary
pack-priv void paintBackground(SynthContext context, Graphics g, JComponent c)

Overrides javax.swing.plaf.synth.SynthTextFieldUI.paintBackground.

Annotations
@Override
paintBorderback to summary
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)

Overrides javax.swing.plaf.synth.SynthTextFieldUI.paintBorder.

Implements javax.swing.plaf.synth.SynthUI.paintBorder.

Doc from javax.swing.plaf.synth.SynthTextFieldUI.paintBorder.

Paints the border.

Annotations
@Override