/*
* The contents of this file are subject to the
* Mozilla Public License Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
* See the License for the specific language governing rights and
* limitations under the License.
*
* The Initial Developer of the Original Code is Simulacra Media Ltd.
* Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
*
* All Rights Reserved.
*
* Contributor(s):
*/
package org.openharmonise.him.displaycomponents;
import java.awt.Color;
import java.awt.LayoutManager;
import javax.swing.JPanel;
/**
* Base class for components that site in the table area of the client's
* display.
*
* @author Matthew Large
* @version $Revision: 1.1 $
*
*/
public abstract class AbstractTableComponent extends JPanel {
/**
* Display component that controls this one.
*/
protected AbstractDisplayComponent m_displayComponent = null;
/**
* @param layout
* @param isDoubleBuffered
*/
private AbstractTableComponent(
LayoutManager layout,
boolean isDoubleBuffered) {
super(layout, isDoubleBuffered);
}
/**
* @param layout
*/
private AbstractTableComponent(LayoutManager layout) {
super(layout);
}
/**
* @param isDoubleBuffered
*/
private AbstractTableComponent(boolean isDoubleBuffered) {
super(isDoubleBuffered);
}
/**
* Constructs a new abstract table component.
*
* @param displayComponent Display component
*/
public AbstractTableComponent(AbstractDisplayComponent displayComponent) {
super(true);
super.setBackground(Color.WHITE);
m_displayComponent = displayComponent;
}
}
|