AbstractOutlookBarComponent.java :  » Content-Management-System » harmonise » org » openharmonise » him » displaycomponents » Java Open Source

Java Open Source » Content Management System » harmonise 
harmonise » org » openharmonise » him » displaycomponents » AbstractOutlookBarComponent.java
/*
 * 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.BorderLayout;
import java.awt.Color;
import java.awt.LayoutManager;

import javax.swing.JPanel;

/**
 * Base class for display components that sit in the outlook bar. 
 * 
 * @author Matthew Large
 * @version $Revision: 1.1 $
 *
 */
public abstract class AbstractOutlookBarComponent extends JPanel {

  /**
   * Display component that controls this one.
   */
  protected AbstractDisplayComponent m_displayComponent = null;

  /**
   * @param layout
   * @param isDoubleBuffered
   */
  private AbstractOutlookBarComponent(
    LayoutManager layout,
    boolean isDoubleBuffered) {
    super(layout, isDoubleBuffered);
  }

  /**
   * @param layout
   */
  private AbstractOutlookBarComponent(LayoutManager layout) {
    super(layout);
  }

  /**
   * @param isDoubleBuffered
   */
  private AbstractOutlookBarComponent(boolean isDoubleBuffered) {
    super(isDoubleBuffered);
  }

  /**
   * Constructs a new abstract outlook bar component.
   * 
   * @param displayComponent Display component.
   */
  public AbstractOutlookBarComponent(AbstractDisplayComponent displayComponent) {
    super(true);
    BorderLayout bl = new BorderLayout();
    this.setLayout(bl);
    super.setBackground(Color.WHITE);
    m_displayComponent = displayComponent;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.