This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


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.


Field Summary
 
Fields inherited from class java.awt.peer.ComponentPeer
DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE
 
Method Summary
 long
filterEvents(long mask)

          
 int

          
 Rectangle

          
 int
getIndexAtPoint(int x, int y)

          
 InputMethodRequests

          
 int

          
 int

          
 String

          
 void
select(int selStart, int selEnd)

          
 void

          
 void
setEditable(boolean editable)

          
 void

          
 
Methods inherited from class 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, isObscured, isReparentSupported, layout, minimumSize, paint, preferredSize, prepareImage, print, repaint, reparent, requestFocus, reshape, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, show, updateCursorImmediately
 

Method Detail

filterEvents

public long filterEvents(long mask)
Parameters:
mask

getCaretPosition

public int getCaretPosition()

getCharacterBounds

public Rectangle getCharacterBounds(int i)
Parameters:
i

getIndexAtPoint

public int getIndexAtPoint(int x,
                           int y)
Parameters:
x
y

getInputMethodRequests

public InputMethodRequests getInputMethodRequests()

getSelectionEnd

public int getSelectionEnd()

getSelectionStart

public int getSelectionStart()

getText

public String getText()

select

public void select(int selStart,
                   int selEnd)
Parameters:
selStart
selEnd

setCaretPosition

public void setCaretPosition(int pos)
Parameters:
pos

setEditable

public void setEditable(boolean editable)
Parameters:
editable

setText

public void setText(String l)
Parameters:
l


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.