All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicTextPane

java.lang.Object
   |
   +----com.sun.java.swing.text.JTextUI
           |
           +----com.sun.java.swing.basic.BasicTextPane

public class BasicTextPane
extends JTextUI
Provides the look and feel for a styled text editor.


Variable Index

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

Constructor Index

 o BasicTextPane()

Method Index

 o createUI(JTextPane)
 o createView()
Simply 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)
Install the default keymap after the superclass does it's thing.
 o paint(Graphics, JComponent)
This view uses child components to represent the view so these methods are not needed.

Variables

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

Constructors

 o BasicTextPane
 public BasicTextPane()

Methods

 o createUI
 public static TextUI createUI(JTextPane c)
 o createViewFactory
 protected JTextUI. 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.

Overrides:
createViewFactory in class JTextUI
See Also:
create
 o installUI
 public void installUI(JComponent c)
Install the default keymap after the superclass does it's thing.

Overrides:
installUI in class JTextUI
See Also:
installUI
 o createView
 protected Component createView()
Simply wraps the default view created with a ScrollPane so that the view can be scrolled around.

Overrides:
createView in class JTextUI
 o paint
 public void paint(Graphics g,
                   JComponent c)
This view uses child components to represent the view so these methods are not needed.

Overrides:
paint in class JTextUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index