APIdia Launch Partner
Top Description Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifTextAreaUI

extends BasicTextAreaUI
Class Inheritance
Known Direct Subclasses
sun.awt.X11.XTextAreaPeer.AWTTextAreaUI
Imports
javax.swing.JComponent, javax.swing.plaf.ComponentUI, javax.swing.plaf.basic.BasicTextAreaUI, javax.swing.text.Caret

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.
Author
Timothy Prinzing

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Caret

Returns:

the caret object
createCaret
()

Overrides javax.swing.plaf.basic.BasicTextUI.createCaret.

Creates the object to use for a caret.

public static ComponentUI

Returns:

the UI
createUI
(JComponent
a text area
ta
)

Hides javax.swing.plaf.basic.BasicTextAreaUI.createUI.

Creates a UI for a JTextArea.

Inherited from javax.swing.plaf.basic.BasicTextAreaUI:
creategetBaselinegetBaselineResizeBehaviorgetMinimumSizegetPreferredSizegetPropertyPrefixinstallDefaultspropertyChange

Constructor Detail

MotifTextAreaUIback to summary
public MotifTextAreaUI()

Method Detail

createCaretback to summary
protected Caret createCaret()

Overrides javax.swing.plaf.basic.BasicTextUI.createCaret.

Creates the object to use for a caret. By default an instance of MotifTextUI.MotifCaret is created. This method can be redefined to provide something else that implements the Caret interface.

Returns:Caret

the caret object

Annotations
@Override
createUIback to summary
public static ComponentUI createUI(JComponent ta)

Hides javax.swing.plaf.basic.BasicTextAreaUI.createUI.

Creates a UI for a JTextArea.

Parameters
ta:JComponent

a text area

Returns:ComponentUI

the UI