KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)TextAreaPeer.java 1.17 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.Dimension JavaDoc;
10
11 /**
12  * The peer interfaces are intended only for use in porting
13  * the AWT. They are not intended for use by application
14  * developers, and developers should not implement peers
15  * nor invoke any of the peer methods directly on the peer
16  * instances.
17  */

18 public interface TextAreaPeer extends TextComponentPeer {
19     void insert(String JavaDoc text, int pos);
20     void replaceRange(String JavaDoc text, int start, int end);
21     Dimension JavaDoc getPreferredSize(int rows, int columns);
22     Dimension JavaDoc getMinimumSize(int rows, int columns);
23
24     /**
25      * DEPRECATED: Replaced by insert(String, int).
26      */

27     void insertText(String JavaDoc txt, int pos);
28
29     /**
30      * DEPRECATED: Replaced by ReplaceRange(String, int, int).
31      */

32     void replaceText(String JavaDoc txt, int start, int end);
33
34     /**
35      * DEPRECATED: Replaced by getPreferredSize(int, int).
36      */

37     Dimension JavaDoc preferredSize(int rows, int cols);
38
39     /**
40      * DEPRECATED: Replaced by getMinimumSize(int, int).
41      */

42     Dimension JavaDoc minimumSize(int rows, int cols);
43 }
44
Popular Tags