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

java.lang.Object extended by javax.swing.plaf.ComponentUI extended by javax.swing.plaf.TextUI extended by javax.swing.plaf.basic.BasicTextUI extended by javax.swing.plaf.basic.BasicTextFieldUI extended by javax.swing.plaf.basic.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.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
   
Constructor Summary

          
 
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.BasicTextFieldUI
create, createUI, getBaseline, getBaselineResizeBehavior, getPropertyPrefix
 
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.TextUI
damageRange, damageRange, getEditorKit, getNextVisualPositionFrom, getRootView, getToolTipText, modelToView, modelToView, 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
 

Constructor Detail

BasicPasswordFieldUI

public BasicPasswordFieldUI()
Method Detail

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:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.