KickJava   Java API By Example, From Geeks To Geeks.

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


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
25 import javax.swing.JPanel JavaDoc;
26
27 import org.openharmonise.him.window.*;
28
29
30 /**
31  * Display component for managing the journal.
32  *
33  * @author Matthew Large
34  * @version $Revision: 1.1 $
35  *
36  */

37 public class JournalDisplayComponent extends AbstractDisplayComponent {
38
39     /**
40      * Main panel.
41      */

42     private JPanel JavaDoc m_panel = null;
43
44     /**
45      * Constructs a new journal display component.
46      *
47      * @param displayManager Display manager
48      */

49     public JournalDisplayComponent(DisplayManager displayManager) {
50         super(displayManager);
51         this.setup();
52     }
53     
54     /**
55      * Configures this component.
56      *
57      */

58     private void setup() {
59         this.m_panel = new JPanel JavaDoc();
60         this.m_panel.setBackground(Color.WHITE);
61         BorderLayout JavaDoc bl = new BorderLayout JavaDoc();
62         this.m_panel.setLayout(bl);
63     }
64
65     /* (non-Javadoc)
66      * @see com.simulacramedia.contentmanager.displaycomponents.AbstractDisplayComponent#getIcon()
67      */

68     public String JavaDoc getIcon() {
69         return "16-journal-container.gif";
70     }
71
72     /* (non-Javadoc)
73      * @see com.simulacramedia.contentmanager.displaycomponents.AbstractDisplayComponent#getTitle()
74      */

75     public String JavaDoc getTitle() {
76         return "Journal";
77     }
78
79 }
80
Popular Tags