java.awt.peer
Interface TextComponentPeer

All Superinterfaces:
ComponentPeer
All Known Subinterfaces:
TextAreaPeer, TextFieldPeer

public interface TextComponentPeer
extends ComponentPeer

The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.


Method Summary
 long filterEvents(long mask)
           
 int getCaretPosition()
           
 Rectangle getCharacterBounds(int i)
           
 int getIndexAtPoint(int x, int y)
           
 int getSelectionEnd()
           
 int getSelectionStart()
           
 String getText()
           
 void select(int selStart, int selEnd)
           
 void setCaretPosition(int pos)
           
 void setEditable(boolean editable)
           
 void setText(String l)
           
 
Methods inherited from interface java.awt.peer.ComponentPeer
canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, disable, dispose, enable, flip, getBackBuffer, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, getToolkit, handleEvent, handlesWheelScrolling, hide, isFocusable, isObscured, minimumSize, paint, preferredSize, prepareImage, print, repaint, requestFocus, reshape, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, show, updateCursorImmediately
 

Method Detail

setEditable

public void setEditable(boolean editable)

getText

public String getText()

setText

public void setText(String l)

getSelectionStart

public int getSelectionStart()

getSelectionEnd

public int getSelectionEnd()

select

public void select(int selStart,
                   int selEnd)

setCaretPosition

public void setCaretPosition(int pos)

getCaretPosition

public int getCaretPosition()

getIndexAtPoint

public int getIndexAtPoint(int x,
                           int y)

getCharacterBounds

public Rectangle getCharacterBounds(int i)

filterEvents

public long filterEvents(long mask)