|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.usc.cse.desi.model.AbstractDESIModel
edu.usc.cse.desi.model.view.AbstractViewModel
edu.usc.cse.desi.model.view.AbstractConnectionViewModel
Slowly but surely, this class will encapsulate all the commonalities between PhysicalLinkViewModel and LogicalLinkViewModel. This class is new as of 7/21/04, so at this point it has adopted very little of those classes' common methods.
| Field Summary | |
protected AbstractNodeViewModel |
mySourceNode
|
protected AbstractNodeViewModel |
myTargetNode
|
static java.lang.String |
P_DISPLAY_LINKTYPE
|
static java.lang.String |
P_DISPLAY_SRCNODE
|
static java.lang.String |
P_DISPLAY_TARNODE
|
static java.lang.String |
P_ID_LINKTYPE
|
static java.lang.String |
P_ID_SRCNODE
|
static java.lang.String |
P_ID_TARNODE
|
| Fields inherited from class edu.usc.cse.desi.model.view.AbstractViewModel |
myDataModel |
| Fields inherited from class edu.usc.cse.desi.model.AbstractDESIModel |
listeners |
| Constructor Summary | |
AbstractConnectionViewModel()
|
|
| Method Summary | |
void |
attachSource()
Delegator method that calls attachSource on the data model. |
void |
attachTarget()
Delegator method that calls attachTarget on the data model. |
protected org.eclipse.ui.views.properties.IPropertyDescriptor[] |
buildPropertyDescriptor()
This method will build a property descriptor from the properties held by this object and by three others which we already know we need for all links. |
void |
detachSource()
Delegator method that calls detachSource on the data model. |
void |
detachTarget()
Delegator method that calls detachTarget on the data model. |
java.lang.Object |
getEditableValue()
|
AbstractNodeViewModel |
getMySourceNode()
|
AbstractNodeViewModel |
getMyTargetNode()
|
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
Returns the texts descriptions of the properties that will appear in the property sheet. |
java.lang.Object |
getPropertyValue(java.lang.Object obj)
Return the value associated with the given property. |
boolean |
isPropertySet(java.lang.Object id)
At this point I am not sure what this method does but it is necessary for the IPropertySource interface and in the Eclipse book they return false. |
void |
resetPropertyValue(java.lang.Object id)
Same is true for this function as is isPropertySet() except that in the Eclipse book, they didn't mention this method AT ALL. |
void |
setPropertyValue(java.lang.Object obj,
java.lang.Object value)
Sets the values that are entered into a property sheet into the data model. |
| Methods inherited from class edu.usc.cse.desi.model.view.AbstractViewModel |
getMyDataModel, getMyPropetyInitializer, getProperties, getPropertyDisplayName, getPropertyValue, hasProperty, reinitialize, setPropertyValue |
| Methods inherited from class edu.usc.cse.desi.model.AbstractDESIModel |
addPropertyChangeListener, firePropertyChange, propertyChange, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected AbstractNodeViewModel mySourceNode
protected AbstractNodeViewModel myTargetNode
public static final java.lang.String P_ID_LINKTYPE
public static final java.lang.String P_DISPLAY_LINKTYPE
public static final java.lang.String P_ID_SRCNODE
public static final java.lang.String P_DISPLAY_SRCNODE
public static final java.lang.String P_ID_TARNODE
public static final java.lang.String P_DISPLAY_TARNODE
| Constructor Detail |
public AbstractConnectionViewModel()
| Method Detail |
public void attachSource()
public void attachTarget()
public void detachSource()
public void detachTarget()
public AbstractNodeViewModel getMySourceNode()
public AbstractNodeViewModel getMyTargetNode()
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface org.eclipse.ui.views.properties.IPropertySourceprotected org.eclipse.ui.views.properties.IPropertyDescriptor[] buildPropertyDescriptor()
public java.lang.Object getPropertyValue(java.lang.Object obj)
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySourceobj -
public void setPropertyValue(java.lang.Object obj,
java.lang.Object value)
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySourceobj - The id of the property.value - The new value of the property.public boolean isPropertySet(java.lang.Object id)
isPropertySet in interface org.eclipse.ui.views.properties.IPropertySourceid -
public void resetPropertyValue(java.lang.Object id)
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySourceid - public java.lang.Object getEditableValue()
getEditableValue in interface org.eclipse.ui.views.properties.IPropertySource
|
|||||||||||
| PREV CLASS | |||||||||||