uk.ac.kcl.cch.jb.pliny.views.utils
Class ResourceNameManager

java.lang.Object
  extended byuk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
      extended byuk.ac.kcl.cch.jb.pliny.views.utils.ResourceNameManager
All Implemented Interfaces:
EventListener, IPropertyChangeObject, PropertyChangeListener

public class ResourceNameManager
extends PropertyChangeObject
implements PropertyChangeListener

manages the Resource items associated with a particular ObjectType by working with their names to handle the grouping of resources by the initial letter of their name and creating the required set of ResourceNameInitialLetter objects.

It then tracks changes in the resources associated with its ObjectType so that new items are added to or removed from the proper ResourceNameInitialLetter as needed.

Author:
John Bradley

Field Summary
static String INITLETTER_EVENT
           
static String NEW_INITLETTER_EVENT
           
 
Constructor Summary
ResourceNameManager(ObjectType type)
           
 
Method Summary
 void dispose()
           
 Iterator getInitialLetterIterator()
           
static Collator getMyCollator()
           
 ObjectType getMyObjectType()
           
 int getNumberInitialLetters()
           
 void propertyChange(PropertyChangeEvent arg0)
           
 void removeInitialLetter(String letter)
           
 
Methods inherited from class uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITLETTER_EVENT

public static final String INITLETTER_EVENT
See Also:
Constant Field Values

NEW_INITLETTER_EVENT

public static final String NEW_INITLETTER_EVENT
See Also:
Constant Field Values
Constructor Detail

ResourceNameManager

public ResourceNameManager(ObjectType type)
Method Detail

getMyCollator

public static Collator getMyCollator()

dispose

public void dispose()

getMyObjectType

public ObjectType getMyObjectType()

getInitialLetterIterator

public Iterator getInitialLetterIterator()

getNumberInitialLetters

public int getNumberInitialLetters()

removeInitialLetter

public void removeInitialLetter(String letter)

propertyChange

public void propertyChange(PropertyChangeEvent arg0)
Specified by:
propertyChange in interface PropertyChangeListener