javax.swing.plaf.basic
Class BasicTextAreaUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TextUI
          extended by javax.swing.plaf.basic.BasicTextUI
              extended by javax.swing.plaf.basic.BasicTextAreaUI
All Implemented Interfaces:
ViewFactory

public class BasicTextAreaUI
extends BasicTextUI


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
 
Constructor Summary
BasicTextAreaUI()
           
 
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.
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel
 
Methods inherited from class javax.swing.plaf.TextUI
getToolTipText
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTextAreaUI

public BasicTextAreaUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent comp)

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.

Specified by:
create in interface ViewFactory
Overrides:
create in class BasicTextUI
Parameters:
elem - the element to create a View for
Returns:
an appropriate View for the element
See Also:
ViewFactory

getPropertyPrefix

protected String getPropertyPrefix()
Returns the prefix for entries in the UIDefaults table.

Specified by:
getPropertyPrefix in class BasicTextUI
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.

Overrides:
propertyChange in class BasicTextUI
Parameters:
ev - the property change event