javax.swing.plaf.basic
Class BasicPasswordFieldUI

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI 
      extended by javax.swing.plaf.TextUI sample code for javax.swing.plaf.TextUI definition code for javax.swing.plaf.TextUI 
          extended by javax.swing.plaf.basic.BasicTextUI sample code for javax.swing.plaf.basic.BasicTextUI definition code for javax.swing.plaf.basic.BasicTextUI 
              extended by javax.swing.plaf.basic.BasicTextFieldUI sample code for javax.swing.plaf.basic.BasicTextFieldUI definition code for javax.swing.plaf.basic.BasicTextFieldUI 
                  extended by javax.swing.plaf.basic.BasicPasswordFieldUI
All Implemented Interfaces:
ViewFactory sample code for javax.swing.text.ViewFactory definition code for javax.swing.text.ViewFactory

public class BasicPasswordFieldUI
extends BasicTextFieldUI sample code for javax.swing.plaf.basic.BasicTextFieldUI definition code for javax.swing.plaf.basic.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 sample code for javax.swing.plaf.basic.BasicTextUI definition code for javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret sample code for javax.swing.plaf.basic.BasicTextUI.BasicCaret definition code for javax.swing.plaf.basic.BasicTextUI.BasicCaret , BasicTextUI.BasicHighlighter sample code for javax.swing.plaf.basic.BasicTextUI.BasicHighlighter definition code for javax.swing.plaf.basic.BasicTextUI.BasicHighlighter
 
