SuffixesToReplicatePanel.java revision e7cac727a9231ff3602e61a4ea678e0463eb0e39
/*
* 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 2008-2010 Sun Microsystems, Inc.
* Portions Copyright 2013-2015 ForgeRock AS.
*/
/**
* This class is used to provide a data model for the list of suffixes that
* we have to replicate on the new server.
*/
public class SuffixesToReplicatePanel extends QuickSetupStepPanel
implements Comparator<SuffixDescriptor>
{
private static final long serialVersionUID = -8051367953737385327L;
new TreeSet<SuffixDescriptor>(this);
/**
* The display of the server the user provided in the replication options
* panel.
*/
private String serverToConnectDisplay;
private JLabel noSuffixLabel;
private JPanel checkBoxPanel;
private JScrollPane scroll;
/**
* Constructor of the panel.
* @param application Application represented by this panel and used to
* initialize the fields of the panel.
*/
{
super(application);
}
/** {@inheritDoc} */
{
{
}
{
{
{
}
}
}
return value;
}
/** {@inheritDoc} */
{
if (result == 0)
{
}
return result;
}
/** {@inheritDoc} */
protected Component createInputPanel()
{
// Add the checkboxes
checkBoxPanel.setOpaque(false);
noSuffixLabel.setVisible(false);
labelGlue.setVisible(false);
return panel;
}
/** {@inheritDoc} */
protected boolean requiresScroll()
{
return false;
}
/** {@inheritDoc} */
protected LocalizableMessage getInstructions()
{
}
/** {@inheritDoc} */
protected LocalizableMessage getTitle()
{
return INFO_SUFFIXES_TO_REPLICATE_PANEL_TITLE.get();
}
/** {@inheritDoc} */
{
{
}
else
{
newServerDisplay = "";
}
{
{
}
{
{
}
}
{
if (v != null)
{
cb.setSelected(v);
}
}
}
}
/**
* Creates the components of this panel.
*/
private void createComponents()
{
}
private void populateCheckBoxPanel()
{
boolean first = true;
{
if (!first)
{
}
l.setOpaque(false);
/* Use a prototype label to get the additional insets */
first = false;
}
}
{
{
}
{
{
}
}
}
{
{
}
else
{
}
if (nEntries > 0)
{
}
else if (nEntries == 0)
{
}
else
{
}
return display;
}
{
return ordered;
}
{
}
{
}
}