javax.swing.plaf.basic

Class BasicTextAreaUI

public class BasicTextAreaUI extends BasicTextUI

Constructor Summary
BasicTextAreaUI()
Method Summary
Viewcreate(Element elem)
Create the view.
static ComponentUIcreateUI(JComponent comp)
protected StringgetPropertyPrefix()
Returns the prefix for entries in the {@link UIDefaults} table.
protected voidpropertyChange(PropertyChangeEvent ev)
Receives notification whenever one of the text component's bound properties changes.

Constructor Detail

BasicTextAreaUI

public BasicTextAreaUI()

Method Detail

create

public View create(Element elem)
Create the view. Returns a WrappedPlainView if the text area has lineWrap set to true, otherwise returns a PlainView. If lineWrap is true has to check whether the wrap style is word or character and return an appropriate WrappedPlainView.

Parameters: elem the element to create a View for

Returns: an appropriate View for the element

createUI

public static ComponentUI createUI(JComponent comp)

getPropertyPrefix

protected String getPropertyPrefix()
Returns the prefix for entries in the {@link UIDefaults} table.

Returns: "TextArea"

propertyChange

protected void propertyChange(PropertyChangeEvent ev)
Receives notification whenever one of the text component's bound properties changes. This changes the view to WrappedPlainView if setLineWrap(true) is called, and back to PlainView if setLineWrap(false) is called.

Parameters: ev the property change event