3853N/A * The contents of this file are subject to the terms of the 3853N/A * Common Development and Distribution License, Version 1.0 only 3853N/A * (the "License"). You may not use this file except in compliance 3853N/A * You can obtain a copy of the license at 3853N/A * See the License for the specific language governing permissions 3853N/A * and limitations under the License. 3853N/A * When distributing Covered Code, include this CDDL HEADER in each 3853N/A * file and include the License file at 3853N/A * add the following below this CDDL HEADER, with the fields enclosed 3853N/A * by brackets "[]" replaced with your own identifying information: 3853N/A * Portions Copyright [yyyy] [name of copyright owner] 4994N/A * Copyright 2008-2010 Sun Microsystems, Inc. 3853N/A * This is the panel that contains all the different views to display an entry. 3853N/A * The different views that we have to display an LDAP entry. 3853N/A * Attribute view (contained in a table). 3853N/A * Creates the layout of the panel (but the contents are not populated here). 3853N/A // Something changed that is wrong: assume the entry has been 3853N/A // modified, when the user tries to save we will inform of the 3853N/A * Updates the panel with the provided search result. 3853N/A * @param searchResult the search result corresponding to the selected node. 3853N/A * @param treePath the tree path of the selected node. 3853N/A * Sets the view to be displayed by this panel. 3853N/A * Displays a message informing that an error occurred reading the entry. 3853N/A * @param ev the entry read error event. 5014N/A * Displays a message informing that an error occurred resolving a referral. 5014N/A * @param dn the DN of the local entry. 5014N/A * @param referrals the list of referrals defined in the entry. 5014N/A * @param error the error that occurred resolving the referral. 3853N/A * Displays a panel informing that nothing is selected. 3853N/A * Displays a panel informing that multiple entries are selected. 3853N/A * Returns <CODE>true</CODE> if the provided DN corresponds to a read-only 3853N/A * entry and <CODE>false</CODE> otherwise. 3853N/A * @param sDn the DN of the entry. 3853N/A * @return <CODE>true</CODE> if the provided DN corresponds to a read-only 3853N/A * entry and <CODE>false</CODE> otherwise. 3853N/A * Returns <CODE>true</CODE> if the provided DN corresponds to an entry that 3853N/A * can be deleted and <CODE>false</CODE> otherwise. 3853N/A * @param sDn the DN of the entry. 3853N/A * @return <CODE>true</CODE> if the provided DN corresponds to an entry that 3853N/A * can be deleted and <CODE>false</CODE> otherwise. 3853N/A * Saves the changes done to the entry. 3853N/A * @param modal whether the progress dialog for the task must be modal or 3853N/A // Check that the entry is correct. 4013N/A // Mark the panel as it has no changes. This can happen because every 4013N/A // time the user types something the saveChanges button is enabled 4013N/A // (for performance reasons with huge entries). 3853N/A // Check that the entry is correct. 5130N/A // Rely in numsubordinates and hassubordinates 3853N/A * Returns the browser controller in charge of the tree. 3853N/A * @return the browser controller in charge of the tree. 3853N/A * Sets the browser controller in charge of the tree. 3853N/A * @param controller the browser controller in charge of the tree. 3853N/A * Returns the tree path associated with the node that is being displayed. 3853N/A * @return the tree path associated with the node that is being displayed. 3853N/A * Sets the tree path associated with the node that is being displayed. 3853N/A * @param treePath the tree path associated with the node that is being 3853N/A * Method used to know if there are unsaved changes or not. It is used by 3853N/A * the entry selection listener when the user changes the selection. 3853N/A * @return <CODE>true</CODE> if there are unsaved changes (and so the 3853N/A * selection of the entry should be cancelled) and <CODE>false</CODE> 3853N/A * Tells whether the user chose to save the changes in the panel, to not save 4902N/A * them or simply canceled the selection change in the tree. 3853N/A * @return the value telling whether the user chose to save the changes in the 4902N/A * panel, to not save them or simply canceled the selection in the tree.