01: /*
02: * The contents of this file are subject to the
03: * Mozilla Public License Version 1.1 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
06: *
07: * Software distributed under the License is distributed on an "AS IS"
08: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
09: * See the License for the specific language governing rights and
10: * limitations under the License.
11: *
12: * The Initial Developer of the Original Code is Simulacra Media Ltd.
13: * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14: *
15: * All Rights Reserved.
16: *
17: * Contributor(s):
18: */
19:
20: package org.openharmonise.him.displaycomponents;
21:
22: import java.awt.BorderLayout;
23: import java.awt.Color;
24: import java.awt.LayoutManager;
25:
26: import javax.swing.JPanel;
27:
28: /**
29: * Base class for display components that sit in the outlook bar.
30: *
31: * @author Matthew Large
32: * @version $Revision: 1.1 $
33: *
34: */
35: public abstract class AbstractOutlookBarComponent extends JPanel {
36:
37: /**
38: * Display component that controls this one.
39: */
40: protected AbstractDisplayComponent m_displayComponent = null;
41:
42: /**
43: * @param layout
44: * @param isDoubleBuffered
45: */
46: private AbstractOutlookBarComponent(LayoutManager layout,
47: boolean isDoubleBuffered) {
48: super (layout, isDoubleBuffered);
49: }
50:
51: /**
52: * @param layout
53: */
54: private AbstractOutlookBarComponent(LayoutManager layout) {
55: super (layout);
56: }
57:
58: /**
59: * @param isDoubleBuffered
60: */
61: private AbstractOutlookBarComponent(boolean isDoubleBuffered) {
62: super (isDoubleBuffered);
63: }
64:
65: /**
66: * Constructs a new abstract outlook bar component.
67: *
68: * @param displayComponent Display component.
69: */
70: public AbstractOutlookBarComponent(
71: AbstractDisplayComponent displayComponent) {
72: super (true);
73: BorderLayout bl = new BorderLayout();
74: this.setLayout(bl);
75: super.setBackground(Color.WHITE);
76: m_displayComponent = displayComponent;
77: }
78:
79: }
|