Class PropertyInteractionDescriptor
- java.lang.Object
- 
- com.inductiveautomation.factorypmi.application.binding.PropertyInteractionDescriptor
 
- 
- All Implemented Interfaces:
- InteractionDescriptor
 - Direct Known Subclasses:
- PropertyListenerDescriptor
 
 public class PropertyInteractionDescriptor extends java.lang.Object implements InteractionDescriptor An interaction descriptor that represents a dependency on a source component's property.
- 
- 
Constructor SummaryConstructors Constructor Description PropertyInteractionDescriptor()PropertyInteractionDescriptor(java.awt.Component source, java.beans.PropertyChangeListener listener, PropertyAdapter adapter, java.lang.String sourceProp)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String_getSymbolicSourcePath()void_setSymbolicSourcePath(java.lang.String symbolicSourcePath)Sets the symbolic path for when the ID is told to serialize symbolicallyvoidconnect()Connects the listener to the listenablevoiddisconnect()Removes the listener from the listenable.AdaptergetAdapter()Returns the adapter that this interaction listener is a slave to.javax.swing.JComponentgetListenable()Returns the component (source component) that we listen to for detecting when the interaction is updatedjava.beans.PropertyChangeListenergetListener()The property change listener that is used to listen to the listenable (source)QualityCodegetQuality()Looks up the quality of the property this is listening tojava.awt.ComponentgetSource()Returns the source componentjava.lang.StringgetSourceProperty()Returns the name of the property on the source that we are interested injava.lang.StringgetSourceQualityProperty()voidinitialize(java.lang.Class type, java.lang.Object oldInstance, java.lang.Object newInstance, java.beans.Encoder out)Serializes this IDbooleanisSerializeSymbolically()True if this ID has been told to serialize symbolicallyvoidsetAdapter(Adapter a)voidsetConnected(boolean b)Deprecated.voidsetListener(java.beans.PropertyChangeListener listener)Sets the listener (the PCL that listens to the source)voidsetSerializeSymbolically(boolean b)Notifies this ID that it should serialize symbolically.voidsetSource(java.awt.Component component)Sets the source componentvoidsetSourceProperty(java.lang.String string)Sets the source property namejava.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
PropertyInteractionDescriptorpublic PropertyInteractionDescriptor() 
 - 
PropertyInteractionDescriptorpublic PropertyInteractionDescriptor(java.awt.Component source, java.beans.PropertyChangeListener listener, PropertyAdapter adapter, java.lang.String sourceProp)
 
- 
 - 
Method Detail- 
getListenablepublic javax.swing.JComponent getListenable() Returns the component (source component) that we listen to for detecting when the interaction is updated
 - 
getListenerpublic java.beans.PropertyChangeListener getListener() The property change listener that is used to listen to the listenable (source)
 - 
getSourcepublic java.awt.Component getSource() Returns the source component- Specified by:
- getSourcein interface- InteractionDescriptor
 
 - 
getAdapterpublic Adapter getAdapter() Returns 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
 
 - 
setAdapterpublic void setAdapter(Adapter a) - Specified by:
- setAdapterin interface- InteractionDescriptor
 
 - 
getQualitypublic QualityCode getQuality() Looks up the quality of the property this is listening to
 - 
setListenerpublic void setListener(java.beans.PropertyChangeListener listener) Sets the listener (the PCL that listens to the source)
 - 
setSourcepublic void setSource(java.awt.Component component) Sets 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
 
 - 
getSourcePropertypublic java.lang.String getSourceProperty() Returns the name of the property on the source that we are interested in
 - 
setSourcePropertypublic void setSourceProperty(java.lang.String string) Sets the source property name
 - 
getSourceQualityPropertypublic java.lang.String getSourceQualityProperty() 
 - 
setConnected@Deprecated public void setConnected(boolean b) Deprecated.
 - 
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
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
initializepublic void initialize(java.lang.Class type, java.lang.Object oldInstance, java.lang.Object newInstance, java.beans.Encoder out)Serializes this ID- Specified by:
- initializein interface- InteractionDescriptor
 
 - 
_getSymbolicSourcePathpublic java.lang.String _getSymbolicSourcePath() - Specified by:
- _getSymbolicSourcePathin interface- InteractionDescriptor
 
 - 
_setSymbolicSourcePathpublic void _setSymbolicSourcePath(java.lang.String symbolicSourcePath) Sets the symbolic path for when the ID is told to serialize symbolically- Specified by:
- _setSymbolicSourcePathin interface- InteractionDescriptor
 
 
- 
 
-