public class javax.swing.plaf.basic
BasicTextAreaUI


Show All Login
Java SE 6
  
Extends: ComponentUI > TextUI > BasicTextUI
Details
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 java.beans.XMLEncoder.
version1.75 04/20/06


Constructors
public BasicTextAreaUI()
Constructs a new BasicTextAreaUI object.

Methods
public View create(Element elem) Details
Creates the view for an element. Returns a WrappedPlainView or PlainView.
elemthe element
returnthe view
public static ComponentUI createUI(JComponent ta) Details
Creates a UI for a JTextArea.
taa text area
returnthe UI
protected void installDefaults()
protected void propertyChange(PropertyChangeEvent evt) Details
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.
evtthe property change event

Properties
public int getBaseline(JComponent c, int width, int height) Details
Returns the baseline.
ThrowsNullPointerException: if c is null
ThrowsIllegalArgumentException: if width or height is < 0
since1.6
See also getBaseline(int, int)
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c) Details
Returns an enum indicating how the baseline of the component changes as the size changes.
ThrowsNullPointerException: if c is null
since1.6
See also getBaseline(int, int)
public Dimension getMinimumSize(JComponent c) Details
The method is overridden to take into account caret width.
cthe editor component
returnthe minimum size
ThrowsIllegalArgumentException: if invalid value is passed
since1.5
public Dimension getPreferredSize(JComponent c) Details
The method is overridden to take into account caret width.
cthe editor component
returnthe preferred size
ThrowsIllegalArgumentException: if invalid value is passed
since1.5
protected String getPropertyPrefix() Details
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.
returnthe name ("TextArea")