Constructor Summary
BasicPasswordFieldUI sample code for javax.swing.plaf.basic.BasicPasswordFieldUI.BasicPasswordFieldUI() definition code for javax.swing.plaf.basic.BasicPasswordFieldUI.BasicPasswordFieldUI() ()
           
 
Method Summary
 View sample code for javax.swing.text.View definition code for javax.swing.text.View create sample code for javax.swing.plaf.basic.BasicPasswordFieldUI.create(javax.swing.text.Element) definition code for javax.swing.plaf.basic.BasicPasswordFieldUI.create(javax.swing.text.Element) (Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
          Creates a view (PasswordView) for an element.
static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI createUI sample code for javax.swing.plaf.basic.BasicPasswordFieldUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicPasswordFieldUI.createUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Creates a UI for a JPasswordField.
protected  String sample code for java.lang.String definition code for java.lang.String getPropertyPrefix sample code for javax.swing.plaf.basic.BasicPasswordFieldUI.getPropertyPrefix() definition code for javax.swing.plaf.basic.BasicPasswordFieldUI.getPropertyPrefix() ()
          Fetches the name used as a key to look up properties through the UIManager.
 
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI sample code for javax.swing.plaf.basic.BasicTextFieldUI definition code for javax.swing.plaf.basic.BasicTextFieldUI
installUI sample code for javax.swing.plaf.basic.BasicTextFieldUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTextFieldUI.installUI(javax.swing.JComponent) , propertyChange sample code for javax.swing.plaf.basic.BasicTextFieldUI.propertyChange(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicTextFieldUI.propertyChange(java.beans.PropertyChangeEvent)
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI sample code for javax.swing.plaf.basic.BasicTextUI definition code for javax.swing.plaf.basic.BasicTextUI
create sample code for javax.swing.plaf.basic.BasicTextUI.create(javax.swing.text.Element, int, int) definition code for javax.swing.plaf.basic.BasicTextUI.create(javax.swing.text.Element, int, int) , createCaret sample code for javax.swing.plaf.basic.BasicTextUI.createCaret() definition code for javax.swing.plaf.basic.BasicTextUI.createCaret() , createHighlighter sample code for javax.swing.plaf.basic.BasicTextUI.createHighlighter() definition code for javax.swing.plaf.basic.BasicTextUI.createHighlighter() , createKeymap sample code for javax.swing.plaf.basic.BasicTextUI.createKeymap() definition code for javax.swing.plaf.basic.BasicTextUI.createKeymap() , damageRange sample code for javax.swing.plaf.basic.BasicTextUI.damageRange(javax.swing.text.JTextComponent, int, int) definition code for javax.swing.plaf.basic.BasicTextUI.damageRange(javax.swing.text.JTextComponent, int, int) , damageRange sample code for javax.swing.plaf.basic.BasicTextUI.damageRange(javax.swing.text.JTextComponent, int, int, javax.swing.text.Position.Bias, javax.swing.text.Position.Bias) definition code for javax.swing.plaf.basic.BasicTextUI.damageRange(javax.swing.text.JTextComponent, int, int, javax.swing.text.Position.Bias, javax.swing.text.Position.Bias) , getComponent sample code for javax.swing.plaf.basic.BasicTextUI.getComponent() definition code for javax.swing.plaf.basic.BasicTextUI.getComponent() , getEditorKit sample code for javax.swing.plaf.basic.BasicTextUI.getEditorKit(javax.swing.text.JTextComponent) definition code for javax.swing.plaf.basic.BasicTextUI.getEditorKit(javax.swing.text.JTextComponent) , getKeymapName sample code for javax.swing.plaf.basic.BasicTextUI.getKeymapName() definition code for javax.swing.plaf.basic.BasicTextUI.getKeymapName() , getMaximumSize sample code for javax.swing.plaf.basic.BasicTextUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTextUI.getMaximumSize(javax.swing.JComponent) , getMinimumSize sample code for javax.swing.plaf.basic.BasicTextUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTextUI.getMinimumSize(javax.swing.JComponent) , getNextVisualPositionFrom sample code for javax.swing.plaf.basic.BasicTextUI.getNextVisualPositionFrom(javax.swing.text.JTextComponent, int, javax.swing.text.Position.Bias, int, javax.swing.text.Position.Bias[]) definition code for javax.swing.plaf.basic.BasicTextUI.getNextVisualPositionFrom(javax.swing.text.JTextComponent, int, javax.swing.text.Position.Bias, int, javax.swing.text.Position.Bias[]) , getPreferredSize sample code for javax.swing.plaf.basic.BasicTextUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTextUI.getPreferredSize(javax.swing.JComponent) , getRootView sample code for javax.swing.plaf.basic.BasicTextUI.getRootView(javax.swing.text.JTextComponent) definition code for javax.swing.plaf.basic.BasicTextUI.getRootView(javax.swing.text.JTextComponent) , getToolTipText sample code for javax.swing.plaf.basic.BasicTextUI.getToolTipText(javax.swing.text.JTextComponent, java.awt.Point) definition code for javax.swing.plaf.basic.BasicTextUI.getToolTipText(javax.swing.text.JTextComponent, java.awt.Point) , getVisibleEditorRect sample code for javax.swing.plaf.basic.BasicTextUI.getVisibleEditorRect() definition code for javax.swing.plaf.basic.BasicTextUI.getVisibleEditorRect() , installDefaults sample code for javax.swing.plaf.basic.BasicTextUI.installDefaults() definition code for javax.swing.plaf.basic.BasicTextUI.installDefaults() , installKeyboardActions sample code for javax.swing.plaf.basic.BasicTextUI.installKeyboardActions() definition code for javax.swing.plaf.basic.BasicTextUI.installKeyboardActions() , installListeners sample code for javax.swing.plaf.basic.BasicTextUI.installListeners() definition code for javax.swing.plaf.basic.BasicTextUI.installListeners() , modelChanged sample code for javax.swing.plaf.basic.BasicTextUI.modelChanged() definition code for javax.swing.plaf.basic.BasicTextUI.modelChanged() , modelToView sample code for javax.swing.plaf.basic.BasicTextUI.modelToView(javax.swing.text.JTextComponent, int) definition code for javax.swing.plaf.basic.BasicTextUI.modelToView(javax.swing.text.JTextComponent, int) , modelToView sample code for javax.swing.plaf.basic.BasicTextUI.modelToView(javax.swing.text.JTextComponent, int, javax.swing.text.Position.Bias) definition code for javax.swing.plaf.basic.BasicTextUI.modelToView(javax.swing.text.JTextComponent, int, javax.swing.text.Position.Bias) , paint sample code for javax.swing.plaf.basic.BasicTextUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTextUI.paint(java.awt.Graphics, javax.swing.JComponent) , paintBackground sample code for javax.swing.plaf.basic.BasicTextUI.paintBackground(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicTextUI.paintBackground(java.awt.Graphics) , paintSafely sample code for javax.swing.plaf.basic.BasicTextUI.paintSafely(java.awt.Graphics) definition code for javax.swing.plaf.basic.BasicTextUI.paintSafely(java.awt.Graphics) , setView sample code for javax.swing.plaf.basic.BasicTextUI.setView(javax.swing.text.View) definition code for javax.swing.plaf.basic.BasicTextUI.setView(javax.swing.text.View) , uninstallDefaults sample code for javax.swing.plaf.basic.BasicTextUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicTextUI.uninstallDefaults() , uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicTextUI.uninstallKeyboardActions() definition code for javax.swing.plaf.basic.BasicTextUI.uninstallKeyboardActions() , uninstallListeners sample code for javax.swing.plaf.basic.BasicTextUI.uninstallListeners() definition code for javax.swing.plaf.basic.BasicTextUI.uninstallListeners() , uninstallUI sample code for javax.swing.plaf.basic.BasicTextUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTextUI.uninstallUI(javax.swing.JComponent) , update sample code for javax.swing.plaf.basic.BasicTextUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTextUI.update(java.awt.Graphics, javax.swing.JComponent) , viewToModel sample code for javax.swing.plaf.basic.BasicTextUI.viewToModel(javax.swing.text.JTextComponent, java.awt.Point) definition code for javax.swing.plaf.basic.BasicTextUI.viewToModel(javax.swing.text.JTextComponent, java.awt.Point) , viewToModel sample code for javax.swing.plaf.basic.BasicTextUI.viewToModel(javax.swing.text.JTextComponent, java.awt.Point, javax.swing.text.Position.Bias[]) definition code for javax.swing.plaf.basic.BasicTextUI.viewToModel(javax.swing.text.JTextComponent, java.awt.Point, javax.swing.text.Position.Bias[])
 
Methods inherited from class javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
contains sample code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) definition code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) , getAccessibleChild sample code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) definition code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) , getAccessibleChildrenCount sample code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

