/*
* 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 2015 ForgeRock AS.
*/
/**
* The abstract class used to refactor some code. The classes that extend this
* class are the two panels that appear on the right side of the
* 'Manage Indexes...' dialog when the user clicks on 'Indexes' or
* 'VLV Indexes'.
*
*/
{
/**
* The table model.
*/
/**
* The table contained by this panel.
*/
/**
* The scroll pane that contains the table.
*/
/** Default constructor. */
protected AbstractBackendIndexesPanel()
{
createLayout();
}
/** {@inheritDoc} */
{
return table;
}
/** {@inheritDoc} */
{
}
/**
* The contents of the panel are updated with the indexes of the provided
* backend.
* @param backendName the backend name.
*/
{
this.backendName = backendName;
{
final BackendDescriptor b = backend;
{
public void run()
{
updateTableModel(b);
}
});
}
else
{
}
}
{
{
{
return b;
}
}
return null;
}
/**
* The method that is called to update the table model with the contents of
* the specified backend.
* @param backend the backend.
*/
/** {@inheritDoc} */
public void okClicked()
{
// No OK button
}
/** {@inheritDoc} */
{
}
/**
* Adds an index selection listener.
* @param listener the index selection listener.
*/
{
}
/**
* Removes an index selection listener.
* @param listener the index selection listener.
*/
{
}
/**
* Returns the index table model used by this panel.
* @return the index table model used by this panel.
*/
/**
* Creates the layout of the panel (but the contents are not populated here).
*
*/
private void createLayout()
{
table.setDragEnabled(false);
{
{
{
{
/** Call it this way to let the painting events happen. */
public void run()
{
{
}
}
});
}
}
});
{
{
}
{
lastRowMouseOver = -1;
}
});
tableScroll.setOpaque(false);
}
}