|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbuoy.event.EventSource
buoy.widget.Widget
buoy.widget.TextWidget
buoy.widget.BTextField
buoy.widget.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:
Constructor Summary | |
---|---|
BPasswordField()
Create a new BPasswordField. |
|
BPasswordField(int columns)
Create a new BPasswordField. |
|
BPasswordField(java.lang.String text)
Create a new BPasswordField. |
|
BPasswordField(java.lang.String text,
int columns)
Create a new BPasswordField. |
Method Summary | |
---|---|
javax.swing.JPasswordField |
getComponent()
Get the java.awt.Component corresponding to this Widget. |
char |
getEchoChar()
Get the echo character to be displayed in the text field. |
java.lang.String |
getText()
Get the text contained in the Widget. |
void |
setEchoChar(char c)
Set the echo character to be displayed in the text field. |
Methods inherited from class buoy.widget.BTextField |
---|
getColumns, setColumns |
Methods inherited from class buoy.widget.TextWidget |
---|
getCaretPosition, getLength, getSelectedText, getSelectionEnd, getSelectionStart, isEditable, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart, setText |
Methods inherited from class buoy.widget.Widget |
---|
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible |
Methods inherited from class buoy.event.EventSource |
---|
addEventLink, addEventLink, removeEventLink |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BPasswordField()
public BPasswordField(java.lang.String text)
text
- the initial text contained in the text field (may be null)public BPasswordField(int columns)
columns
- the number of columns this text field should be wide enough to displaypublic BPasswordField(java.lang.String text, int columns)
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 displayMethod Detail |
---|
public javax.swing.JPasswordField getComponent()
Widget
getComponent
in class BTextField
public char getEchoChar()
public void setEchoChar(char c)
public java.lang.String getText()
getText
in class TextWidget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |