uk.ac.kcl.cch.jb.pliny.views.utils
Class ResourceExplorerDisplayedInItem
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.ResourceExplorerResourceItem
uk.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceExplorerDisplayedInItem
public ResourceExplorerDisplayedInItem(IResourceTreeView myView,
IResourceExplorerItem parent,
LinkableObject linkableObject)
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