|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.kcl.cch.jb.pliny.views.utils.NoteSearchRoot
used by the NoteSearchView
as the root of the model for its display, and contains items
that were selected by the query. Since the NoteSearchView is
like the Resource Explorer in some ways and reuses some of this code,
this root is a IResourceExplorerItem
.
Field Summary | |
Vector |
noteList
|
Vector |
rsltList
|
Constructor Summary | |
NoteSearchRoot(Vector noteList,
IResourceTreeView myViewer)
the constructor for this item. |
Method Summary | |
boolean |
canModify()
return true if this item's name can be edited within
the Resource Explorer. |
void |
dispose()
performs data cleanup. |
Object |
getAssociatedObject()
returns the Pliny model object associated with this item. |
List |
getChildren()
returns a list of IResourceExplorerItem items that are children of this item. |
org.eclipse.swt.graphics.Image |
getIcon()
returns the Image to be used as the Icon displayed beside the item in the Resource Explorer tree. |
int |
getNumberChildren()
returns number of children owned by this item. |
int |
getPageNumber()
return the page number data associated with the Pliny model object associated wtih this item. |
IResourceExplorerItem |
getParent()
returns the parent item of this item in the Resource Explorer display tree. |
String |
getText()
returns text to be used as the textual label for the tree item display. |
boolean |
hasChildren()
returns true if this item has children items. |
void |
setText(String name)
changes text to be displayed as the label to the given text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Vector noteList
public Vector rsltList
Constructor Detail |
public NoteSearchRoot(Vector noteList, IResourceTreeView myViewer)
noteList
- a Vector of
NoteLucene
s
that were selected by
the search query. These will be this object's children.myViewer
- the owning ViewPart.Method Detail |
public void dispose()
IResourceExplorerItem
dispose
in interface IResourceExplorerItem
public String getText()
IResourceExplorerItem
getText
in interface IResourceExplorerItem
public void setText(String name)
IResourceExplorerItem
setText
in interface IResourceExplorerItem
name
- text to be used as the name of this item.public boolean canModify()
IResourceExplorerItem
true
if this item's name can be edited within
the Resource Explorer.
canModify
in interface IResourceExplorerItem
true
if editable.public Object getAssociatedObject()
IResourceExplorerItem
null
if there is not Pliny model object.
getAssociatedObject
in interface IResourceExplorerItem
public int getPageNumber()
IResourceExplorerItem
getPageNumber
in interface IResourceExplorerItem
public org.eclipse.swt.graphics.Image getIcon()
IResourceExplorerItem
getIcon
in interface IResourceExplorerItem
public IResourceExplorerItem getParent()
IResourceExplorerItem
getParent
in interface IResourceExplorerItem
public boolean hasChildren()
IResourceExplorerItem
true
if this item has children items.
hasChildren
in interface IResourceExplorerItem
public int getNumberChildren()
IResourceExplorerItem
getNumberChildren
in interface IResourceExplorerItem
public List getChildren()
IResourceExplorerItem
getChildren
in interface IResourceExplorerItem
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |