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

Jean-Noël Rouvignac
20.36.2016 2a3158aad80fc910b83336485b3e545dea50066c
opendj-server-legacy/src/main/java/org/opends/quicksetup/ui/CustomHTMLEditorKit.java
@@ -12,7 +12,7 @@
 * information: "Portions Copyright [year] [name of copyright owner]".
 *
 * Copyright 2008 Sun Microsystems, Inc.
 * Portions Copyright 2015 ForgeRock AS.
 * Portions Copyright 2015-2016 ForgeRock AS.
 */
package org.opends.quicksetup.ui;
@@ -29,23 +29,19 @@
import javax.swing.text.html.FormView;
import javax.swing.text.html.HTMLEditorKit;
/**
 * Class used to be able to detect events in the button inside an HTML pane.
 */
/** Class used to be able to detect events in the button inside an HTML pane. */
public class CustomHTMLEditorKit extends HTMLEditorKit
{
  private HashSet<ActionListener> listeners = new HashSet<>();
  private static final long serialVersionUID = 298103926252426388L;
  /**
   * Default constructor.
   */
  /** Default constructor. */
  public CustomHTMLEditorKit()
  {
    super();
  }
  /** {@inheritDoc} */
  @Override
  public ViewFactory getViewFactory()
  {
    return new MyHTMLFactory();
@@ -69,12 +65,10 @@
    listeners.remove(l);
  }
  /**
   * Class used to be able to detect events in the button inside an HTML pane.
   */
  /** Class used to be able to detect events in the button inside an HTML pane. */
  class MyHTMLFactory extends HTMLFactory
  {
    /** {@inheritDoc} */
    @Override
    public View create(Element elem)
    {
      View v = super.create(elem);
@@ -86,9 +80,7 @@
    }
  }
  /**
   * Class used to be able to detect events in the button inside an HTML pane.
   */
  /** Class used to be able to detect events in the button inside an HTML pane. */
  class MyFormView extends FormView
  {
    /**
@@ -101,7 +93,7 @@
      super(elem);
    }
    /** {@inheritDoc} */
    @Override
    public void actionPerformed(ActionEvent ev)
    {
      if (ev != null && ev.getWhen() != lastActionWhen) {
@@ -113,7 +105,7 @@
      }
    }
    /** {@inheritDoc} */
    @Override
    protected Component createComponent()
    {
      Component comp = super.createComponent();