|
|||||||||||
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.ResourceExplorerItemBase uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerNamedModelItem
this abstract class provides base implementation for all Resource Explorer display items which display names that come from the Pliny data model, and hence can be edited.
The class also tracks name changes that happen elsewhere in Pliny so that the name displaying in the Resource Explorer is updated.
Field Summary |
Fields inherited from class uk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerItemBase |
myChildren, myView |
Constructor Summary | |
ResourceExplorerNamedModelItem(IResourceTreeView myView,
IResourceExplorerItem parent,
INamedObject theObject,
String trackingProperty,
String nameProperty)
|
Method Summary | |
boolean |
canModify()
return true if this item's name can be edited within
the Resource Explorer. |
abstract org.eclipse.swt.graphics.Image |
getIcon()
returns the Image to be used as the Icon displayed beside the item in the Resource Explorer tree. |
protected INamedObject |
getNamedObject()
|
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. |
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.ResourceExplorerItemBase |
createListIterator, dispose, getAssociatedObject, getBaseObject, getChildren, getChildrenList, getMyView, getNumberChildren, getPageNumber, hasChildren, makeChild, setBaseObject, updateMyChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceExplorerNamedModelItem(IResourceTreeView myView, IResourceExplorerItem parent, INamedObject theObject, String trackingProperty, String nameProperty)
Method Detail |
protected INamedObject getNamedObject()
public String getText()
IResourceExplorerItem
getText
in interface IResourceExplorerItem
getText
in class ResourceExplorerItemBase
public void setText(String text)
IResourceExplorerItem
setText
in interface IResourceExplorerItem
setText
in class ResourceExplorerItemBase
public boolean canModify()
IResourceExplorerItem
true
if this item's name can be edited within
the Resource Explorer.
canModify
in interface IResourceExplorerItem
canModify
in class ResourceExplorerItemBase
public IResourceExplorerItem getParent()
IResourceExplorerItem
getParent
in interface IResourceExplorerItem
getParent
in class ResourceExplorerItemBase
public abstract org.eclipse.swt.graphics.Image getIcon()
IResourceExplorerItem
getIcon
in interface IResourceExplorerItem
getIcon
in class ResourceExplorerItemBase
public void propertyChange(PropertyChangeEvent arg0)
propertyChange
in interface PropertyChangeListener
propertyChange
in class ResourceExplorerItemBase
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |