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

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.ResourceExplorerDisplayedInItem
All Implemented Interfaces:
EventListener, IResourceExplorerItem, PropertyChangeListener

public class ResourceExplorerDisplayedInItem
extends ResourceExplorerResourceItem

the Resource Explorer's model element for the 5th level items displayed under the 4th level "Displayed In" item.

Author:
John Bradley

Field Summary
 
Fields inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerItemBase
myChildren, myView
 
Constructor Summary
ResourceExplorerDisplayedInItem(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.
 Resource getResource()
           
 String getText()
          returns text to be used as the textual label for the tree item display.
 void propertyChange(PropertyChangeEvent arg0)
           
 void setText(String text)
          changes text to be displayed as the label to the given text.
 
Methods inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerResourceItem
createListIterator, getChildren, getIcon, hasChildren, makeChild
 
Methods inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerNamedModelItem
canModify, getNamedObject, getParent
 
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

ResourceExplorerDisplayedInItem

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

getResource

public Resource getResource()
Overrides:
getResource in class ResourceExplorerResourceItem

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

getText

public String getText()
Description copied from interface: IResourceExplorerItem
returns text to be used as the textual label for the tree item display.

Specified by:
getText in interface IResourceExplorerItem
Overrides:
getText in class ResourceExplorerNamedModelItem

setText

public void setText(String text)
Description copied from interface: IResourceExplorerItem
changes text to be displayed as the label to the given text. This should result in changes in the backing Pliny model as well.

Specified by:
setText in interface IResourceExplorerItem
Overrides:
setText in class ResourceExplorerNamedModelItem

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

propertyChange

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