Class SimpleBoundPropertyAdapter
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
-
- com.inductiveautomation.factorypmi.application.binding.SimpleBoundPropertyAdapter
-
- All Implemented Interfaces:
Adapter,Adapter.ValueHolder,SearchablePropertyAdapter,PropertyAdapter,java.beans.PropertyChangeListener,java.util.EventListener
public class SimpleBoundPropertyAdapter extends AbstractPropertyAdapter implements SearchablePropertyAdapter, java.beans.PropertyChangeListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
AbstractPropertyAdapter.EdtUpdateValue
-
Nested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.Adapter
Adapter.ValueHolder
-
Nested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.PropertyAdapter
PropertyAdapter.PAType
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
appContext, isTargetPropertyDynamic, log, overlayOptOut, target, targetPropertyName, value, valueClass
-
-
Constructor Summary
Constructors Constructor Description SimpleBoundPropertyAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(VisionClientContext appContext)Calls connect() on all interaction descriptorsvoiddisconnect()Calls disconnect() on all interaction descriptorsBindingConfigurationgetBindingConfiguration()PropertyInteractionDescriptorgetInteraction()Returns the interaction descriptor that points towards the property we are bound toInteractionDescriptor[]getInteractions()Retrieves an array of the interactions that this adapter depends on.PropertyAdapter.PATypegetReferenceType()booleanisBidirectional()voidpropertyChange(java.beans.PropertyChangeEvent evt)Listens to the Interaction Descriptor (source property changes)voidsetBidirectional(boolean bidirectional)voidsetInteraction(PropertyInteractionDescriptor descriptor)Sets the interaction descriptor for this binding.voidstartup()Notifies the adapter that it is becoming active, and should start any polling/threaded activities.protected voidupdateTarget()Sets the target property to the value.-
Methods inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
getQValue, getTarget, getTargetDesc, getTargetFullPath, getTargetPropertyName, getValueClass, handleError, handleNullToPrimitive, initLogger, isDataUsed, isDataUsed, isOverlayOptOut, isTargetPropertyDynamic, isValid, isValueClassPrimitive, setOverlayOptOut, setQValue, setSetterMethodName, setTarget, setTargetPropertyDynamic, setTargetPropertyName, setValue, setValueClass, shutdown, toString, updateQuality, updateValue, useQuality
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.factorypmi.application.binding.Adapter
getTarget, isValid, setTarget, shutdown
-
Methods inherited from interface com.inductiveautomation.factorypmi.application.binding.PropertyAdapter
getTargetPropertyName, setTargetPropertyName
-
-
-
-
Method Detail
-
connect
public void connect(VisionClientContext appContext)
Description copied from class:AbstractPropertyAdapterCalls connect() on all interaction descriptors- Specified by:
connectin interfaceAdapter- Overrides:
connectin classAbstractPropertyAdapter
-
disconnect
public void disconnect()
Description copied from class:AbstractPropertyAdapterCalls disconnect() on all interaction descriptors- Specified by:
disconnectin interfaceAdapter- Overrides:
disconnectin classAbstractPropertyAdapter
-
startup
public void startup()
Description copied from interface:AdapterNotifies the adapter that it is becoming active, and should start any polling/threaded activities.- Specified by:
startupin interfaceAdapter- Overrides:
startupin classAbstractPropertyAdapter
-
getInteractions
public InteractionDescriptor[] getInteractions()
Description copied from interface:AdapterRetrieves an array of the interactions that this adapter depends on. An interaction descriptor describes an inter-component interaction.- Specified by:
getInteractionsin interfaceAdapter
-
getBindingConfiguration
public BindingConfiguration getBindingConfiguration()
- Specified by:
getBindingConfigurationin interfaceSearchablePropertyAdapter
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
Listens to the Interaction Descriptor (source property changes)- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
updateTarget
protected void updateTarget()
Description copied from class:AbstractPropertyAdapterSets the target property to the value. If a problem occurs, the problem is displayed, not thrown. Note that updateValue() is probably a better bet, as it updates both value and quality.- Overrides:
updateTargetin classAbstractPropertyAdapter
-
getInteraction
public PropertyInteractionDescriptor getInteraction()
Returns the interaction descriptor that points towards the property we are bound to
-
setInteraction
public void setInteraction(PropertyInteractionDescriptor descriptor)
Sets the interaction descriptor for this binding.
-
isBidirectional
public boolean isBidirectional()
-
setBidirectional
public void setBidirectional(boolean bidirectional)
-
getReferenceType
public PropertyAdapter.PAType getReferenceType()
- Specified by:
getReferenceTypein interfacePropertyAdapter
-
-