All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.motif.MotifTextFieldUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.TextUI
                    |
                    +----java.awt.swing.text.DefaultTextUI
                            |
                            +----java.awt.swing.motif.MotifTextUI
                                    |
                                    +----java.awt.swing.motif.MotifTextFieldUI

public class MotifTextFieldUI
extends MotifTextUI
Provides the Motif look and feel for a text field.


Class Index

 o MotifTextFieldUI.MotifFieldController

Constructor Index

 o MotifTextFieldUI()

Method Index

 o create(Element)
Creates a view based on an element.
 o create(Element, int, int)
Creates a view based on an element.
 o createController(JTextComponent)
Creates the controller supplied by the superclass, but also extended to completely repaint when focus is gained or lost to repaint the focus rectangle.
 o createUI(JComponent)
Creates a UI for a JTextField.
 o getPropertyPrefix()
Name used as a key to lookup properties through the UIManager.
 o loadDefaultKeymap(Keymap)
Load the given keymap with default settings appropriate for the UI being created.
 o paintBackground(Graphics)
Paints the background of the field.

Constructors

 o MotifTextFieldUI
public MotifTextFieldUI()

Methods

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

Parameters:
c - the text field
Returns:
the UI
 o getPropertyPrefix
protected String getPropertyPrefix()
Name used as a key to lookup properties through the UIManager. This is used as a prefix to all the standard text properties.

Overrides:
getPropertyPrefix in class DefaultTextUI
 o createController
protected TextController createController(JTextComponent c)
Creates the controller supplied by the superclass, but also extended to completely repaint when focus is gained or lost to repaint the focus rectangle.

Parameters:
c - the editor component
Returns:
the controller
Overrides:
createController in class MotifTextUI
 o create
public View create(Element elem)
Creates a view based on an element.

Parameters:
elem - the element
Returns:
the view
Overrides:
create in class DefaultTextUI
 o create
public View create(Element elem,
                   int p0,
                   int p1)
Creates a view based on an element.

Parameters:
elem - the element
p0 - the starting offset
p1 - the ending offset
Returns:
the view
Overrides:
create in class DefaultTextUI
 o loadDefaultKeymap
protected void loadDefaultKeymap(Keymap map)
Load the given keymap with default settings appropriate for the UI being created. This is implemented to do the superclass behavior as well as load the settings appropriate for a single-line text editor.

Overrides:
loadDefaultKeymap in class MotifTextUI
 o paintBackground
protected void paintBackground(Graphics g)
Paints the background of the field.

Parameters:
g - the graphics context
Overrides:
paintBackground in class DefaultTextUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature