xref: /titanic_41/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/awt/GBContainer.java (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * ident	"%Z%%M%	%I%	%E% SMI"
24  *
25  * Copyright (c) 2000 by Sun Microsystems, Inc.
26  * All rights reserved.
27  */
28 
29 package sunsoft.jws.visual.rt.awt;
30 
31 import java.awt.*;
32 
33 public interface GBContainer {
34 
35     //
36     // Initialization
37     //
38 
setGBPanel(GBPanel panel)39     public void setGBPanel(GBPanel panel);
40 
41     //
42     // Container methods
43     //
44 
setLayout(LayoutManager mgr)45     public void setLayout(LayoutManager mgr);
layout()46     public void layout();
47 
add(Component comp)48     public Component add(Component comp);
remove(Component comp)49     public void remove(Component comp);
removeAll()50     public void removeAll();
51 
update(Graphics g)52     public void update(Graphics g);
paint(Graphics g)53     public void paint(Graphics g);
handleEvent(Event e)54     public boolean handleEvent(Event e);
reshape(int x, int y, int w, int h)55     public void reshape(int x, int y, int w, int h);
56 
57     //
58     // Constraints
59     //
60 
setConstraints(Component comp, GBConstraints c)61     public void setConstraints(Component comp, GBConstraints c);
getConstraints(Component comp)62     public GBConstraints getConstraints(Component comp);
63 
64     //
65     // Layout and Preview modes
66     //
67 
layoutMode()68     public void layoutMode();
previewMode()69     public void previewMode();
70 
71     //
72     // GBLayout attributes
73     //
74 
setColumnWeights(double w[])75     public void setColumnWeights(double w[]);
setRowWeights(double w[])76     public void setRowWeights(double w[]);
getColumnWeights()77     public double [] getColumnWeights();
getRowWeights()78     public double [] getRowWeights();
79 
setColumnWidths(int w[])80     public void setColumnWidths(int w[]);
setRowHeights(int h[])81     public void setRowHeights(int h[]);
getColumnWidths()82     public int[] getColumnWidths();
getRowHeights()83     public int[] getRowHeights();
84 
addRow(int index)85     public void addRow(int index);
addColumn(int index)86     public void addColumn(int index);
87 }
88