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:
FlatStylingSupport.StyleableUI,ViewFactory
public class FlatTextAreaUI extends BasicTextAreaUI implements FlatStylingSupport.StyleableUI
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 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 protected voidapplyStyle(Object style)protected ObjectapplyStyleProperty(String key, Object value)protected CaretcreateCaret()static ComponentUIcreateUI(JComponent c)DimensiongetMinimumSize(JComponent c)DimensiongetPreferredSize(JComponent c)Map<String,Class<?>>getStyleableInfos(JComponent c)ObjectgetStyleableValue(JComponent c, String key)protected voidinstallDefaults()protected voidinstallListeners()protected voidinstallStyle()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, 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
-
-
-
-
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
-
createCaret
protected Caret createCaret()
- Overrides:
createCaretin classBasicTextUI
-
propertyChange
protected void propertyChange(PropertyChangeEvent e)
- Overrides:
propertyChangein classBasicTextAreaUI
-
installStyle
protected void installStyle()
- Since:
- 2
-
applyStyle
protected void applyStyle(Object style)
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos(JComponent c)
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
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
-
-