Class RadiancePasswordFieldUI

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

    public class RadiancePasswordFieldUI
    extends javax.swing.plaf.basic.BasicPasswordFieldUI
    implements TransitionAwareUI
    UI for password fields in Radiance look and feel.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  RadiancePasswordFieldUI.RadiancePasswordView
      Custom password view.
      • Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI

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

      Constructors 
      Modifier Constructor Description
      protected RadiancePasswordFieldUI​(javax.swing.JComponent c)
      Creates the UI delegate for the specified component (password field).
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.text.View create​(javax.swing.text.Element elem)  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent comp)  
      StateTransitionTracker getTransitionTracker()
      Returns the model for tracking the transitions.
      protected void installDefaults()  
      protected void installListeners()  
      void installUI​(javax.swing.JComponent c)  
      boolean isInside​(java.awt.event.MouseEvent me)
      Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.
      protected void paintBackground​(java.awt.Graphics g)  
      protected void uninstallDefaults()  
      protected void uninstallListeners()  
      void uninstallUI​(javax.swing.JComponent c)  
      void update​(java.awt.Graphics g, javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.basic.BasicPasswordFieldUI

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

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

        create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, modelChanged, modelToView, modelToView, modelToView2D, paint, paintSafely, propertyChange, setView, uninstallKeyboardActions, 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

      • passwordField

        private javax.swing.JPasswordField passwordField
        The associated password field.
      • radiancePropertyChangeListener

        private java.beans.PropertyChangeListener radiancePropertyChangeListener
        Property change listener.
      • transitionModel

        private javax.swing.ButtonModel transitionModel
        Surrogate button model for tracking the state transitions.
    • Constructor Detail

      • RadiancePasswordFieldUI

        protected RadiancePasswordFieldUI​(javax.swing.JComponent c)
        Creates the UI delegate for the specified component (password field).
        Parameters:
        c - Component.
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent comp)
      • installUI

        public void installUI​(javax.swing.JComponent c)
        Overrides:
        installUI in class javax.swing.plaf.basic.BasicTextUI
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class javax.swing.plaf.basic.BasicTextUI
      • create

        public javax.swing.text.View create​(javax.swing.text.Element elem)
        Specified by:
        create in interface javax.swing.text.ViewFactory
        Overrides:
        create in class javax.swing.plaf.basic.BasicPasswordFieldUI
      • 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
      • 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
      • paintBackground

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

        public boolean isInside​(java.awt.event.MouseEvent me)
        Description copied from interface: TransitionAwareUI
        Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.
        Specified by:
        isInside in interface TransitionAwareUI
        Parameters:
        me - Mouse event.
        Returns:
        true if the mouse position of the specified event lies inside the area of the component designated for transition effects, false otherwise.
      • update

        public void update​(java.awt.Graphics g,
                           javax.swing.JComponent c)
        Overrides:
        update in class javax.swing.plaf.basic.BasicTextUI