All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.RTextField

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.text.JTextComponent
                                   |
                                   +----javax.swing.JTextField
                                           |
                                           +----com.sgi.sysadm.ui.RTextField

public class RTextField
extends JTextField
implements ExtraCleanup
This class is a JTextField that uses a monospace font defined in a properties file. Using a monospace font in a text field assures that the number of input characters displayed is equal to the column width of the text field.

The font and margin resources are shared with RPasswordField and ItemFinder.

See Also:
JTextField, RPasswordField, ItemFinder

Variable Index

 o BOTTOM_MARGIN
A resource Field.bottomMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the amount of space between the bottom of a letter descender (ex., the tail of a "g"), and the border of the text field.
 o FONT
A resource Field.font defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the font to be used.
 o LEFT_MARGIN
A resource Field.leftMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the amount of space between the leftmost letter and the border of the text field.
 o RIGHT_MARGIN
A resource Field.rightMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the amount of space between the rightmost letter and the border of the textfield.
 o TOP_MARGIN
A resource Field.topMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the amount of space between the top of the tallest letter, and the border of the text field.

Constructor Index

 o RTextField()
Construct a new RTextField.
 o RTextField(Document, String, int)
Construct a new RTextField with width set to the specified number of columns, initialized with the specified text and using the specified text storage model.
 o RTextField(int)
Construct a new RTextField with width set to the specified number of columns.
 o RTextField(String)
Construct a new RTextField initialized with the specified text.
 o RTextField(String, int)
Construct a new RTextField with width set to the specified number of columns and initialized with the specified text.

Method Index

 o addFocusListener(FocusListener)
Add a FocusListener to our list.
 o extraCleanup()
Cleanup and remove any focus listeners.
 o removeFocusListener(FocusListener)
Remove focus listener from our list.

Variables

 o FONT
 public static final String FONT
A resource Field.font defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the font to be used. It may be overridden in {package}/packageP.properties, but please note that this resource is shared with RPasswordField and ItemFinder.

 o TOP_MARGIN
 public static final String TOP_MARGIN
A resource Field.topMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the amount of space between the top of the tallest letter, and the border of the text field. It may be overridden in {package}/packageP.properties, but please note that this resource is shared with RPasswordField and ItemFinder.

 o BOTTOM_MARGIN
 public static final String BOTTOM_MARGIN
A resource Field.bottomMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the amount of space between the bottom of a letter descender (ex., the tail of a "g"), and the border of the text field. It may be overridden in {package}/packageP.properties, but please note that this resource is shared with RPasswordField and ItemFinder.

 o LEFT_MARGIN
 public static final String LEFT_MARGIN
A resource Field.leftMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the amount of space between the leftmost letter and the border of the text field. It may be overridden in {package}/packageP.properties, but please note that this resource is shared with RPasswordField and ItemFinder.

 o RIGHT_MARGIN
 public static final String RIGHT_MARGIN
A resource Field.rightMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the amount of space between the rightmost letter and the border of the textfield. It may be overridden in {package}/packageP.properties, but please note that this resource is shared with RPasswordField and ItemFinder.

Constructors

 o RTextField
 public RTextField()
Construct a new RTextField.

 o RTextField
 public RTextField(String text)
Construct a new RTextField initialized with the specified text.

Parameters:
text - The text to be displayed, or null.
 o RTextField
 public RTextField(int columns)
Construct a new RTextField with width set to the specified number of columns.

Parameters:
columns - The width of the TextField in columns.
 o RTextField
 public RTextField(String text,
                   int columns)
Construct a new RTextField with width set to the specified number of columns and initialized with the specified text.

Parameters:
text - The text to be displayed, or null.
columns - The width of the TextField in columns.
 o RTextField
 public RTextField(Document doc,
                   String text,
                   int columns)
Construct a new RTextField with width set to the specified number of columns, initialized with the specified text and using the specified text storage model.

Parameters:
text - The text to be displayed, or null.
columns - The width of the TextField in columns.
doc - The text storage to use.

Methods

 o addFocusListener
 public void addFocusListener(FocusListener l)
Add a FocusListener to our list.

Parameters:
l - A FocusListener interested in FocusEvents on this text field.
Overrides:
addFocusListener in class Component
See Also:
addFocusListener
 o removeFocusListener
 public void removeFocusListener(FocusListener l)
Remove focus listener from our list.

Parameters:
l - A FocusListener no longer interested in FocusEvents on this text field.
Overrides:
removeFocusListener in class Component
See Also:
removeFocusListener
 o extraCleanup
 public void extraCleanup()
Cleanup and remove any focus listeners.

See Also:
ExtraCleanup

All Packages  Class Hierarchy  This Package  Previous  Next  Index