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

java.lang.Object
  extended byuk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerItemBase
      extended byuk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerNamedModelItem
          extended byuk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerObjectTypeItem
All Implemented Interfaces:
EventListener, IResourceExplorerItem, PropertyChangeListener

public class ResourceExplorerObjectTypeItem
extends ResourceExplorerNamedModelItem

provides Resource Explorer model elements for Pliny ObjectTypes -- the top level of the Resource Explorer's display.

Items below each of these items is a list of names grouped by the initial letter. This is managed by a ResourceNameManager.

Author:
John Bradley

Field Summary
static org.eclipse.swt.graphics.Image theIcon
           
 
Fields inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerItemBase
myChildren, myView
 
Constructor Summary
ResourceExplorerObjectTypeItem(IResourceTreeView myView, IResourceExplorerItem parent, ObjectType theObject)
           
 
Method Summary
 Iterator createListIterator()
           
 void dispose()
          performs data cleanup.
 org.eclipse.swt.graphics.Image getIcon()
          returns the Image to be used as the Icon displayed beside the item in the Resource Explorer tree.
static org.eclipse.swt.graphics.Image getMyIcon()
           
 ResourceNameManager getMyManager()
           
 int getNumberChildren()
          returns number of children owned by this item.
 IResourceExplorerItem makeChild(Object item)
           
 void propertyChange(PropertyChangeEvent arg0)
           
 void removeChild(ResourceExplorerInitialLetterItem item)
           
 
Methods inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerNamedModelItem
canModify, getNamedObject, getParent, getText, setText
 
Methods inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerItemBase
getAssociatedObject, getBaseObject, getChildren, getChildrenList, getMyView, getPageNumber, hasChildren, setBaseObject, updateMyChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theIcon

public static org.eclipse.swt.graphics.Image theIcon
Constructor Detail

ResourceExplorerObjectTypeItem

public ResourceExplorerObjectTypeItem(IResourceTreeView myView,
                                      IResourceExplorerItem parent,
                                      ObjectType theObject)
Method Detail

dispose

public void dispose()
Description copied from interface: IResourceExplorerItem
performs data cleanup. This will be called then the item is no longer needed.

Specified by:
dispose in interface IResourceExplorerItem
Overrides:
dispose in class ResourceExplorerItemBase

getMyManager

public ResourceNameManager getMyManager()

getMyIcon

public static org.eclipse.swt.graphics.Image getMyIcon()

getIcon

public org.eclipse.swt.graphics.Image getIcon()
Description copied from interface: IResourceExplorerItem
returns the Image to be used as the Icon displayed beside the item in the Resource Explorer tree. The image must be disposed of by this object -- it will not be disposed by the caller.

Specified by:
getIcon in interface IResourceExplorerItem
Specified by:
getIcon in class ResourceExplorerNamedModelItem

createListIterator

public Iterator createListIterator()
Specified by:
createListIterator in class ResourceExplorerItemBase

makeChild

public IResourceExplorerItem makeChild(Object item)
Specified by:
makeChild in class ResourceExplorerItemBase

getNumberChildren

public int getNumberChildren()
Description copied from interface: IResourceExplorerItem
returns number of children owned by this item.

Specified by:
getNumberChildren in interface IResourceExplorerItem
Overrides:
getNumberChildren in class ResourceExplorerItemBase

removeChild

public void removeChild(ResourceExplorerInitialLetterItem item)

propertyChange

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