All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicTextArea

java.lang.Object
   |
   +----com.sun.java.swing.plaf.DefaultTextUI
           |
           +----com.sun.java.swing.basic.BasicTextArea

public class BasicTextArea
extends DefaultTextUI
Provides the look and feel for a plain text editor.


Variable Index

 o KeymapName
This is the name of the default keymap that will be shared by all BasicTextArea instances unless they arrange for something different.

Constructor Index

 o BasicTextArea()
Constructs a new BasicTextArea object.

Method Index

 o createUI(JTextArea)
Creates a UI.
 o createView()
Wraps the default view created with a ScrollPane so that the view can be scrolled around.
 o createViewFactory()
Creates the factory to be used for building the various view fragments that make up the view that represents the model.
 o installUI(JComponent)
Installs the default keymap after the superclass does its thing.
 o paint(Graphics, JComponent)
Paints the text area.

Variables

 o KeymapName
 public static final String KeymapName
This is the name of the default keymap that will be shared by all BasicTextArea instances unless they arrange for something different. The keymap will resolve through the JTextController.DEFAULT_KEYMAP.

Constructors

 o BasicTextArea
 public BasicTextArea()
Constructs a new BasicTextArea object.

Methods

 o createUI
 public static TextUI createUI(JTextArea ta)
Creates a UI.

Parameters:
ta - a text area
Returns:
the UI
 o createViewFactory
 protected DefaultTextUI. JViewFactory createViewFactory()
Creates the factory to be used for building the various view fragments that make up the view that represents the model. This is what determines how the model will be represented.

Returns:
the factory
Overrides:
createViewFactory in class DefaultTextUI
See Also:
create
 o installUI
 public void installUI(JComponent c)
Installs the default keymap after the superclass does its thing.

Parameters:
c - a component
Overrides:
installUI in class DefaultTextUI
See Also:
installUI
 o paint
 public void paint(Graphics g,
                   JComponent c)
Paints the text area.

Parameters:
g - the graphics context
c - the component to paint
Overrides:
paint in class DefaultTextUI
 o createView
 protected Component createView()
Wraps the default view created with a ScrollPane so that the view can be scrolled around.

Returns:
the view wrapped in a ScrollPane
Overrides:
createView in class DefaultTextUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index