javax.swing.plaf.basic
Class BasicTextAreaUI
public
class
BasicTextAreaUI
extends BasicTextUI
Method Summary |
View | create(Element elem)
Create the view. |
static ComponentUI | createUI(JComponent comp) |
protected String | getPropertyPrefix()
Returns the prefix for entries in the UIDefaults table.
|
protected void | propertyChange(PropertyChangeEvent ev)
Receives notification whenever one of the text component's bound
properties changes. |
public BasicTextAreaUI()
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
public static ComponentUI createUI(JComponent comp)
protected String getPropertyPrefix()
Returns the prefix for entries in the UIDefaults table.
Returns: "TextArea"
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