|
|||||||||
| Home >> All >> com >> vinculum >> processeditor >> [ model overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.vinculum.processeditor.model
Class Wire

java.lang.Objectcom.vinculum.processeditor.model.ProcessElement
com.vinculum.processeditor.model.Wire
- All Implemented Interfaces:
- java.lang.Cloneable, org.eclipse.ui.views.properties.IPropertySource, java.io.Serializable
- public class Wire
- extends ProcessElement
| Field Summary | |
protected java.util.List |
bendpoints
|
private static int |
count
|
protected java.util.Vector |
descriptors
|
private java.lang.String |
expression
|
private static java.lang.String |
EXPRESSION_CONTEXT
|
private static java.lang.String |
FUNCTION_NAME_CONTEXT
|
private java.lang.String |
functionName
|
private java.lang.String |
id
|
static java.lang.String |
ID_EXPRESSION
|
static java.lang.String |
ID_FUNCTIONNAME
|
static java.lang.String |
ID_SCRIPTNAME
|
private static java.lang.String |
SCRIPT_NAME_CONTEXT
|
private java.lang.String |
scriptName
|
(package private) static long |
serialVersionUID
|
protected ProcessSubPart |
source
|
protected java.lang.String |
sourceTerminal
|
protected ProcessSubPart |
target
|
protected java.lang.String |
targetTerminal
|
protected boolean |
value
|
| Fields inherited from class com.vinculum.processeditor.model.ProcessElement |
CHILDREN, INPUTS, listeners, OUTPUTS |
| Constructor Summary | |
Wire()
|
|
| Methods inherited from class com.vinculum.processeditor.model.ProcessElement |
addPropertyChangeListener, firePropertyChange, fireStructureChange, getEditableValue, isPropertySet, removePropertyChangeListener, setPropertyValue, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
value
protected boolean value
count
private static int count
id
private java.lang.String id
source
protected ProcessSubPart source
target
protected ProcessSubPart target
sourceTerminal
protected java.lang.String sourceTerminal
targetTerminal
protected java.lang.String targetTerminal
bendpoints
protected java.util.List bendpoints
descriptors
protected transient java.util.Vector descriptors
scriptName
private java.lang.String scriptName
functionName
private java.lang.String functionName
expression
private java.lang.String expression
ID_SCRIPTNAME
public static final java.lang.String ID_SCRIPTNAME
- See Also:
- Constant Field Values
ID_FUNCTIONNAME
public static final java.lang.String ID_FUNCTIONNAME
- See Also:
- Constant Field Values
ID_EXPRESSION
public static final java.lang.String ID_EXPRESSION
- See Also:
- Constant Field Values
SCRIPT_NAME_CONTEXT
private static final java.lang.String SCRIPT_NAME_CONTEXT
FUNCTION_NAME_CONTEXT
private static final java.lang.String FUNCTION_NAME_CONTEXT
EXPRESSION_CONTEXT
private static final java.lang.String EXPRESSION_CONTEXT
| Constructor Detail |
Wire
public Wire()
| Method Detail |
attachSource
public void attachSource()
attachTarget
public void attachTarget()
detachSource
public void detachSource()
detachTarget
public void detachTarget()
getBendpoints
public java.util.List getBendpoints()
getSource
public ProcessSubPart getSource()
getSourceTerminal
public java.lang.String getSourceTerminal()
getTarget
public ProcessSubPart getTarget()
getTargetTerminal
public java.lang.String getTargetTerminal()
getValue
public boolean getValue()
insertBendpoint
public void insertBendpoint(int index,
Bendpoint point)
removeBendpoint
public void removeBendpoint(int index)
setBendpoint
public void setBendpoint(int index,
Bendpoint point)
setBendpoints
public void setBendpoints(java.util.Vector points)
setSource
public void setSource(ProcessSubPart e)
setSourceTerminal
public void setSourceTerminal(java.lang.String s)
setTarget
public void setTarget(ProcessSubPart e)
setTargetTerminal
public void setTargetTerminal(java.lang.String s)
setValue
public void setValue(boolean value)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
getNewID
protected java.lang.String getNewID()
getID
public java.lang.String getID()
setID
public void setID(java.lang.String newID)
getPropertyDescriptors
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
- Description copied from interface:
org.eclipse.ui.views.properties.IPropertySource - Returns the list of property descriptors for this property source.
The
getPropertyValueandsetPropertyValuemethods are used to read and write the actual property values by specifying the property ids from these property descriptors.Implementors should cache the descriptors as they will be asked for the descriptors with any edit/update. Since descriptors provide cell editors, returning the same descriptors if possible allows for efficient updating.
- Specified by:
getPropertyDescriptorsin interfaceorg.eclipse.ui.views.properties.IPropertySource- Overrides:
getPropertyDescriptorsin classProcessElement
refreshDescriptors
protected void refreshDescriptors()
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.Object propName)
- Description copied from interface:
org.eclipse.ui.views.properties.IPropertySource - Returns the value of the property with the given id if it has one.
Returns
nullif the property's value isnullvalue or if this source does not have the specified property.- Specified by:
getPropertyValuein interfaceorg.eclipse.ui.views.properties.IPropertySource- Overrides:
getPropertyValuein classProcessElement
isPropertySet
public boolean isPropertySet(java.lang.Object property)
- Description copied from interface:
org.eclipse.ui.views.properties.IPropertySource - Returns whether the value of the property with the given id has changed from
its default value. Returns
falseif this source does not have the specified property.If the notion of default value is not meaningful for the specified property than
trueis returned.- Specified by:
isPropertySetin interfaceorg.eclipse.ui.views.properties.IPropertySource- Overrides:
isPropertySetin classProcessElement
resetPropertyValue
public void resetPropertyValue(java.lang.Object property)
- Description copied from interface:
org.eclipse.ui.views.properties.IPropertySource - Resets the property with the given id to its default value if possible.
Does nothing if the notion of a default value is not meaningful for the specified property, or if the property's value cannot be changed, or if this source does not have the specified property.
Callers will check if this
IPropertySourceimplementsIPropertySource2and this method will only be called ifIPropertySource2#isPropertyResettable(Object)returnstruefor the property with the given id.- Specified by:
resetPropertyValuein interfaceorg.eclipse.ui.views.properties.IPropertySource- Overrides:
resetPropertyValuein classProcessElement
setPropertyValue
public void setPropertyValue(java.lang.Object id, java.lang.Object value)
- Description copied from interface:
org.eclipse.ui.views.properties.IPropertySource - Sets the property with the given id if possible. Does nothing if the
property's value cannot be changed or if this source does not have the
specified property.
In general, a property source should not directly reference the value parameter unless it is an atomic object that can be shared, such as a string.
An important reason for this is that several property sources with compatible descriptors could be appearing in the property sheet at the same time. An editor produces a single edited value which is passed as the value parameter of this message to all the property sources. Thus to avoid a situation where all of the property sources reference the same value they should use the value parameter to create a new instance of the real value for the given property.
There is another reason why a level of indirection is useful. The real value of property may be a type that cannot be edited with a standard cell editor. However instead of returning the real value in
getPropertyValue, the value could be converted to aStringwhich could be edited with a standard cell editor. The edited value will be passed to this method which can then turn it back into the real property value.Another variation on returning a value other than the real property value in
getPropertyValueis to return a value which is anIPropertySource(or for which the property sheet can obtain anIPropertySource). In this case the value to edit is obtained from the child property source usinggetEditableValue. It is this editable value that will be passed back via this method when it has been editted- Specified by:
setPropertyValuein interfaceorg.eclipse.ui.views.properties.IPropertySource- Overrides:
setPropertyValuein classProcessElement
getScriptName
public java.lang.String getScriptName()
getFunctionName
public java.lang.String getFunctionName()
getExpression
public java.lang.String getExpression()
setScriptName
public void setScriptName(java.lang.String newName)
setFunctionName
public void setFunctionName(java.lang.String newName)
setExpression
public void setExpression(java.lang.String newName)
|
|||||||||
| Home >> All >> com >> vinculum >> processeditor >> [ model overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC