|
||||||||||
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
A TextComponent is a component that allows the editing of some text.
Field Summary |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary | |
String |
getSelectedText()
Returns the selected text contained in this TextComponent. |
int |
getSelectionEnd()
Returns the selected text's end position. |
int |
getSelectionStart()
Returns the selected text's start position. |
String |
getText()
Returns the text contained in this TextComponent. |
boolean |
isEditable()
Returns the boolean indicating whether this TextComponent is editable or not. |
protected String |
paramString()
Returns the String of parameters for this TextComponent. |
void |
removeNotify()
Removes the TextComponent's peer. |
void |
select(int selStart,
int selEnd)
Selects the text found between the specified start and end locations. |
void |
selectAll()
Selects all the text in the TextComponent. |
void |
setEditable(boolean t)
Sets the specified boolean to indicate whether or not this TextComponent should be editable. |
void |
setText(String t)
Sets the text of this TextComponent to the specified text. |
Methods inherited from class java.awt.Component |
action, addNotify, 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, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, preferredSize, 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 |
Method Detail |
public void removeNotify()
removeNotify
in class Component
Component.getPeer()
,
Component.addNotify()
public void setText(String t)
t
- the new text to be setgetText()
public String getText()
setText(java.lang.String)
public String getSelectedText()
setText(java.lang.String)
public boolean isEditable()
setEditable(boolean)
public void setEditable(boolean t)
t
- the boolean to be setisEditable()
public int getSelectionStart()
public int getSelectionEnd()
public void select(int selStart, int selEnd)
selStart
- the start position of the textselEnd
- the end position of the textpublic void selectAll()
protected String paramString()
paramString
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |