phenote.dataadapter
Class ScratchGroupsManager

java.lang.Object
  extended by phenote.dataadapter.ScratchGroupsManager

public class ScratchGroupsManager
extends java.lang.Object

Manages group names and component factories for temporary collections of characters (scratch groups). These characters could be edited to use as templates which can be drag-copied into the main annotation table.

Author:
Jim Balhoff

Method Summary
 void deleteScratchGroups(java.util.Collection<ScratchGroup> groups)
          Deletes the scratch groups in the collection as well as the GUIComponentFactory for each.
 ScratchGroup getScratchGroup(java.lang.String id)
          Returns the ScratchGroup with the given ID.
 ca.odell.glazedlists.EventList<ScratchGroup> getScratchGroups()
           
static ScratchGroupsManager inst()
           
 ScratchGroup newScratchGroup()
          Creates and returns a new ScratchGroup, meanwhile installing a GUIComponentFactory for it.
static void reset()
           
 void showScratchGroups(java.util.Collection<ScratchGroup> groups)
          Shows the GUIComponent table representing each scratch group in the interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

inst

public static ScratchGroupsManager inst()

reset

public static void reset()

getScratchGroups

public ca.odell.glazedlists.EventList<ScratchGroup> getScratchGroups()

getScratchGroup

public ScratchGroup getScratchGroup(java.lang.String id)
Returns the ScratchGroup with the given ID.


newScratchGroup

public ScratchGroup newScratchGroup()
Creates and returns a new ScratchGroup, meanwhile installing a GUIComponentFactory for it.


deleteScratchGroups

public void deleteScratchGroups(java.util.Collection<ScratchGroup> groups)
Deletes the scratch groups in the collection as well as the GUIComponentFactory for each.


showScratchGroups

public void showScratchGroups(java.util.Collection<ScratchGroup> groups)
Shows the GUIComponent table representing each scratch group in the interface.