net.sourceforge.nite.corpus.plugin
Class OntologyTool

java.lang.Object
  extended by net.sourceforge.nite.corpus.plugin.OntologyTool
All Implemented Interfaces:
CorpusTool

public class OntologyTool
extends java.lang.Object
implements CorpusTool

Interface to be instantated by all tools that can perform editing or management style tasks at a corpus-wide level. NOT intended for annotation tools! Each CorpusTool must publish a JPanel containing its interface and declare whether any changes need to be saved as well as providing a method to do its own saving.


Constructor Summary
OntologyTool()
           
 
Method Summary
 void applyChanges()
          apply the changes to the corpus
 java.lang.String getDescription()
          get a short textual description of this app
 java.lang.String getName()
          get the (one word) name of this app for naming a tab
 javax.swing.JPanel getPanel(NMetaData metadata)
          provide the interface for this tool
 java.lang.String getToolTip()
          get a handy tip to associate with this app
 boolean requiresSave()
          return true if outstanding changes are still to be committed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntologyTool

public OntologyTool()
Method Detail

getPanel

public javax.swing.JPanel getPanel(NMetaData metadata)
provide the interface for this tool

Specified by:
getPanel in interface CorpusTool

requiresSave

public boolean requiresSave()
return true if outstanding changes are still to be committed

Specified by:
requiresSave in interface CorpusTool

applyChanges

public void applyChanges()
apply the changes to the corpus

Specified by:
applyChanges in interface CorpusTool

getToolTip

public java.lang.String getToolTip()
get a handy tip to associate with this app

Specified by:
getToolTip in interface CorpusTool

getDescription

public java.lang.String getDescription()
get a short textual description of this app

Specified by:
getDescription in interface CorpusTool

getName

public java.lang.String getName()
get the (one word) name of this app for naming a tab

Specified by:
getName in interface CorpusTool