|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object buoy.event.EventSource buoy.widget.Widget buoy.widget.TextWidget buoy.widget.BTextField
public class BTextField
A BTextField is a simple text entry box. It allows the user to enter a single line of text.
In addition to the event types generated by all Widgets, BTextFields generate the following event types:
Constructor Summary | |
---|---|
BTextField()
Create a new BTextField. |
|
BTextField(int columns)
Create a new BTextField. |
|
BTextField(java.lang.String text)
Create a new BTextField. |
|
BTextField(java.lang.String text,
int columns)
Create a new BTextField. |
Method Summary | |
---|---|
int |
getColumns()
Get the number of columns this text field should be wide enough to display. |
javax.swing.JTextField |
getComponent()
Get the java.awt.Component corresponding to this Widget. |
void |
setColumns(int columns)
Set the number of columns this text field should be wide enough to display. |
Methods inherited from class buoy.widget.TextWidget |
---|
getCaretPosition, getLength, getSelectedText, getSelectionEnd, getSelectionStart, getText, 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 BTextField()
public BTextField(java.lang.String text)
text
- the initial text contained in the text field (may be null)public BTextField(int columns)
columns
- the number of columns this text field should be wide enough to displaypublic BTextField(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.JTextField getComponent()
Widget
getComponent
in class TextWidget
public int getColumns()
public void setColumns(int columns)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |