java.lang.Object | ||||
↳ | javax.swing.plaf.ComponentUI | |||
↳ | javax.swing.plaf.TextUI | |||
↳ | javax.swing.plaf.basic.BasicTextUI | |||
↳ | javax.swing.plaf.basic.BasicTextAreaUI |
![]() |
Provides the look and feel for a plain text editor. In this implementation the default UI is extended to act as a simple view factory.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new BasicTextAreaUI object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates the view for an element.
| |||||||||||
Creates a UI for a JTextArea.
| |||||||||||
Returns the baseline.
| |||||||||||
Returns an enum indicating how the baseline of the component
changes as the size changes.
| |||||||||||
The method is overridden to take into account caret width.
| |||||||||||
The method is overridden to take into account caret width.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Fetches the name used as a key to look up properties through the
UIManager.
| |||||||||||
Initializes component properties, e.g.
| |||||||||||
This method gets called when a bound property is changed
on the associated JTextComponent.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs a new BasicTextAreaUI object.
Creates the view for an element. Returns a WrappedPlainView or PlainView.
elem | the element |
---|
Creates a UI for a JTextArea.
ta | a text area |
---|
Returns the baseline.
c | JComponent baseline is being requested for |
---|---|
width | the width to get the baseline for |
height | the height to get the baseline for |
Returns an enum indicating how the baseline of the component changes as the size changes.
c | JComponent to return baseline resize behavior for |
---|
NullPointerException |
---|
The method is overridden to take into account caret width.
c | the editor component |
---|
IllegalArgumentException | if invalid value is passed |
---|
The method is overridden to take into account caret width.
c | the editor component |
---|
IllegalArgumentException | if invalid value is passed |
---|
Fetches the name used as a key to look up properties through the UIManager. This is used as a prefix to all the standard text properties.
Initializes component properties, e.g. font, foreground, background, caret color, selection color, selected text color, disabled text color, and border color. The font, foreground, and background properties are only set if their current value is either null or a UIResource, other properties are set if the current value is null.
This method gets called when a bound property is changed on the associated JTextComponent. This is a hook which UI implementations may change to reflect how the UI displays bound properties of JTextComponent subclasses. This is implemented to rebuild the View when the WrapLine or the WrapStyleWord property changes.
evt | the property change event |
---|