Package com.jgoodies.looks.plastic
Class PlasticFormattedTextFieldUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TextUI
-
- javax.swing.plaf.basic.BasicTextUI
-
- javax.swing.plaf.basic.BasicTextFieldUI
-
- javax.swing.plaf.basic.BasicFormattedTextFieldUI
-
- com.jgoodies.looks.plastic.PlasticFormattedTextFieldUI
-
- All Implemented Interfaces:
javax.swing.text.ViewFactory
public final class PlasticFormattedTextFieldUI extends javax.swing.plaf.basic.BasicFormattedTextFieldUI
The JGoodies Plastic L&F implementation ofTextFieldUI
. 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.8 $
-
-
Constructor Summary
Constructors Constructor Description PlasticFormattedTextFieldUI()
-
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 JFormattedTextField.-
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
create, getBaseline, getBaselineResizeBehavior
-
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, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel, viewToModel2D
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates a UI for a JFormattedTextField.- Parameters:
c
- the formatted text field- Returns:
- the UI
-
createCaret
protected javax.swing.text.Caret createCaret()
Creates the caret for a field.- Overrides:
createCaret
in classjavax.swing.plaf.basic.BasicTextUI
- Returns:
- the caret
-
-