KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > peer > TextComponentPeer


1 /*
2  * @(#)TextComponentPeer.java 1.18 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package java.awt.peer;
8
9 import java.awt.Point JavaDoc;
10 import java.awt.Rectangle JavaDoc;
11 import java.awt.im.InputMethodRequests JavaDoc;
12
13 /**
14  * The peer interfaces are intended only for use in porting
15  * the AWT. They are not intended for use by application
16  * developers, and developers should not implement peers
17  * nor invoke any of the peer methods directly on the peer
18  * instances.
19  */

20 public interface TextComponentPeer extends ComponentPeer {
21     void setEditable(boolean editable);
22     String JavaDoc getText();
23     void setText(String JavaDoc l);
24     int getSelectionStart();
25     int getSelectionEnd();
26     void select(int selStart, int selEnd);
27     void setCaretPosition(int pos);
28     int getCaretPosition();
29     int getIndexAtPoint(int x, int y);
30     Rectangle JavaDoc getCharacterBounds(int i);
31     long filterEvents(long mask);
32     InputMethodRequests JavaDoc getInputMethodRequests();
33 }
34
Popular Tags