Class FlatPasswordFieldUI

  • All Implemented Interfaces:
    javax.swing.text.ViewFactory

    public class FlatPasswordFieldUI
    extends javax.swing.plaf.basic.BasicPasswordFieldUI
    Provides the Flat LaF UI delegate for JPasswordField.
    UiDefault:
    PasswordField.font Font, PasswordField.background Color, PasswordField.foreground Color also used if not editable, PasswordField.caretForeground Color, PasswordField.selectionBackground Color, PasswordField.selectionForeground Color, PasswordField.disabledBackground Color used if not enabled, PasswordField.inactiveBackground Color used if not editable, PasswordField.inactiveForeground Color used if not enabled (yes, this is confusing; this should be named disabledForeground), PasswordField.border Border, PasswordField.margin Insets, PasswordField.echoChar character, PasswordField.caretBlinkRate int default is 500 milliseconds , Component.minimumWidth int, Component.isIntelliJTheme boolean, PasswordField.placeholderForeground Color, PasswordField.capsLockIcon Icon, TextComponent.selectAllOnFocusPolicy String never, once (default) or always
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI

        javax.swing.plaf.basic.BasicTextUI.BasicCaret, javax.swing.plaf.basic.BasicTextUI.BasicHighlighter
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.text.Caret createCaret()  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      java.awt.Dimension getMinimumSize​(javax.swing.JComponent c)  
      java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)  
      protected void installDefaults()  
      protected void installListeners()  
      protected void paintBackground​(java.awt.Graphics g)  
      protected void paintCapsLock​(java.awt.Graphics g)  
      protected void paintSafely​(java.awt.Graphics g)  
      protected void propertyChange​(java.beans.PropertyChangeEvent e)  
      protected void uninstallDefaults()  
      protected void uninstallListeners()  
      • Methods inherited from class javax.swing.plaf.basic.BasicPasswordFieldUI

        create, getPropertyPrefix
      • Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI

        getBaseline, getBaselineResizeBehavior
      • Methods inherited from class javax.swing.plaf.basic.BasicTextUI

        create, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installUI, modelChanged, modelToView, modelToView, modelToView2D, paint, setView, uninstallKeyboardActions, uninstallUI, update, viewToModel, viewToModel, viewToModel2D
      • Methods inherited from class javax.swing.plaf.TextUI

        getToolTipText2D
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • minimumWidth

        protected int minimumWidth
      • isIntelliJTheme

        protected boolean isIntelliJTheme
      • placeholderForeground

        protected java.awt.Color placeholderForeground
      • capsLockIcon

        protected javax.swing.Icon capsLockIcon
    • Constructor Detail

      • FlatPasswordFieldUI

        public FlatPasswordFieldUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • installDefaults

        protected void installDefaults()
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicPasswordFieldUI
      • uninstallDefaults

        protected void uninstallDefaults()
        Overrides:
        uninstallDefaults in class javax.swing.plaf.basic.BasicTextUI
      • installListeners

        protected void installListeners()
        Overrides:
        installListeners in class javax.swing.plaf.basic.BasicTextUI
      • uninstallListeners

        protected void uninstallListeners()
        Overrides:
        uninstallListeners in class javax.swing.plaf.basic.BasicTextUI
      • createCaret

        protected javax.swing.text.Caret createCaret()
        Overrides:
        createCaret in class javax.swing.plaf.basic.BasicTextUI
      • propertyChange

        protected void propertyChange​(java.beans.PropertyChangeEvent e)
        Overrides:
        propertyChange in class javax.swing.plaf.basic.BasicTextUI
      • paintSafely

        protected void paintSafely​(java.awt.Graphics g)
        Overrides:
        paintSafely in class javax.swing.plaf.basic.BasicTextUI
      • paintCapsLock

        protected void paintCapsLock​(java.awt.Graphics g)
      • paintBackground

        protected void paintBackground​(java.awt.Graphics g)
        Overrides:
        paintBackground in class javax.swing.plaf.basic.BasicTextUI
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.basic.BasicTextUI
      • getMinimumSize

        public java.awt.Dimension getMinimumSize​(javax.swing.JComponent c)
        Overrides:
        getMinimumSize in class javax.swing.plaf.basic.BasicTextUI