uk.ac.kcl.cch.jb.pliny.views.utils
Class ResourceNameInitialLetter
java.lang.Object
uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
uk.ac.kcl.cch.jb.pliny.views.utils.ResourceNameInitialLetter
- All Implemented Interfaces:
- EventListener, IPropertyChangeObject, PropertyChangeListener
- public class ResourceNameInitialLetter
- extends PropertyChangeObject
- implements PropertyChangeListener
this class is part of the Resource Explorer data model and keeps track
of Pliny
Resource
s of a certain
ObjectType
with a specified intial letter.
It works with a ResourceNameManager
which keeps track of the
Resources and notifies an instance of this class when a change in its
Resources have happened.
This object implements a 'lazy' management model -- only loading its
Resources when it is actually opened by the user. Once opened, it
tracks changes in the names of the Resources it manages and notifies
its ResourceNameManager whenever a number change happens.
- Author:
- John Bradley
- See Also:
ResourceNameManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceNameInitialLetter
public ResourceNameInitialLetter(Character c,
ResourceNameManager manager,
ObjectType myType)
ResourceNameInitialLetter
public ResourceNameInitialLetter(String c,
ResourceNameManager manager,
ObjectType myType)
setCount
public void setCount(int count)
getCount
public int getCount()
resourcesLoaded
public boolean resourcesLoaded()
getLetter
public String getLetter()
getText
public String getText()
getChildrenIterator
public Iterator getChildrenIterator()
removeResource
public void removeResource(Resource resource)
removeResource
public void removeResource(String oldName,
Resource resource)
addResource
public void addResource(Resource resource)
moveResource
public void moveResource(Resource resource,
String oldName)
propertyChange
public void propertyChange(PropertyChangeEvent arg0)
- Specified by:
propertyChange
in interface PropertyChangeListener
doInitLetterPropertyChangeFire
public void doInitLetterPropertyChangeFire(Object item1,
Object item2)