java.awt.peer
Interface TextComponentPeer

All Superinterfaces:
ComponentPeer
All Known Subinterfaces:
TextAreaPeer, TextFieldPeer

public interface TextComponentPeer
extends ComponentPeer


Method Summary
 long filterEvents(long filter)
           
 int getCaretPosition()
           
 Rectangle getCharacterBounds(int pos)
           
 int getIndexAtPoint(int x, int y)
           
 InputMethodRequests getInputMethodRequests()
          Retrieve this text component peer's input method requests.
 int getSelectionEnd()
           
 int getSelectionStart()
           
 String getText()
           
 void select(int start_pos, int end_pos)
           
 void setCaretPosition(int pos)
           
 void setEditable(boolean editable)
           
 void setText(String text)
           
 
Methods inherited from interface java.awt.peer.ComponentPeer
canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, disable, dispose, enable, flip, getBackBuffer, getBounds, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, getToolkit, handleEvent, handlesWheelScrolling, hide, isFocusable, isFocusTraversable, isObscured, isReparentSupported, layout, minimumSize, paint, preferredSize, prepareImage, print, repaint, reparent, requestFocus, requestFocus, requestFocus, reshape, setBackground, setBounds, setBounds, setCursor, setEnabled, setEventMask, setFont, setForeground, setVisible, show, updateCursorImmediately
 

Method Detail

getSelectionEnd

int getSelectionEnd()

getSelectionStart

int getSelectionStart()

getText

String getText()

setText

void setText(String text)

select

void select(int start_pos,
            int end_pos)

setEditable

void setEditable(boolean editable)

getCaretPosition

int getCaretPosition()

setCaretPosition

void setCaretPosition(int pos)

getIndexAtPoint

int getIndexAtPoint(int x,
                    int y)

getCharacterBounds

Rectangle getCharacterBounds(int pos)

filterEvents

long filterEvents(long filter)

getInputMethodRequests

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