Class FreeColTextFieldUI

  • All Implemented Interfaces:
    javax.swing.text.ViewFactory
    Direct Known Subclasses:
    FreeColFormattedTextFieldUI

    public class FreeColTextFieldUI
    extends javax.swing.plaf.basic.BasicTextFieldUI
    Provides a tiled background image "image.background.FreeColTextField" to text fields.
    • 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.JComponent c  
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      void paintBackground​(java.awt.Graphics g)  
      void paintSafely​(java.awt.Graphics g)  
      • 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, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, modelToView2D, paint, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, 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

      • c

        private final javax.swing.JComponent c
    • Constructor Detail

      • FreeColTextFieldUI

        protected FreeColTextFieldUI​(javax.swing.JComponent c)
    • Method Detail

      • createUI

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

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

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