/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2010 Sun Microsystems, Inc.
* Portions Copyright 2013-2015 ForgeRock AS.
*/
/**
* The panel where the user specifies the runtime settings.
*
*/
{
/**
* The size of the LDIF file to be imported used as threshold to display
* a warning message, telling the user to update the import runtime settings.
*/
private static final int WARNING_THRESOLD_AUTOMATICALLY_GENERATED_IMPORT
= 100000;
/**
* Constructor of the panel.
* @param application Application represented by this panel and used to
* initialize the fields of the panel.
*/
{
super(application);
}
/** {@inheritDoc} */
{
warning.setVisible(false);
return panel;
}
/** {@inheritDoc} */
{
}
/** {@inheritDoc} */
{
return INFO_JAVA_RUNTIME_OPTIONS_PANEL_TITLE.get();
}
/** {@inheritDoc} */
{
{
}
{
}
return value;
}
/** {@inheritDoc} */
{
if (defaultServerJavaArgs == null)
{
}
if (defaultImportJavaArgs == null)
{
}
boolean updatePanel = false;
if (serverJavaArgs == null)
{
updatePanel = true;
}
if (importJavaArgs == null)
{
updatePanel = true;
}
if (updatePanel)
{
}
}
/** {@inheritDoc} */
public void endDisplay()
{
if (lastFocusComponent != null)
{
}
}
/** {@inheritDoc} */
public boolean requiresScroll()
{
return false;
}
/**
* Adds the required focus listeners to the fields.
*/
private void addFocusListeners()
{
FocusListener l = new FocusListener()
{
public void focusGained(FocusEvent e)
{
lastFocusComponent = e.getComponent();
}
public void focusLost(FocusEvent e)
{
}
};
}
private void changeServerClicked()
{
dlg.setVisible(true);
if (!dlg.isCanceled())
{
}
}
private void changeImportClicked()
{
dlg.setVisible(true);
if (!dlg.isCanceled())
{
}
}
private void createComponents()
{
{
{
}
});
{
{
}
});
}
{
if (mainWindow instanceof JFrame)
{
}
return frame;
}
{
boolean createSuffix =
if (createSuffix)
{
{
case IMPORT_FROM_LDIF_FILE:
{
}
break;
if (options.getNumberEntries() >
{
msg =
get();
}
break;
}
}
{
int maxReplicatedEntries = 0;
{
int suffixEntries = 0;
{
}
}
{
}
}
{
new HtmlProgressMessageFormatter();
"</form>";
warning.setVisible(true);
}
else
{
warning.setVisible(false);
}
}
}