TextComponentPeerNameTextComponentPeer
DescriptionTextComponentPeer is an interface that defines the basis for text components. Interface Definition
public abstract interface java.awt.peer.TextComponentPeer extends java.awt.peer.ComponentPeer { // Interface Methods public abstract int getCaretPosition(); public abstract int getSelectionEnd(); public abstract int getSelectionStart(); public abstract String getText(); public abstract void select (int selectionStart, int selectionEnd); public abstract void setCaretPosition (int pos); public abstract void setEditable (boolean state); public abstract void setText (String text); } Interface MethodsgetCaretPositionpublic abstract int getCaretPosition()
getSelectionEndpublic abstract int getSelectionEnd()
getSelectionStartpublic abstract int getSelectionStart()
getTextpublic abstract String getText()
selectpublic abstract void select (int selectionStart, int selectionEnd)
selectCaretPositionpublic abstract void selectCaretPosition (int pos)
setEditablepublic abstract void setEditable (boolean state)
setTextpublic abstract void setText (String text)
See AlsoComponentPeer, String, TextAreaPeer, TextFieldPeer |
|