uk.ac.kcl.cch.jb.pliny.views.utils
Class ResourceNameManager
java.lang.Object
uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
uk.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ResourceNameManager
public ResourceNameManager(ObjectType type)
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