- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TextUI
-
- javax.swing.plaf.basic.BasicTextUI
-
- javax.swing.plaf.basic.BasicTextFieldUI
-
- javax.swing.plaf.synth.SynthTextFieldUI
-
- javax.swing.plaf.synth.SynthFormattedTextFieldUI
-
- All Implemented Interfaces:
- SynthConstants, SynthUI, ViewFactory
public class SynthFormattedTextFieldUI extends SynthTextFieldUI
Provides the Synth L&F UI delegate forJFormattedTextField
.- Since:
- 1.7
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
-
Constructor Summary
Constructors Constructor and Description SynthFormattedTextFieldUI()
-
Method Summary
Methods Modifier and Type Method and Description static ComponentUI
createUI(JComponent c)
Creates a UI for a JFormattedTextField.protected String
getPropertyPrefix()
Fetches the name used as a key to lookup properties through the UIManager.void
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Paints the border.-
Methods inherited from class javax.swing.plaf.synth.SynthTextFieldUI
getContext, installDefaults, paint, paintBackground, propertyChange, uninstallDefaults, update
-
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
create, getBaseline, getBaselineResizeBehavior
-
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, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintSafely, setView, uninstallKeyboardActions, uninstallListeners, uninstallUI, viewToModel, viewToModel
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
Creates a UI for a JFormattedTextField.- Parameters:
c
- the formatted text field- Returns:
- the UI
-
getPropertyPrefix
protected String getPropertyPrefix()
Fetches the name used as a key to lookup properties through the UIManager. This is used as a prefix to all the standard text properties.- Overrides:
getPropertyPrefix
in classBasicTextFieldUI
- Returns:
- the name "FormattedTextField"
-
paintBorder
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Description copied from interface:SynthUI
Paints the border.- Specified by:
paintBorder
in interfaceSynthUI
- Overrides:
paintBorder
in classSynthTextFieldUI
- Parameters:
context
- a component contextg
-Graphics
to paint onx
- the X coordinatey
- the Y coordinatew
- width of the borderh
- height of the border
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/swing/plaf/synth/SynthFormattedTextFieldUI.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.