All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicTextFieldUI

java.lang.Object
   |
   +----com.sun.java.swing.plaf.ComponentUI
           |
           +----com.sun.java.swing.plaf.TextUI
                   |
                   +----com.sun.java.swing.text.DefaultTextUI
                           |
                           +----com.sun.java.swing.basic.BasicTextFieldUI

public class BasicTextFieldUI
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 defaultBorder
 o KeymapName
The name of the default keymap that will be shared by all JTextField instances unless they arrange for something different.

Constructor Index

 o BasicTextFieldUI()
Creates a new BasicTextFieldUI.

Method Index

 o create(Element)
If a subclass wishes to directly implement the factory producing the view(s), it should reimplement this method.
 o create(Element, int, int)
If a subclass wishes to directly implement the factory producing the view(s), it should reimplement this method.
 o createCaret()
Creates the object to use for a caret.
 o createController(JTextComponent)
Creates the controller responsible for binding events to actions in the text field.
 o createUI(JComponent)
Creates a UI for a JTextField.
 o installUI(JComponent)
Installs the default keymap after the superclass does its thing.
 o paintBackground(Graphics)
Paint a background for the view.
 o uninstallUI(JComponent)
Deinstalls the UI for a component.

Variables

 o defaultBorder
 protected static final Border defaultBorder
 o KeymapName
 public static final String KeymapName
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 BasicTextFieldUI
 public BasicTextFieldUI()
Creates a new BasicTextFieldUI.

Methods

 o createUI
 public static ComponentUI createUI(JComponent c)
Creates a UI for a JTextField.

Parameters:
c - the text field
Returns:
the UI
 o createCaret
 protected Caret createCaret()
Creates the object to use for a caret.

Overrides:
createCaret in class DefaultTextUI
 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 uninstallUI
 public void uninstallUI(JComponent c)
Deinstalls the UI for a component.

Overrides:
uninstallUI 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
 o create
 public View create(Element elem)
If a subclass wishes to directly implement the factory producing the view(s), it should reimplement this method.

Overrides:
create in class DefaultTextUI
 o create
 public View create(Element elem,
                    int p0,
                    int p1)
If a subclass wishes to directly implement the factory producing the view(s), it should reimplement this method.

Overrides:
create in class DefaultTextUI
 o paintBackground
 protected void paintBackground(Graphics g)
Paint a background for the view.

Overrides:
paintBackground in class DefaultTextUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index