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:
ViewFactory
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.8 $
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Caret
Creates the caret for a field.static ComponentUI
Creates a UI for a JFormattedTextField.Methods inherited from class javax.swing.plaf.basic.BasicFormattedTextFieldUI
getPropertyPrefix
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
Methods inherited from class javax.swing.plaf.TextUI
getToolTipText2D
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Constructor Details
-
PlasticFormattedTextFieldUI
public PlasticFormattedTextFieldUI()
-
-
Method Details
-
createUI
Creates a UI for a JFormattedTextField.- Parameters:
c
- the formatted text field- Returns:
- the UI
-
createCaret
Creates the caret for a field.- Overrides:
createCaret
in classBasicTextUI
- Returns:
- the caret
-