From d6b4863175cbac9c771441d8d50b75774044c07d Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 18 Apr 2016 15:57:03 +0000
Subject: [PATCH] Code cleanup
---
opendj-server-legacy/src/main/java/org/opends/quicksetup/installer/ui/DataOptionsPanel.java | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/quicksetup/installer/ui/DataOptionsPanel.java b/opendj-server-legacy/src/main/java/org/opends/quicksetup/installer/ui/DataOptionsPanel.java
index 0fa7238..fe3325f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/quicksetup/installer/ui/DataOptionsPanel.java
+++ b/opendj-server-legacy/src/main/java/org/opends/quicksetup/installer/ui/DataOptionsPanel.java
@@ -12,7 +12,7 @@
* information: "Portions Copyright [year] [name of copyright owner]".
*
* Copyright 2006-2009 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS.
+ * Portions Copyright 2014-2016 ForgeRock AS.
*/
package org.opends.quicksetup.installer.ui;
@@ -87,7 +87,7 @@
addActionListeners();
}
- /** {@inheritDoc} */
+ @Override
public Object getFieldValue(FieldName fieldName)
{
if (fieldName == FieldName.DATA_OPTIONS)
@@ -116,7 +116,7 @@
return null;
}
- /** {@inheritDoc} */
+ @Override
public void displayFieldInvalid(final FieldName fieldName, final boolean invalid)
{
final JLabel label = getLabel(fieldName);
@@ -137,7 +137,7 @@
}
}
- /** {@inheritDoc} */
+ @Override
protected Component createInputPanel()
{
JPanel panel = new JPanel(new GridBagLayout());
@@ -328,19 +328,19 @@
return Utilities.createBrowseButtonPanel(getLabel(fieldName), getField(fieldName), browseButton);
}
- /** {@inheritDoc} */
+ @Override
protected LocalizableMessage getInstructions()
{
return INFO_DATA_OPTIONS_PANEL_INSTRUCTIONS.get();
}
- /** {@inheritDoc} */
+ @Override
protected LocalizableMessage getTitle()
{
return INFO_DATA_OPTIONS_PANEL_TITLE.get();
}
- /** {@inheritDoc} */
+ @Override
public void endDisplay()
{
if (lastFocusComponent != null)
@@ -488,18 +488,21 @@
{
final DocumentListener docListener = new DocumentListener()
{
+ @Override
public void changedUpdate(DocumentEvent ev)
{
final LocalizableMessage newLabel =
- INFO_CREATE_BASE_ENTRY_LABEL.get((String) getFieldValue(FieldName.DIRECTORY_BASE_DN));
+ INFO_CREATE_BASE_ENTRY_LABEL.get(getFieldValue(FieldName.DIRECTORY_BASE_DN));
getRadioButton(NewSuffixOptions.Type.CREATE_BASE_ENTRY).setText(newLabel.toString());
}
+ @Override
public void insertUpdate(DocumentEvent ev)
{
changedUpdate(ev);
}
+ @Override
public void removeUpdate(DocumentEvent ev)
{
changedUpdate(ev);
@@ -514,6 +517,7 @@
{
final FocusListener focusListener = new FocusListener()
{
+ @Override
public void focusGained(FocusEvent e)
{
lastFocusComponent = e.getComponent();
@@ -527,6 +531,7 @@
}
}
+ @Override
public void focusLost(FocusEvent e)
{
}
@@ -550,6 +555,7 @@
{
final ActionListener l = new ActionListener()
{
+ @Override
public void actionPerformed(ActionEvent e)
{
checkEnablingState();
--
Gitblit v1.10.0