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 29package sunsoft.jws.visual.rt.awt; 30 31import java.awt.*; 32 33public interface GBContainer { 34 35 // 36 // Initialization 37 // 38 39 public void setGBPanel(GBPanel panel); 40 41 // 42 // Container methods 43 // 44 45 public void setLayout(LayoutManager mgr); 46 public void layout(); 47 48 public Component add(Component comp); 49 public void remove(Component comp); 50 public void removeAll(); 51 52 public void update(Graphics g); 53 public void paint(Graphics g); 54 public boolean handleEvent(Event e); 55 public void reshape(int x, int y, int w, int h); 56 57 // 58 // Constraints 59 // 60 61 public void setConstraints(Component comp, GBConstraints c); 62 public GBConstraints getConstraints(Component comp); 63 64 // 65 // Layout and Preview modes 66 // 67 68 public void layoutMode(); 69 public void previewMode(); 70 71 // 72 // GBLayout attributes 73 // 74 75 public void setColumnWeights(double w[]); 76 public void setRowWeights(double w[]); 77 public double [] getColumnWeights(); 78 public double [] getRowWeights(); 79 80 public void setColumnWidths(int w[]); 81 public void setRowHeights(int h[]); 82 public int[] getColumnWidths(); 83 public int[] getRowHeights(); 84 85 public void addRow(int index); 86 public void addColumn(int index); 87} 88