Package com.formdev.flatlaf.ui
Class FlatFormattedTextFieldUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TextUI
-
- javax.swing.plaf.basic.BasicTextUI
-
- javax.swing.plaf.basic.BasicTextFieldUI
-
- com.formdev.flatlaf.ui.FlatTextFieldUI
-
- com.formdev.flatlaf.ui.FlatFormattedTextFieldUI
-
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
,ViewFactory
public class FlatFormattedTextFieldUI extends FlatTextFieldUI
Provides the Flat LaF UI delegate forJFormattedTextField
.- UiDefault:
- FormattedTextField.font Font, FormattedTextField.background Color, FormattedTextField.foreground Color also used if not editable, FormattedTextField.caretForeground Color, FormattedTextField.selectionBackground Color, FormattedTextField.selectionForeground Color, FormattedTextField.disabledBackground Color used if not enabled, FormattedTextField.inactiveBackground Color used if not editable, FormattedTextField.inactiveForeground Color used if not enabled (yes, this is confusing; this should be named disabledForeground), FormattedTextField.border Border, FormattedTextField.margin Insets, FormattedTextField.caretBlinkRate int default is 500 milliseconds , Component.minimumWidth int, Component.isIntelliJTheme boolean, FormattedTextField.placeholderForeground Color, FormattedTextField.focusedBackground Color optional, FormattedTextField.iconTextGap int optional, default is 4, TextComponent.selectAllOnFocusPolicy String never, once (default) or always, TextComponent.selectAllOnMouseClick boolean
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
-
Field Summary
-
Fields inherited from class com.formdev.flatlaf.ui.FlatTextFieldUI
clearButton, disabledBackground, focusedBackground, iconTextGap, inactiveBackground, isIntelliJTheme, leadingComponent, leadingIcon, minimumWidth, placeholderForeground, showClearButton, trailingComponent, trailingIcon
-
-
Constructor Summary
Constructors Constructor Description FlatFormattedTextFieldUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUI
createUI(JComponent c)
protected String
getPropertyPrefix()
-
Methods inherited from class com.formdev.flatlaf.ui.FlatTextFieldUI
applyStyle, applyStyleProperty, clearButtonClicked, createCaret, createClearButton, documentChanged, getIconsRect, getLeadingComponents, getLeadingIconWidth, getMinimumSize, getPadding, getPreferredSize, getStyleableInfos, getStyleableValue, getTrailingComponents, getTrailingIconWidth, getVisibleEditorRect, hasLeadingIcon, hasTrailingIcon, installClearButton, installDefaults, installDocumentListener, installLayout, installLeadingComponent, installListeners, installStyle, installTrailingComponent, installUI, paintBackground, paintIcons, paintPlaceholder, paintSafely, prepareLeadingOrTrailingComponent, propertyChange, scrollCaretToVisible, uninstallClearButton, uninstallDefaults, uninstallLeadingComponent, uninstallListeners, uninstallTrailingComponent, uninstallUI, updateClearButton
-
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, getNextVisualPositionFrom, getRootView, getToolTipText, installKeyboardActions, modelChanged, modelToView, modelToView, modelToView2D, paint, setView, uninstallKeyboardActions, update, viewToModel, viewToModel, viewToModel2D
-
Methods inherited from class javax.swing.plaf.TextUI
getToolTipText2D
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
getPropertyPrefix
protected String getPropertyPrefix()
- Overrides:
getPropertyPrefix
in classBasicTextFieldUI
-
-