Class PlasticTextFieldUI

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

    public final class PlasticTextFieldUI
    extends javax.swing.plaf.metal.MetalTextFieldUI
    The JGoodies Plastic L&F implementation of TextFieldUI. In addition to its superclass MetalTextFieldUI, it can use a caret that selects all text when the field gains focus via the keyboard.
    Version:
    $Revision: 1.9 $
    • 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()
      Creates the caret for a field.
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      Creates a UI for a JTextField.
      • Methods inherited from class javax.swing.plaf.metal.MetalTextFieldUI

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

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

        create, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, modelToView2D, paint, paintBackground, paintSafely, 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
    • Constructor Detail

      • PlasticTextFieldUI

        public PlasticTextFieldUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
        Creates a UI for a JTextField.
        Parameters:
        c - the text field
        Returns:
        the UI
      • createCaret

        protected javax.swing.text.Caret createCaret()
        Creates the caret for a field.
        Overrides:
        createCaret in class javax.swing.plaf.basic.BasicTextUI
        Returns:
        the caret