buoy.widget
Class BPasswordField
public class BPasswordField
A BPasswordField is a simple text entry box for typing passwords. It allows the user to
enter a single line of text. The characters typed into the box are hidden, and an alternate
echo character is displayed instead.
In addition to the event types generated by all Widgets, BPasswordFields generate the following event types:
JPasswordField | getComponent()
|
char | getEchoChar() - Get the echo character to be displayed in the text field.
|
String | getText() - Get the text contained in the Widget.
|
void | setEchoChar(char c) - Set the echo character to be displayed in the text field.
|
getCaretPosition , getComponent , getLength , getSelectedText , getSelectionEnd , getSelectionStart , getText , isEditable , setCaretPosition , setEditable , setSelectionEnd , setSelectionStart , setText |
addEventLink , dispatchEvent , getBackground , getBounds , getComponent , getCursor , getFont , getMaximumSize , getMinimumSize , getName , getParent , getPreferredSize , hasFocus , isEnabled , isFocusable , isVisible , repaint , requestFocus , setBackground , setCursor , setEnabled , setFocusable , setFont , setName , setVisible |
BPasswordField
public BPasswordField()
Create a new BPasswordField.
BPasswordField
public BPasswordField(String text)
Create a new BPasswordField.
text
- the initial text contained in the text field (may be null)
BPasswordField
public BPasswordField(String text,
int columns)
Create a new BPasswordField.
text
- the initial text contained in the text field (may be null)columns
- the number of columns this text field should be wide enough to display
BPasswordField
public BPasswordField(int columns)
Create a new BPasswordField.
columns
- the number of columns this text field should be wide enough to display
getEchoChar
public char getEchoChar()
Get the echo character to be displayed in the text field.
getText
public String getText()
Get the text contained in the Widget.
- getText in interface TextWidget
setEchoChar
public void setEchoChar(char c)
Set the echo character to be displayed in the text field.
Written by Peter Eastman.