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:
25: import javax.swing.JPanel;
26:
27: import org.openharmonise.him.window.*;
28:
29: /**
30: * Display component for managing the journal.
31: *
32: * @author Matthew Large
33: * @version $Revision: 1.1 $
34: *
35: */
36: public class JournalDisplayComponent extends AbstractDisplayComponent {
37:
38: /**
39: * Main panel.
40: */
41: private JPanel m_panel = null;
42:
43: /**
44: * Constructs a new journal display component.
45: *
46: * @param displayManager Display manager
47: */
48: public JournalDisplayComponent(DisplayManager displayManager) {
49: super (displayManager);
50: this .setup();
51: }
52:
53: /**
54: * Configures this component.
55: *
56: */
57: private void setup() {
58: this .m_panel = new JPanel();
59: this .m_panel.setBackground(Color.WHITE);
60: BorderLayout bl = new BorderLayout();
61: this .m_panel.setLayout(bl);
62: }
63:
64: /* (non-Javadoc)
65: * @see com.simulacramedia.contentmanager.displaycomponents.AbstractDisplayComponent#getIcon()
66: */
67: public String getIcon() {
68: return "16-journal-container.gif";
69: }
70:
71: /* (non-Javadoc)
72: * @see com.simulacramedia.contentmanager.displaycomponents.AbstractDisplayComponent#getTitle()
73: */
74: public String getTitle() {
75: return "Journal";
76: }
77:
78: }
|