// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) space 
// Source File Name:   StringTreeNode.java

package lt.monarch.swing.tree;

import java.util.Enumeration;
import javax.swing.tree.TreeNode;

public abstract class StringTreeNode
    implements TreeNode
{

    public String toString()
    {
        return text;
    }

    public TreeNode getChildAt(int i)
    {
        return null;
    }

    public int getChildCount()
    {
        return 0;
    }

    public int getIndex(TreeNode treenode)
    {
        return 0;
    }

    public Enumeration children()
    {
        return null;
    }

    public boolean isLeaf()
    {
        return true;
    }

    public TreeNode getParent()
    {
        return parent;
    }

    public boolean getAllowsChildren()
    {
        return false;
    }

    public StringTreeNode(TreeNode treenode, String s)
    {
        parent = treenode;
        text = s;
    }

    private TreeNode parent;
    private String text;
}
