uk.ac.kcl.cch.jb.pliny.views.utils
Class ResourceExplorerObjectTypeItem
java.lang.Object
uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerItemBase
uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerNamedModelItem
uk.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
ObjectType
s --
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theIcon
public static org.eclipse.swt.graphics.Image theIcon
ResourceExplorerObjectTypeItem
public ResourceExplorerObjectTypeItem(IResourceTreeView myView,
IResourceExplorerItem parent,
ObjectType theObject)
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