Package com.jgoodies.looks.plastic
Class PlasticTextAreaUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TextUI
-
- javax.swing.plaf.basic.BasicTextUI
-
- javax.swing.plaf.basic.BasicTextAreaUI
-
- com.jgoodies.looks.plastic.PlasticTextAreaUI
-
- All Implemented Interfaces:
javax.swing.text.ViewFactory
public final class PlasticTextAreaUI extends javax.swing.plaf.basic.BasicTextAreaUI
The JGoodies Plastic L&F implementation ofTextAreaUI
. In addition to its superclass BasicTextAreaUI, it updates the background colors using behavior from BasicTextFieldUI.- Version:
- $Revision: 1.11 $
-
-
Constructor Summary
Constructors Constructor Description PlasticTextAreaUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent c)
Creates a UI for a JTextArea.void
installUI(javax.swing.JComponent c)
protected void
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed on the associated JTextComponent.private static void
updateBackground(javax.swing.text.JTextComponent c)
-
Methods inherited from class javax.swing.plaf.basic.BasicTextAreaUI
create, getBaseline, getBaselineResizeBehavior, getMinimumSize, getPreferredSize, getPropertyPrefix, installDefaults
-
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, modelToView2D, paint, paintBackground, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel, viewToModel2D
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates a UI for a JTextArea.- Parameters:
c
- the text area- Returns:
- the UI
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in classjavax.swing.plaf.basic.BasicTextUI
-
propertyChange
protected void propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed on the associated JTextComponent. In addition to the superclass behavior, this UI updates the background if the editable or enabled property changes .- Overrides:
propertyChange
in classjavax.swing.plaf.basic.BasicTextAreaUI
- Parameters:
evt
- the property change event
-
updateBackground
private static void updateBackground(javax.swing.text.JTextComponent c)
-
-