|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectuk.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
NoteLucenes
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 IResourceExplorerItempublic String getText()
IResourceExplorerItem
getText in interface IResourceExplorerItempublic void setText(String name)
IResourceExplorerItem
setText in interface IResourceExplorerItemname - text to be used as the name of this item.public boolean canModify()
IResourceExplorerItemtrue if this item's name can be edited within
the Resource Explorer.
canModify in interface IResourceExplorerItemtrue if editable.public Object getAssociatedObject()
IResourceExplorerItemnull if there is not Pliny model object.
getAssociatedObject in interface IResourceExplorerItempublic int getPageNumber()
IResourceExplorerItem
getPageNumber in interface IResourceExplorerItempublic org.eclipse.swt.graphics.Image getIcon()
IResourceExplorerItem
getIcon in interface IResourceExplorerItempublic IResourceExplorerItem getParent()
IResourceExplorerItem
getParent in interface IResourceExplorerItempublic boolean hasChildren()
IResourceExplorerItemtrue if this item has children items.
hasChildren in interface IResourceExplorerItempublic int getNumberChildren()
IResourceExplorerItem
getNumberChildren in interface IResourceExplorerItempublic List getChildren()
IResourceExplorerItem
getChildren in interface IResourceExplorerItem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||