edu.gwu.jworddrivers
Class RootBookDriver

java.lang.Object
  extended by edu.gwu.jworddrivers.JWordDriver
      extended by edu.gwu.jworddrivers.RootBookDriver

public class RootBookDriver
extends JWordDriver


Field Summary
 
Fields inherited from class edu.gwu.jworddrivers.JWordDriver
POS_ADJECTIVE, POS_ADVERB, POS_NOUN, POS_VERB
 
Constructor Summary
RootBookDriver()
           
 
Method Summary
 java.lang.String getTitle()
          This method should return the title of the dictionary
 void initDictionary()
          This method should be implemented to load all dictionary resources this method will be called by JWord before running any other methods in the class
static void main(java.lang.String[] args)
           
 void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot, int POS, java.lang.String searchWord)
          Note: This Method is NOT SUPPORTED by the RootBookDriver! Calling it will perform no action
 void returnSearch(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String searchWord)
          Given the starting position on a JTree and a search word this method will construct DefatultMutableTreeNodes containing JWordNodes based on the dictionary's word relationships matched by the searchWord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootBookDriver

public RootBookDriver()
Method Detail

getTitle

public java.lang.String getTitle()
This method should return the title of the dictionary

Specified by:
getTitle in class JWordDriver

initDictionary

public void initDictionary()
This method should be implemented to load all dictionary resources this method will be called by JWord before running any other methods in the class

Specified by:
initDictionary in class JWordDriver

returnSearch

public void returnSearch(javax.swing.tree.DefaultMutableTreeNode root,
                         java.lang.String searchWord)
Given the starting position on a JTree and a search word this method will construct DefatultMutableTreeNodes containing JWordNodes based on the dictionary's word relationships matched by the searchWord

Specified by:
returnSearch in class JWordDriver

returnPOS

public void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot,
                      int POS,
                      java.lang.String searchWord)
Note: This Method is NOT SUPPORTED by the RootBookDriver! Calling it will perform no action

Specified by:
returnPOS in class JWordDriver

main

public static void main(java.lang.String[] args)