KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)ContainerPeer.java 1.20 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.*;
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 ContainerPeer extends ComponentPeer {
19     Insets getInsets();
20     void beginValidate();
21     void endValidate();
22     void beginLayout();
23     void endLayout();
24     boolean isPaintPending();
25
26     /**
27      * Cancels a pending paint on the specified region of the
28      * Component.
29      */

30     void cancelPendingPaint(int x, int y, int w, int h);
31
32
33     /**
34      * Restacks native windows - children of this native window - according to Java container order
35      * @since 1.5
36      */

37     void restack();
38     
39     /**
40      * Indicates availabiltity of restacking operation in this container.
41      * @return Returns true if restack is supported, false otherwise
42      * @since 1.5
43      */

44     boolean isRestackSupported();
45     /**
46
47
48
49      * DEPRECATED: Replaced by getInsets().
50      */

51     Insets insets();
52 }
53
Popular Tags