Package com.formdev.flatlaf.ui
Class FlatTextAreaUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TextUI
-
- javax.swing.plaf.basic.BasicTextUI
-
- javax.swing.plaf.basic.BasicTextAreaUI
-
- com.formdev.flatlaf.ui.FlatTextAreaUI
-
- All Implemented Interfaces:
ViewFactory
public class FlatTextAreaUI extends BasicTextAreaUI
Provides the Flat LaF UI delegate forJTextArea.- UiDefault:
- TextArea.font Font, TextArea.background Color, TextArea.foreground Color also used if not editable, TextArea.caretForeground Color, TextArea.selectionBackground Color, TextArea.selectionForeground Color, TextArea.inactiveForeground Color used if not enabled (yes, this is confusing; this should be named disabledForeground), TextArea.border Border, TextArea.margin Insets, TextArea.caretBlinkRate int default is 500 milliseconds , Component.minimumWidth int, Component.isIntelliJTheme boolean, TextArea.disabledBackground Color used if not enabled, TextArea.inactiveBackground Color used if not editable, TextArea.focusedBackground Color optional
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
-
Field Summary
Fields Modifier and Type Field Description protected Colorbackgroundprotected ColordisabledBackgroundprotected ColorfocusedBackgroundprotected ColorinactiveBackgroundprotected booleanisIntelliJThemeprotected intminimumWidth
-
Constructor Summary
Constructors Constructor Description FlatTextAreaUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUIcreateUI(JComponent c)DimensiongetMinimumSize(JComponent c)DimensiongetPreferredSize(JComponent c)protected voidinstallDefaults()protected voidinstallListeners()voidinstallUI(JComponent c)protected voidpaintBackground(Graphics g)protected voidpaintSafely(Graphics g)protected voidpropertyChange(PropertyChangeEvent e)protected voiduninstallDefaults()protected voiduninstallListeners()-
Methods inherited from class javax.swing.plaf.basic.BasicTextAreaUI
create, getBaseline, getBaselineResizeBehavior, getPropertyPrefix
-
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, modelChanged, modelToView, modelToView, modelToView2D, paint, setView, uninstallKeyboardActions, 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
-
-
-
-
Field Detail
-
minimumWidth
protected int minimumWidth
-
isIntelliJTheme
protected boolean isIntelliJTheme
-
background
protected Color background
-
disabledBackground
protected Color disabledBackground
-
inactiveBackground
protected Color inactiveBackground
-
focusedBackground
protected Color focusedBackground
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUIin classBasicTextUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classBasicTextAreaUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classBasicTextUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classBasicTextUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classBasicTextUI
-
propertyChange
protected void propertyChange(PropertyChangeEvent e)
- Overrides:
propertyChangein classBasicTextAreaUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classBasicTextAreaUI
-
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
getMinimumSizein classBasicTextAreaUI
-
paintSafely
protected void paintSafely(Graphics g)
- Overrides:
paintSafelyin classBasicTextUI
-
paintBackground
protected void paintBackground(Graphics g)
- Overrides:
paintBackgroundin classBasicTextUI
-
-