lexx.trie
Class TrieNodeModel

java.lang.Object
  |
  +--lexx.trie.TrieNodeModel
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, javax.swing.tree.TreeModel

final class TrieNodeModel
extends java.lang.Object
implements javax.swing.tree.TreeModel, java.io.Serializable, java.lang.Cloneable

Required by JTree to display TrieNode or RootData data structures

The purpose of this class is to be used by JTree

Copyright (c) 2002-2003

Since:
18/02/2003
Version:
1.0
Author:
Mohammed Imran

Constructor Summary
TrieNodeModel(Trie t)
           
 
Method Summary
 void addTreeModelListener(javax.swing.event.TreeModelListener l)
           
 java.lang.Object clone()
           
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 java.lang.Object getRoot()
           
 boolean isLeaf(java.lang.Object node)
           
 void removeTreeModelListener(javax.swing.event.TreeModelListener l)
           
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrieNodeModel

public TrieNodeModel(Trie t)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

addTreeModelListener

public final void addTreeModelListener(javax.swing.event.TreeModelListener l)
Specified by:
addTreeModelListener in interface javax.swing.tree.TreeModel

getChild

public final java.lang.Object getChild(java.lang.Object parent,
                                       int index)
Specified by:
getChild in interface javax.swing.tree.TreeModel

getChildCount

public final int getChildCount(java.lang.Object parent)
Specified by:
getChildCount in interface javax.swing.tree.TreeModel

getIndexOfChild

public final int getIndexOfChild(java.lang.Object parent,
                                 java.lang.Object child)
Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel

getRoot

public final java.lang.Object getRoot()
Specified by:
getRoot in interface javax.swing.tree.TreeModel

isLeaf

public final boolean isLeaf(java.lang.Object node)
Specified by:
isLeaf in interface javax.swing.tree.TreeModel

removeTreeModelListener

public final void removeTreeModelListener(javax.swing.event.TreeModelListener l)
Specified by:
removeTreeModelListener in interface javax.swing.tree.TreeModel

valueForPathChanged

public final void valueForPathChanged(javax.swing.tree.TreePath path,
                                      java.lang.Object newValue)
Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel