This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing.plaf.basic
class BasicPasswordFieldUI
- All Implemented Interfaces:
- ViewFactory
public class BasicPasswordFieldUI
extends BasicTextFieldUI
Provides the Windows look and feel for a password field.
The only difference from the standard text field is that
the view of the text is simply a string of the echo
character as specified in JPasswordField, rather than the
real text contained in the field.
Method Summary |
View |
Creates a view (PasswordView) for an element.
|
static ComponentUI |
Creates a UI for a JPasswordField.
|
protected String |
Fetches the name used as a key to look up properties through the
UIManager.
|
protected void |
Installs the necessary properties on the JPasswordField.
|
Methods inherited from class javax.swing.plaf.basic.BasicTextUI |
create, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getPropertyPrefix, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicPasswordFieldUI
public BasicPasswordFieldUI()
-
create
public View create(Element elem)
-
Creates a view (PasswordView) for an element.
- Overrides:
create
in class BasicTextFieldUI
- Parameters:
elem
- the element
- Returns:
- the view
createUI
public static ComponentUI createUI(JComponent c)
-
Creates a UI for a JPasswordField.
- Parameters:
c
- the JPasswordField
- Returns:
- the UI
getPropertyPrefix
protected String 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.
- Overrides:
getPropertyPrefix
in class BasicTextFieldUI
- Returns:
- the name ("PasswordField")
installDefaults
protected void installDefaults()
-
Installs the necessary properties on the JPasswordField.
- Overrides:
installDefaults
in class BasicTextUI
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.