KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > him > displaycomponents > AbstractOutlookBarComponent


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * 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 JavaDoc;
23 import java.awt.Color JavaDoc;
24 import java.awt.LayoutManager JavaDoc;
25
26 import javax.swing.JPanel JavaDoc;
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 JavaDoc {
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(
47         LayoutManager JavaDoc layout,
48         boolean isDoubleBuffered) {
49         super(layout, isDoubleBuffered);
50     }
51
52     /**
53      * @param layout
54      */

55     private AbstractOutlookBarComponent(LayoutManager JavaDoc layout) {
56         super(layout);
57     }
58
59     /**
60      * @param isDoubleBuffered
61      */

62     private AbstractOutlookBarComponent(boolean isDoubleBuffered) {
63         super(isDoubleBuffered);
64     }
65
66     /**
67      * Constructs a new abstract outlook bar component.
68      *
69      * @param displayComponent Display component.
70      */

71     public AbstractOutlookBarComponent(AbstractDisplayComponent displayComponent) {
72         super(true);
73         BorderLayout JavaDoc bl = new BorderLayout JavaDoc();
74         this.setLayout(bl);
75         super.setBackground(Color.WHITE);
76         m_displayComponent = displayComponent;
77     }
78
79 }
Popular Tags