Class PropertyInteractionDescriptor
java.lang.Object
com.inductiveautomation.factorypmi.application.binding.PropertyInteractionDescriptor
- All Implemented Interfaces:
- InteractionDescriptor
- Direct Known Subclasses:
- PropertyListenerDescriptor
An interaction descriptor that represents a dependency on a source component's property.
- 
Constructor SummaryConstructorsConstructorDescriptionPropertyInteractionDescriptor(Component source, PropertyChangeListener listener, PropertyAdapter adapter, String sourceProp) 
- 
Method SummaryModifier and TypeMethodDescriptionvoid_setSymbolicSourcePath(String symbolicSourcePath) Sets the symbolic path for when the ID is told to serialize symbolicallyvoidconnect()Connects the listener to the listenablevoidRemoves the listener from the listenable.Returns the adapter that this interaction listener is a slave to.Returns the component (source component) that we listen to for detecting when the interaction is updatedThe property change listener that is used to listen to the listenable (source)Looks up the quality of the property this is listening toReturns the source componentReturns the name of the property on the source that we are interested invoidinitialize(Class type, Object oldInstance, Object newInstance, Encoder out) Serializes this IDbooleanTrue if this ID has been told to serialize symbolicallyvoidvoidsetConnected(boolean b) Deprecated.voidsetListener(PropertyChangeListener listener) Sets the listener (the PCL that listens to the source)voidsetSerializeSymbolically(boolean b) Notifies this ID that it should serialize symbolically.voidSets the source componentvoidsetSourceProperty(String string) Sets the source property nametoString()
- 
Constructor Details- 
PropertyInteractionDescriptorpublic PropertyInteractionDescriptor()
- 
PropertyInteractionDescriptorpublic PropertyInteractionDescriptor(Component source, PropertyChangeListener listener, PropertyAdapter adapter, String sourceProp) 
 
- 
- 
Method Details- 
getListenableReturns the component (source component) that we listen to for detecting when the interaction is updated
- 
getListenerThe property change listener that is used to listen to the listenable (source)
- 
getSourceReturns the source component- Specified by:
- getSourcein interface- InteractionDescriptor
 
- 
getAdapterReturns the adapter that this interaction listener is a slave to. It will be updated when we are updated from the source- Specified by:
- getAdapterin interface- InteractionDescriptor
 
- 
setAdapter- Specified by:
- setAdapterin interface- InteractionDescriptor
 
- 
getQualityLooks up the quality of the property this is listening to
- 
setListenerSets the listener (the PCL that listens to the source)
- 
setSourceSets the source component- Specified by:
- setSourcein interface- InteractionDescriptor
 
- 
disconnectpublic void disconnect()Removes the listener from the listenable.- Specified by:
- disconnectin interface- InteractionDescriptor
 
- 
connectpublic void connect()Connects the listener to the listenable- Specified by:
- connectin interface- InteractionDescriptor
 
- 
getSourcePropertyReturns the name of the property on the source that we are interested in
- 
setSourcePropertySets the source property name
- 
getSourceQualityProperty
- 
setConnectedDeprecated.
- 
isSerializeSymbolicallypublic boolean isSerializeSymbolically()True if this ID has been told to serialize symbolically- Specified by:
- isSerializeSymbolicallyin interface- InteractionDescriptor
 
- 
setSerializeSymbolicallypublic void setSerializeSymbolically(boolean b) Notifies this ID that it should serialize symbolically. Used when copying when the source isn't also being copied. Used by the InteractionDescriptorPersistenceDelegate- Specified by:
- setSerializeSymbolicallyin interface- InteractionDescriptor
 
- 
toString
- 
initializeSerializes this ID- Specified by:
- initializein interface- InteractionDescriptor
 
- 
_getSymbolicSourcePath- Specified by:
- _getSymbolicSourcePathin interface- InteractionDescriptor
 
- 
_setSymbolicSourcePathSets the symbolic path for when the ID is told to serialize symbolically- Specified by:
- _setSymbolicSourcePathin interface- InteractionDescriptor
 
 
-