OME
Interface ViewLink


public interface ViewLink
extends OMELink, ViewObject

This interface describes the methods that need to be implemented, when a link is to be represented in a view.


Method Summary
 void setFrom(OMEObject o)
          Set the source for this link.
 void setTo(OMEObject o)
          Set the destination for this link.
 
Methods inherited from interface OME.OMELink
getFrom, getTo
 
Methods inherited from interface OME.ViewObject
getIcon, getLocation, getModelObject, isHidden, isHighlighted, isIconified, isSelected, setHidden, setHighlighted, setIconified, setSelected
 

Method Detail

setFrom

public void setFrom(OMEObject o)
             throws java.lang.Exception
Set the source for this link. Parameter should be a ViewObject from the same view.
Specified by:
setFrom in interface OMELink
Parameters:
o - the source we are setting for this OMELink.

setTo

public void setTo(OMEObject o)
           throws java.lang.Exception
Set the destination for this link. Parameter should be a ViewObject from the same view.
Specified by:
setTo in interface OMELink
Parameters:
o - the destination we are setting for this OMELink.