Class RadianceTextFieldUI

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

    public class RadianceTextFieldUI
    extends javax.swing.plaf.basic.BasicTextFieldUI
    implements TransitionAwareUI
    UI for text fields in Radiance look and feel.
    • 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
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RadianceTextFieldUI​(javax.swing.JComponent c)
      Simple constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.BasicTextFieldUI

        create, getBaseline, getBaselineResizeBehavior, getPropertyPrefix
      • 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

      • textField

        private javax.swing.JTextField textField
        The associated text 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

      • RadianceTextFieldUI

        protected RadianceTextFieldUI​(javax.swing.JComponent c)
        Simple constructor.
        Parameters:
        c - Component (text field).
    • 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
      • paintBackground

        protected void paintBackground​(java.awt.Graphics g)
        Overrides:
        paintBackground 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
      • installDefaults

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

        protected void uninstallDefaults()
        Overrides:
        uninstallDefaults 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