mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
23.44.2015 6638c2755466ca601450700d5a39f390f23d4781
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/UnsavedChangesDialog.java
@@ -22,7 +22,7 @@
 *
 *
 *      Copyright 2008-2009 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS
 *      Portions Copyright 2014-2015 ForgeRock AS
 */
package org.opends.guitools.controlpanel.ui;
@@ -105,9 +105,7 @@
    pack();
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  public void setVisible(boolean visible)
  {
    if (visible)
@@ -177,17 +175,13 @@
      add(createButtonsPanel(), gbc);
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public boolean requiresBorder()
    {
      return false;
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public boolean requiresScroll()
    {
      return false;
@@ -233,9 +227,7 @@
      buttonsPanel.add(cancelButton, gbc);
      cancelButton.addActionListener(new ActionListener()
      {
        /**
         * {@inheritDoc}
         */
        /** {@inheritDoc} */
        public void actionPerformed(ActionEvent ev)
        {
          result = Result.CANCEL;
@@ -251,9 +243,7 @@
      buttonsPanel.add(saveButton, gbc);
      saveButton.addActionListener(new ActionListener()
      {
        /**
         * {@inheritDoc}
         */
        /** {@inheritDoc} */
        public void actionPerformed(ActionEvent ev)
        {
          result = Result.SAVE;
@@ -267,52 +257,38 @@
      return buttonsPanel;
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public Component getPreferredFocusComponent()
    {
      return doNotSaveButton;
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public void okClicked()
    {
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public LocalizableMessage getTitle()
    {
      return INFO_CTRL_PANEL_UNSAVED_CHANGES_DIALOG_TITLE.get();
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public void configurationChanged(ConfigurationChangeEvent ev)
    {
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public GenericDialog.ButtonType getButtonType()
    {
      return GenericDialog.ButtonType.NO_BUTTON;
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public boolean isDisposeOnClose()
    {
      return true;
    }
  }
}