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