javax.swing.plaf.basic
Class BasicTextAreaUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextAreaUI
- All Implemented Interfaces:
- ViewFactory
public class BasicTextAreaUI
- extends BasicTextUI
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicTextAreaUI
public BasicTextAreaUI()
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