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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
RPasswordField()
-
Constructs a new RPasswordField.
-
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.
-
RPasswordField(int)
-
Constructs a new RPasswordField with the
width set to the specified number of columns.
-
RPasswordField(String)
-
Constructs a new RPasswordField initialized with the spcified
text.
-
RPasswordField(String, int)
-
Constructs a new RPasswordField with the
width set to the specified number of columns and initialized
with the specified text.
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.
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.
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.
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.
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.
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.
RPasswordField
public RPasswordField()
- Constructs a new RPasswordField.
RPasswordField
public RPasswordField(String text)
- Constructs a new RPasswordField initialized with the spcified
text.
- Parameters:
- text - The text to be displayed, or null.
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.
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.
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