01: /*
02: * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.instance.common.ui;
07:
08: //
09:
10: import java.awt.*;
11:
12: //
13:
14: public class HeaderPanel extends Panel {
15: //
16: //
17: //
18: private static final int VERTICAL_GAP = 2;
19: private static final int HORIZONTAL_GAP = 2;
20:
21: //
22: //
23: //
24: private Panel containedPanel = null;
25:
26: public HeaderPanel() {
27: setLayout(new BorderLayout(HORIZONTAL_GAP, VERTICAL_GAP));
28:
29: containedPanel = new Panel(new FlowLayout(FlowLayout.TRAILING));
30: add(containedPanel, BorderLayout.NORTH);
31:
32: Separator sep = new Separator();
33: add(sep, BorderLayout.CENTER);
34: }
35:
36: //
37: //
38: //
39: public Component add(Component c) {
40: return containedPanel.add(c);
41: }
42:
43: //
44: //
45: //
46: }
|