All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

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

public class BasicTextField
extends DefaultTextUI
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()
Creates a new BasicTextField.

Method Index

 o createController(JTextComponent)
Creates the controller responsible for binding events to actions in the text field.
 o createUI(JTextField)
Creates a UI.
 o createView()
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()
Creates a scrollable component that is the default view passed out by createView.
 o installUI(JComponent)
Installs the default keymap after the superclass does its 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()
Creates a new BasicTextField.

Methods

 o createUI
 public static TextUI createUI(JTextField c)
Creates a UI.

Parameters:
c - the text field
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 - the UI
Overrides:
installUI in class DefaultTextUI
See Also:
installUI
 o createView
 protected Component createView()
Wraps the default view created with a beveled border and background. This needs to also put a horizontal scroller around the default view created.

Returns:
the view in a border
Overrides:
createView in class DefaultTextUI
 o createViewport
 protected DefaultTextUI. JTextView createViewport()
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.

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

Parameters:
c - the component
Returns:
the controller
Overrides:
createController in class DefaultTextUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index