edu.uky.rch.ept.projectexplorer.scan
Class ScanResource

java.lang.Object
  extended byedu.uky.rch.ept.projectexplorer.model.ProjectItem
      extended byedu.uky.rch.ept.projectexplorer.model.Resource
          extended byedu.uky.rch.ept.projectexplorer.scan.ScanResource
All Implemented Interfaces:
IProjectItem

public final class ScanResource
extends Resource

Project item representing a resource displayed as part of a scan. The primary differences between this class and Resource are that the item's label contains the project-relative path to the resource; and that the parent is required to be a ScanListItem.

Author:
neil

Constructor Summary
ScanResource(ScanListItem parent, String address)
          Create a new scan resource belonging to a given scan, pointing to the resource with the specified data layer address.
 
Method Summary
 ScanListItem getScanList()
          Return the ScanListItem to which this resource belongs.
 
Methods inherited from class edu.uky.rch.ept.projectexplorer.model.Resource
getAddress, getChildren, getLabelImage, getLabelText, getName, hasChildren
 
Methods inherited from class edu.uky.rch.ept.projectexplorer.model.ProjectItem
getEditorId, getEditorInput, getParent, getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScanResource

public ScanResource(ScanListItem parent,
                    String address)
Create a new scan resource belonging to a given scan, pointing to the resource with the specified data layer address.

Parameters:
parent - the parent of this item in the project explorer hierarchy. Usually a ScanListItem.
address - the (absolute) data-layer address of the resource.
See Also:
Resource.Resource(IProjectItem, String, String)
Method Detail

getScanList

public ScanListItem getScanList()
Return the ScanListItem to which this resource belongs.

Returns:
the parent of this ScanResource, as a ScanListItem.