001/*
002 * The contents of this file are subject to the terms of the Common Development and
003 * Distribution License (the License). You may not use this file except in compliance with the
004 * License.
005 *
006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
007 * specific language governing permission and limitations under the License.
008 *
009 * When distributing Covered Software, include this CDDL Header Notice in each file and include
010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
011 * Header, with the fields enclosed by brackets [] replaced by your own identifying
012 * information: "Portions Copyright [year] [name of copyright owner]".
013 *
014 * Copyright 2009-2010 Sun Microsystems, Inc.
015 * Portions Copyright 2014-2015 ForgeRock AS.
016 */
017package org.opends.guitools.controlpanel.ui;
018
019import static org.opends.messages.AdminToolMessages.*;
020
021import javax.swing.border.Border;
022import javax.swing.border.EmptyBorder;
023
024import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent;
025import org.forgerock.i18n.LocalizableMessage;
026
027/**
028 * Abstract class used to refactor some code among the panels that display the
029 * contents of the global monitoring.
030 */
031public abstract class GeneralMonitoringPanel extends StatusGenericPanel
032{
033  private static final long serialVersionUID = 2840755228290832143L;
034
035  /** The empty border shared by all the panels. */
036  protected Border PANEL_BORDER = new EmptyBorder(10, 10, 10, 10);
037
038  /** The message to express that the value was not found. */
039  protected static LocalizableMessage NO_VALUE_SET =
040    INFO_CTRL_PANEL_NO_MONITORING_VALUE.get();
041
042  /** {@inheritDoc} */
043  public void configurationChanged(ConfigurationChangeEvent ev)
044  {
045  }
046
047  /** {@inheritDoc} */
048  public LocalizableMessage getTitle()
049  {
050    return LocalizableMessage.EMPTY;
051  }
052
053  /** {@inheritDoc} */
054  public void okClicked()
055  {
056  }
057}