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

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.ResourceExplorerResourceItem
              extended byuk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerSurrogateItem
All Implemented Interfaces:
EventListener, IResourceExplorerItem, PropertyChangeListener

public class ResourceExplorerSurrogateItem
extends ResourceExplorerResourceItem

the Resource Explorer's model element for data that appears in a Resource's reference/annotation area.

Author:
John Bradley

Field Summary
 
Fields inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerItemBase
myChildren, myView
 
Constructor Summary
ResourceExplorerSurrogateItem(IResourceTreeView myView, IResourceExplorerItem parent, LinkableObject linkableObject)
           
 
Method Summary
 Object getAssociatedObject()
          returns the Pliny model object associated with this item.
 int getPageNumber()
          return the page number data associated with the Pliny model object associated wtih this item.
 
Methods inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerResourceItem
createListIterator, getChildren, getIcon, getResource, hasChildren, makeChild
 
Methods inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerNamedModelItem
canModify, getNamedObject, getParent, getText, propertyChange, setText
 
Methods inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerItemBase
dispose, getBaseObject, getChildrenList, getMyView, getNumberChildren, setBaseObject, updateMyChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceExplorerSurrogateItem

public ResourceExplorerSurrogateItem(IResourceTreeView myView,
                                     IResourceExplorerItem parent,
                                     LinkableObject linkableObject)
Method Detail

getAssociatedObject

public Object getAssociatedObject()
Description copied from interface: IResourceExplorerItem
returns the Pliny model object associated with this item. Return null if there is not Pliny model object.

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

getPageNumber

public int getPageNumber()
Description copied from interface: IResourceExplorerItem
return the page number data associated with the Pliny model object associated wtih this item. Return 0 if there is no associated page number.

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