Class PropertyListenerDescriptor
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.binding.PropertyInteractionDescriptor
-
- com.inductiveautomation.factorypmi.application.binding.PropertyListenerDescriptor
-
- All Implemented Interfaces:
Adapter.ValueHolder
,InteractionDescriptor
,java.beans.PropertyChangeListener
,java.util.EventListener
public class PropertyListenerDescriptor extends PropertyInteractionDescriptor implements java.beans.PropertyChangeListener, Adapter.ValueHolder
This subclass of PropertyInteractionDescriptor is simply an PID that is also the listener, and a ValueHolder. This means that this class directly listens to the source, and holds the value when the source value changes.
-
-
Constructor Summary
Constructors Constructor Description PropertyListenerDescriptor()
PropertyListenerDescriptor(java.awt.Component source, PropertyAdapter adapter, java.lang.String sourceProp, QualifiedValue initValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InteractionListener
getInteractionListener()
Returns the interaction listener (typically our adapter)java.lang.String
getPath()
Returns the path to the referenced property.QualifiedValue
getQValue()
Returns the last known value from the source.void
initialize(java.lang.Class type, java.lang.Object oldInstance, java.lang.Object newInstance, java.beans.Encoder out)
Serializes this PLDvoid
propertyChange(java.beans.PropertyChangeEvent evt)
void
setInteractionListener(InteractionListener listener)
Sets the interaction listener (typically our adapter)void
setQValue(QualifiedValue qv)
Sets the value.void
setValue(java.lang.Object object)
Deprecated.Kept for serializationjava.lang.String
toString()
-
Methods inherited from class com.inductiveautomation.factorypmi.application.binding.PropertyInteractionDescriptor
_getSymbolicSourcePath, _setSymbolicSourcePath, connect, disconnect, getAdapter, getListenable, getListener, getQuality, getSource, getSourceProperty, getSourceQualityProperty, isSerializeSymbolically, setAdapter, setConnected, setListener, setSerializeSymbolically, setSource, setSourceProperty
-
-
-
-
Constructor Detail
-
PropertyListenerDescriptor
public PropertyListenerDescriptor()
-
PropertyListenerDescriptor
public PropertyListenerDescriptor(java.awt.Component source, PropertyAdapter adapter, java.lang.String sourceProp, QualifiedValue initValue)
-
-
Method Detail
-
getPath
public java.lang.String getPath()
Returns the path to the referenced property.
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
getQValue
public QualifiedValue getQValue()
Returns the last known value from the source.- Specified by:
getQValue
in interfaceAdapter.ValueHolder
-
setQValue
public void setQValue(QualifiedValue qv)
Sets the value.- Specified by:
setQValue
in interfaceAdapter.ValueHolder
-
setValue
@Deprecated public void setValue(java.lang.Object object)
Deprecated.Kept for serialization
-
toString
public java.lang.String toString()
- Overrides:
toString
in classPropertyInteractionDescriptor
-
getInteractionListener
public InteractionListener getInteractionListener()
Returns the interaction listener (typically our adapter)
-
setInteractionListener
public void setInteractionListener(InteractionListener listener)
Sets the interaction listener (typically our adapter)
-
initialize
public void initialize(java.lang.Class type, java.lang.Object oldInstance, java.lang.Object newInstance, java.beans.Encoder out)
Serializes this PLD- Specified by:
initialize
in interfaceInteractionDescriptor
- Overrides:
initialize
in classPropertyInteractionDescriptor
-
-