BasicPasswordFieldUI sample code for javax.swing.plaf.basic.BasicPasswordFieldUI() definition code for javax.swing.plaf.basic.BasicPasswordFieldUI()

public BasicPasswordFieldUI()
Method Detail

createUI sample code for javax.swing.plaf.basic.BasicPasswordFieldUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicPasswordFieldUI.createUI(javax.swing.JComponent)

public static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI  createUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Creates a UI for a JPasswordField.

Parameters:
c - the JPasswordField
Returns:
the UI

getPropertyPrefix sample code for javax.swing.plaf.basic.BasicPasswordFieldUI.getPropertyPrefix() definition code for javax.swing.plaf.basic.BasicPasswordFieldUI.getPropertyPrefix()

protected String sample code for java.lang.String definition code for java.lang.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 sample code for javax.swing.plaf.basic.BasicTextFieldUI.getPropertyPrefix() definition code for javax.swing.plaf.basic.BasicTextFieldUI.getPropertyPrefix() in class BasicTextFieldUI sample code for javax.swing.plaf.basic.BasicTextFieldUI definition code for javax.swing.plaf.basic.BasicTextFieldUI
Returns:
the name ("PasswordField")

create sample code for javax.swing.plaf.basic.BasicPasswordFieldUI.create(javax.swing.text.Element) definition code for javax.swing.plaf.basic.BasicPasswordFieldUI.create(javax.swing.text.Element)

public View sample code for javax.swing.text.View definition code for javax.swing.text.View  create(Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
Creates a view (PasswordView) for an element.

Specified by:
create sample code for javax.swing.text.ViewFactory.create(javax.swing.text.Element) definition code for javax.swing.text.ViewFactory.create(javax.swing.text.Element) in interface ViewFactory sample code for javax.swing.text.ViewFactory definition code for javax.swing.text.ViewFactory
Overrides:
create sample code for javax.swing.plaf.basic.BasicTextFieldUI.create(javax.swing.text.Element) definition code for javax.swing.plaf.basic.BasicTextFieldUI.create(javax.swing.text.Element) in class BasicTextFieldUI sample code for javax.swing.plaf.basic.BasicTextFieldUI definition code for javax.swing.plaf.basic.BasicTextFieldUI
Parameters:
elem - the element
Returns:
the view
See Also:
View sample code for javax.swing.text.View definition code for javax.swing.text.View