3853N/A/*
3853N/A * CDDL HEADER START
3853N/A *
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 * with the License.
3853N/A *
3853N/A * You can obtain a copy of the license at
3853N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
3853N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
3853N/A * See the License for the specific language governing permissions
3853N/A * and limitations under the License.
3853N/A *
3853N/A * When distributing Covered Code, include this CDDL HEADER in each
3853N/A * file and include the License file at
3853N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
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]
3853N/A *
3853N/A * CDDL HEADER END
3853N/A *
3853N/A *
5035N/A * Copyright 2008-2010 Sun Microsystems, Inc.
3853N/A */
3853N/A
3853N/Apackage org.opends.guitools.controlpanel.ui.nodes;
3853N/A
3853N/Aimport javax.swing.tree.DefaultMutableTreeNode;
3853N/A
3853N/A/**
3853N/A * Abstract class with some common methods for all the nodes in the
3853N/A * 'Manage Index' tree.
3853N/A *
3853N/A */
3853N/Apublic abstract class AbstractIndexTreeNode extends DefaultMutableTreeNode
3853N/A{
5035N/A private static final long serialVersionUID = 8055748310817873273L;
3853N/A private String name;
3853N/A /**
3853N/A * Constructor.
3853N/A * @param name the name of the node.
3853N/A */
3853N/A protected AbstractIndexTreeNode(String name)
3853N/A {
3853N/A super(name);
3853N/A this.name = name;
3853N/A }
3853N/A
3853N/A /**
3853N/A * {@inheritDoc}
3853N/A */
3853N/A public String getName()
3853N/A {
3853N/A return name;
3853N/A }
3853N/A
3853N/A /**
3853N/A * {@inheritDoc}
3853N/A */
3853N/A public boolean isRoot()
3853N/A {
3853N/A return false;
3853N/A }
3853N/A
3853N/A /**
3853N/A * {@inheritDoc}
3853N/A */
3853N/A public boolean isLeaf()
3853N/A {
3853N/A return true;
3853N/A }
3853N/A}