net.sourceforge.nite.nom.link
Interface NOMControl

All Known Subinterfaces:
NOMCorpus
All Known Implementing Classes:
NOMReadCorpus, NOMWriteCorpus

public interface NOMControl

Keeps the registered NOMViews in sync with the central NOM by informing them of any edits made.

Author:
jonathan

Method Summary
 void deregisterViewer(NOMView display)
          Remove a NOMView from the list of viewers that get notifed of changes.
 void notifyChange()
          Notify all NOMViews that an (unspecified) edit has ocurred
 void notifyChange(NOMEdit edit)
          Notify all NOMViews that a specific NOMEdit has ocurred
 void notifyChange(NOMEdit edit, NOMView view)
          Notify all NOMViews except the one passed as an argument that a NOMEdit has ocurred
 void registerViewer(NOMView display)
          Add a NOMView to the list of viewers that get notifed of changes.
 

Method Detail

registerViewer

void registerViewer(NOMView display)
Add a NOMView to the list of viewers that get notifed of changes.


deregisterViewer

void deregisterViewer(NOMView display)
Remove a NOMView from the list of viewers that get notifed of changes.


notifyChange

void notifyChange()
Notify all NOMViews that an (unspecified) edit has ocurred


notifyChange

void notifyChange(NOMEdit edit)
                  throws NOMException
Notify all NOMViews that a specific NOMEdit has ocurred

Throws:
NOMException

notifyChange

void notifyChange(NOMEdit edit,
                  NOMView view)
                  throws NOMException
Notify all NOMViews except the one passed as an argument that a NOMEdit has ocurred

Throws:
NOMException