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
Provides the Flat LaF UI delegate for
JTextArea
.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Dimension
applyMinimumWidth
(JComponent c, Dimension size) protected void
applyStyle
(Object style) protected Object
applyStyleProperty
(String key, Object value) protected Caret
static ComponentUI
getStyleableValue
(JComponent c, String key) protected void
protected void
protected void
void
private void
protected void
protected void
protected void
protected void
protected void
private void
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
-
Field Details
-
minimumWidth
protected int minimumWidth -
background
-
disabledBackground
-
inactiveBackground
-
focusedBackground
-
oldDisabledBackground
-
oldInactiveBackground
-
defaultMargin
-
focusListener
-
oldStyleValues
-
-
Constructor Details
-
FlatTextAreaUI
public FlatTextAreaUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classBasicTextUI
-
installUIImpl
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicTextAreaUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classBasicTextUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicTextUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classBasicTextUI
-
createCaret
- Overrides:
createCaret
in classBasicTextUI
-
propertyChange
- Overrides:
propertyChange
in classBasicTextAreaUI
-
installStyle
protected void installStyle()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
updateBackground
private void updateBackground() -
getPreferredSize
- Overrides:
getPreferredSize
in classBasicTextAreaUI
-
getMinimumSize
- Overrides:
getMinimumSize
in classBasicTextAreaUI
-
applyMinimumWidth
-
paintSafely
- Overrides:
paintSafely
in classBasicTextUI
-
paintBackground
- Overrides:
paintBackground
in classBasicTextUI
-