|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.TextComponent | +--java.awt.TextField
TextField is a component that allows the editing of a single line of text.
Field Summary |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
TextField()
Constructs a new TextField. |
|
TextField(int cols)
Constructs a new TextField initialized with the specified columns. |
|
TextField(String text)
Constructs a new TextField initialized with the specified text. |
|
TextField(String text,
int cols)
Constructs a new TextField initialized with the specified text and columns. |
Method Summary | |
void |
addNotify()
Creates the TextField's peer. |
boolean |
echoCharIsSet()
Returns true if this TextField has a character set for echoing. |
int |
getColumns()
Returns the number of columns in this TextField. |
char |
getEchoChar()
Returns the character to be used for echoing. |
Dimension |
minimumSize()
Returns the minimum size Dimensions needed for this TextField. |
Dimension |
minimumSize(int cols)
Returns the minimum size Dimensions needed for this TextField with the specified amount of columns. |
protected String |
paramString()
Returns the String of parameters for this TExtField. |
Dimension |
preferredSize()
Returns the preferred size Dimensions needed for this TextField. |
Dimension |
preferredSize(int cols)
Returns the preferred size Dimensions needed for this TextField with the specified amount of columns. |
void |
setEchoCharacter(char c)
Sets the echo character for this TextField. |
Methods inherited from class java.awt.TextComponent |
getSelectedText, getSelectionEnd, getSelectionStart, getText, isEditable, removeNotify, select, selectAll, setEditable, setText |
Methods inherited from class java.awt.Component |
action, bounds, checkImage, checkImage, createImage, createImage, deliverEvent, disable, enable, enable, getBackground, getColorModel, getFont, getFontMetrics, getForeground, getGraphics, getParent, getPeer, getToolkit, gotFocus, handleEvent, hide, imageUpdate, inside, invalidate, isEnabled, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, prepareImage, prepareImage, print, printAll, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setFont, setForeground, show, show, size, toString, update, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TextField()
public TextField(int cols)
cols
- the number of columnspublic TextField(String text)
text
- the text to be displayedpublic TextField(String text, int cols)
text
- the text to be displayedcols
- the number of columnsMethod Detail |
public void addNotify()
addNotify
in class Component
Component.getPeer()
,
Component.removeNotify()
public char getEchoChar()
setEchoCharacter(char)
,
echoCharIsSet()
public boolean echoCharIsSet()
setEchoCharacter(char)
,
getEchoChar()
public int getColumns()
public void setEchoCharacter(char c)
c
- the echo character for this TextFieldechoCharIsSet()
,
getEchoChar()
public Dimension preferredSize(int cols)
cols
- the number of columns in this TextFieldpublic Dimension preferredSize()
preferredSize
in class Component
Component.minimumSize()
,
LayoutManager
public Dimension minimumSize(int cols)
cols
- the number of columns in this TextFieldpublic Dimension minimumSize()
minimumSize
in class Component
Component.preferredSize()
,
LayoutManager
protected String paramString()
paramString
in class TextComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |