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
-
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.
-
FONT
- A resource Field.font defined in
com.sgi.sysadm.ui.SysadmUIP.properties that specifies
the font to be used.
-
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.
-
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.
-
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.
-
RTextField()
- Construct a new RTextField.
-
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.
-
RTextField(int)
- Construct a new RTextField with width set to the specified
number of columns.
-
RTextField(String)
- Construct a new RTextField initialized
with the specified text.
-
RTextField(String, int)
- Construct a new RTextField with width set to the specified
number of columns and initialized with the specified
text.
-
addFocusListener(FocusListener)
- Add a FocusListener to our list.
-
extraCleanup()
- Cleanup and remove any focus listeners.
-
removeFocusListener(FocusListener)
- Remove focus listener from our list.
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.
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.
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.
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.
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.
RTextField
public RTextField()
- Construct a new RTextField.
RTextField
public RTextField(String text)
- Construct a new RTextField initialized
with the specified text.
- Parameters:
- text - The text to be displayed, or null.
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.
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.
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.
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
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
extraCleanup
public void extraCleanup()
- Cleanup and remove any focus listeners.
- See Also:
- ExtraCleanup
All Packages Class Hierarchy This Package Previous Next Index