All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.RPasswordField

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

public class RPasswordField
extends JPasswordField
This class is a JPasswordField that uses a monospace font and sets the substitution character based on resources (described below). 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 properties are shared with RTextField and ItemFinder.

See Also:
JPasswordField, RTextField, ItemFinder

Variable Index

 o BOTTOM_MARGIN
A resource Field.bottomMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the bottom margin to be used in Task TextFields.
 o ECHO_CHAR
A resource PasswordField.echoChar defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the character to mask what the user types in the RPasswordField.
 o FONT
A resource Field.font defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the font to be used in Task TextFields, ItemFinders, password fields, and so on.
 o LEFT_MARGIN
A resource Field.leftMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the left margin to be used in Task TextFields.
 o RIGHT_MARGIN
A resource Field.rightMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the right margin to be used in Task TextFields.
 o TOP_MARGIN
A resource Field.topMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the top margin to be used in Task TextFields.

Constructor Index

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

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 in Task TextFields, ItemFinders, password fields, and so on. It may be overridden in {package}/PackageP.properties, but please note that this resource is shared with RTextField and ItemFinder.

 o ECHO_CHAR
 public static final String ECHO_CHAR
A resource PasswordField.echoChar defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the character to mask what the user types in the RPasswordField. It may be overridden in {package}/PackageP.properties.

 o TOP_MARGIN
 public static final String TOP_MARGIN
A resource Field.topMargin defined in com.sgi.sysadm.ui.SysadmUIP.properties that specifies the top margin to be used in Task TextFields. This is the amount of space between the top of the tallest letter, and the border of the textfield. It may be overridden in {package}/packageP.properties, but please note that this resource is shared with RTextField 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 bottom margin to be used in Task TextFields. This is the amount of space between the bottom of a letter descender (ex., the tail of a "g"), and the border of the textfield. It may be overridden in {package}/packageP.properties, but please note that this resource is shared with RTextField 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 left margin to be used in Task TextFields. This is the amount of space between the leftmost letter and the border of the textfield. It may be overridden in {package}/packageP.properties, but please note that this resource is shared with RTextField 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 right margin to be used in Task TextFields. This is 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 RTextField and ItemFinder.

Constructors

 o RPasswordField
 public RPasswordField()
Constructs a new RPasswordField.

 o RPasswordField
 public RPasswordField(String text)
Constructs a new RPasswordField initialized with the spcified text.

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

Parameters:
columns - The width of the TextField in columns.
 o RPasswordField
 public RPasswordField(String text,
                       int columns)
Constructs a new RPasswordField with the 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 RPasswordField
 public RPasswordField(Document doc,
                       String text,
                       int columns)
Constructs a new RPasswordField with the 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.

All Packages  Class Hierarchy  This Package  Previous  Next  Index