/*
* 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
* 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
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. 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 Sun Microsystems, Inc.
*/
/**
* The panel on the right of the 'Manage Indexes' panel.
*
*/
{
new BackendVLVIndexesPanel();
/**
* Default constructor.
*
*/
public IndexBrowserRightPanel()
{
super();
createLayout();
}
/**
* Displays a panel informing that no item is selected.
*
*/
public void displayVoid()
{
}
/**
* Displays a panel informing that multiple items are selected.
*
*/
public void displayMultiple()
{
}
/**
* Adds an index selection listener.
* @param listener the index selection listener.
*/
{
}
/**
* Removes an index selection listener.
* @param listener the index selection listener.
*/
{
}
/**
* {@inheritDoc}
*/
{
}
/**
* Updates the contents of the panel with an standard index.
* @param index the index to be used to update the contents of the panel.
*/
{
}
/**
* Updates the contents of the panel with a VLV index.
* @param index the index to be used to update the contents of the panel.
*/
{
}
/**
* Updates the contents of the panel with the indexes on the provided backend.
* A table with all the indexes of the backend will be displayed.
* @param backendName the name of the backend.
*/
{
}
/**
* Updates the contents of the panel with the VLV indexes on the provided
* backend.
* A table with all the VLV indexes of the backend will be displayed.
* @param backendName the name of the backend.
*/
{
}
/**
* Creates the layout of the panel (but the contents are not populated here).
*/
private void createLayout()
{
{
};
{
}
}
/**
* {@inheritDoc}
*/
public void okClicked()
{
// No ok button
}
/**
* {@inheritDoc}
*/
{
}
/**
* {@inheritDoc}
*/
{
}
/**
* {@inheritDoc}
*/
{
// TODO
return null;
}
/**
* {@inheritDoc}
*/
{
}
/**
* Method used to know if there are unsaved changes or not. It is used by
* the index selection listener when the user changes the selection.
* @return <CODE>true</CODE> if there are unsaved changes (and so the
* selection of the index should be canceled) and <CODE>false</CODE>
* otherwise.
*/
public boolean mustCheckUnsavedChanges()
{
boolean mustCheckUnsavedChanges;
if (vlvIndexPanel.isVisible())
{
}
else if (standardIndexPanel.isVisible())
{
}
else
{
mustCheckUnsavedChanges = false;
}
return mustCheckUnsavedChanges;
}
/**
* Tells whether the user chose to save the changes in the panel, to not save
* them or simply cancelled the selection in the tree.
* @return the value telling whether the user chose to save the changes in the
* panel, to not save them or simply cancelled the selection in the tree.
*/
{
if (vlvIndexPanel.isVisible())
{
}
else if (standardIndexPanel.isVisible())
{
}
else
{
}
return result;
}
}