All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.FilteredTextField

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

public class FilteredTextField
extends RTextField
FilteredTextField is an RTextField that accepts all input characters except whitespace and any specified in the constructor. Disallowed whitespace characters include Unicode space, Java whitespace, and ISO control characters. Disallowed characters will be transformed to UNDERSCORE (_) unless otherwise specified in the constructor.

See Also:
RTextField, isSpaceChar, isISOControl, isWhitespace

Variable Index

 o BEEP
Passing in the special character FilteredTextField.BEEP as the designated replacement character will cause the text field to beep instead of converting disallowed characters.

Constructor Index

 o FilteredTextField(int)
Create a FilteredTextField with the specified number of columns.
 o FilteredTextField(int, char)
Create a FilteredTextField with the specified number of columns and replacement character.
 o FilteredTextField(int, String)
Create a FilteredTextField with the specified number of columns and disallowed characters.
 o FilteredTextField(int, String, char)
Create a FilteredTextField with the specified number of columns, disallowed characters, and replacement character.
 o FilteredTextField(String)
Create a FilteredTextField with the specified disallowed characters.
 o FilteredTextField(String, char)
Create a FilteredTextField with the specified disallowed characters and replacement character.

Variables

 o BEEP
 public static final char BEEP
Passing in the special character FilteredTextField.BEEP as the designated replacement character will cause the text field to beep instead of converting disallowed characters.

Constructors

 o FilteredTextField
 public FilteredTextField(int columns,
                          String disallowed,
                          char ch)
Create a FilteredTextField with the specified number of columns, disallowed characters, and replacement character.

Parameters:
columns - Number of columns of text.
disallowed - Characters to disallow.
ch - Replacement character. Passing in FilteredTextField.BEEP for this parameter will cause the FilteredTextField to beep and refuse disallowed characters and whitespace; no replacement of those characters will be done.
 o FilteredTextField
 public FilteredTextField(String disallowed,
                          char ch)
Create a FilteredTextField with the specified disallowed characters and replacement character.

Parameters:
disallowed - Characters to disallow.
ch - Replacement character. Passing in FilteredTextField.BEEP for this parameter will cause the FilteredTextField to beep and refuse disallowed characters and whitespace; no replacement of those characters will be done.
 o FilteredTextField
 public FilteredTextField(int columns,
                          String disallowed)
Create a FilteredTextField with the specified number of columns and disallowed characters. Whitespace and disallowed characters will be replaced with underscore ('_').

Parameters:
columns - Number of columns of text.
disallowed - Characters to disallow.
 o FilteredTextField
 public FilteredTextField(int columns)
Create a FilteredTextField with the specified number of columns. Whitespace will be replaced with underscore ('_');

Parameters:
columns - Number of columns of text.
 o FilteredTextField
 public FilteredTextField(String disallowed)
Create a FilteredTextField with the specified disallowed characters. Whitespace and the specified disallowed characters will be replaced with underscore ('_').

Parameters:
disallowed - Characters to disallow.
 o FilteredTextField
 public FilteredTextField(int columns,
                          char ch)
Create a FilteredTextField with the specified number of columns and replacement character. Whitespace will be replaced with the character ch.

Parameters:
columns - Number of columns of text.
ch - Replacement character. Passing in FilteredTextField.BEEP for this parameter will cause the FilteredTextField to refuse whitespace and beep instead.

All Packages  Class Hierarchy  This Package  Previous  Next  Index