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.Color;
23: import java.awt.LayoutManager;
24:
25: import javax.swing.JPanel;
26:
27: /**
28: * Base class for components that site in the table area of the client's
29: * display.
30: *
31: * @author Matthew Large
32: * @version $Revision: 1.1 $
33: *
34: */
35: public abstract class AbstractTableComponent 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 AbstractTableComponent(LayoutManager layout,
47: boolean isDoubleBuffered) {
48: super (layout, isDoubleBuffered);
49: }
50:
51: /**
52: * @param layout
53: */
54: private AbstractTableComponent(LayoutManager layout) {
55: super (layout);
56: }
57:
58: /**
59: * @param isDoubleBuffered
60: */
61: private AbstractTableComponent(boolean isDoubleBuffered) {
62: super (isDoubleBuffered);
63: }
64:
65: /**
66: * Constructs a new abstract table component.
67: *
68: * @param displayComponent Display component
69: */
70: public AbstractTableComponent(
71: AbstractDisplayComponent displayComponent) {
72: super (true);
73: super.setBackground(Color.WHITE);
74: m_displayComponent = displayComponent;
75: }
76:
77: }
|