java.awt.peer

Interface TextComponentPeer

public interface TextComponentPeer extends ComponentPeer

Method Summary
longfilterEvents(long filter)
intgetCaretPosition()
RectanglegetCharacterBounds(int pos)
intgetIndexAtPoint(int x, int y)
InputMethodRequestsgetInputMethodRequests()
Retrieve this text component peer's input method requests.
intgetSelectionEnd()
intgetSelectionStart()
StringgetText()
voidselect(int start_pos, int end_pos)
voidsetCaretPosition(int pos)
voidsetEditable(boolean editable)
voidsetText(String text)

Method Detail

filterEvents

public long filterEvents(long filter)

getCaretPosition

public int getCaretPosition()

getCharacterBounds

public Rectangle getCharacterBounds(int pos)

getIndexAtPoint

public int getIndexAtPoint(int x, int y)

getInputMethodRequests

public InputMethodRequests getInputMethodRequests()
Retrieve this text component peer's input method requests.

Returns: the input method requests made by this text component peer

Since: 1.5

getSelectionEnd

public int getSelectionEnd()

getSelectionStart

public int getSelectionStart()

getText

public String getText()

select

public void select(int start_pos, int end_pos)

setCaretPosition

public void setCaretPosition(int pos)

setEditable

public void setEditable(boolean editable)

setText

public void setText(String text)