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.
MotifTextFieldUI.MotifFieldController-
MotifTextFieldUI()
-
create(Element)
- Creates a view based on an element.
create(Element, int, int)
- Creates a view based on an element.
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.
createUI(JComponent)
- Creates a UI for a JTextField.
getPropertyPrefix()
- Name used as a key to lookup properties through the
UIManager.
loadDefaultKeymap(Keymap)
- Load the given keymap with default settings
appropriate for the UI being created.
paintBackground(Graphics)
- Paints the background of the field.
MotifTextFieldUI
public MotifTextFieldUI()
createUI
public static ComponentUI createUI(JComponent c)
- Creates a UI for a JTextField.
- Parameters:
- c - the text field
- Returns:
- the UI
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
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
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
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
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
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