All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicTextField

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

public class BasicTextField
extends JTextUI
Provides the Windows look and feel for a text field. This is basically the following customizations to the default look-and-feel.


Variable Index

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

Constructor Index

 o BasicTextField()

Method Index

 o createController(JTextComponent)
This is defined to create the controller responsible binding events to actions in the text field.
 o createUI(JTextField)
 o createView()
Simply wraps the default view created with a beveled border and background.
 o createViewFactory()
Creates the factory to be used for building the various view fragments that make up the view that represents the model.
 o createViewport()
This creates a scrollable component that is the default view passed out by createView.
 o installUI(JComponent)
Install the default keymap after the superclass does it's thing.

Variables

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

Constructors

 o BasicTextField
 public BasicTextField()

Methods

 o createUI
 public static TextUI createUI(JTextField 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 beveled border and background. This needs to also put a horizontal scroller around the default view created.

Overrides:
createView in class JTextUI
 o createViewport
 protected JTextUI. JTextView createViewport()
This creates a scrollable component that is the default view passed out by createView. This is changed to provide a viewport that also implements BoundedRangeModel so that visibility adjustments directly move the field contents.

Overrides:
createViewport in class JTextUI
 o createController
 protected TextController createController(JTextComponent c)
This is defined to create the controller responsible binding events to actions in the text field. This is basically a minor extension of the default behavior.

Overrides:
createController in class JTextUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index