| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | * Portions Copyright 2014-2016 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.ui.nodes; |
| | | |
| | | import javax.swing.Icon; |
| | |
| | | import org.opends.server.types.LDAPURL; |
| | | import org.opends.server.types.RDN; |
| | | |
| | | /** |
| | | * The basic node used to render entries in the 'Manage Entries' tree. |
| | | * |
| | | */ |
| | | /** The basic node used to render entries in the 'Manage Entries' tree. */ |
| | | public class BasicNode extends DefaultMutableTreeNode { |
| | | |
| | | private static final long serialVersionUID = 5441658731908509872L; |
| | |
| | | * @return <CODE>true</CODE> if the node is a leaf and <CODE>false</CODE> |
| | | * otherwise. |
| | | */ |
| | | @Override |
| | | public boolean isLeaf() { |
| | | return isLeaf; |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Rendering |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | // |
| | | // Rendering |
| | | // |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return getDisplayName(); |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | result = rdn.getAttributeValue(0).toString(); |
| | | result = rdn.getFirstAVA().getAttributeValue().toString(); |
| | | } |
| | | } |
| | | else { |